EmbeddedRelated.com
Forums
Memfault Beyond the Launch

RTC Issue in LPC2364

Started by prab...@yahoo.co.in January 20, 2010
Hi all,
I am using LPC2364 with FreeRTOS,GNUARM.

Issue:
I have Set RTC Alarm to one minute.After setting
RTC suddenly,My program hanging(after task_exit critical()).But in LPC2103 its working.Which means getting RTC alarm interrupt after one minute.Is there
any different between LPC21xx and 23xx RTC Setting.Please share your knowledge???

Interrupt priority only differs between 21xx and 23xx.
In 2103,
VICVectAddr2 = (unsigned long)RTCISR;
VICVectCntl2 = 0x20 | 13;
VICIntEnable |= (1 << 13);

In 2364,
VICVectAddr13 = (unsigned long)RTCISR;
VICVectCntl13 = 2;
VICIntEnable |= (1 << 13);

Thanks in advance.

An Engineer's Guide to the LPC2100 Series

Is anyone having this Issue??

________________________________
From: "p...@yahoo.co.in"
To: l...
Sent: Wed, 20 January, 2010 10:58:53 AM
Subject: [lpc2000] RTC Issue in LPC2364

Hi all,
I am using LPC2364 with FreeRTOS,GNUARM.

Issue:
I have Set RTC Alarm to one minute.After setting
RTC suddenly,My program hanging(after task_exit critical()). But in LPC2103 its working.Which means getting RTC alarm interrupt after one minute.Is there
any different between LPC21xx and 23xx RTC Setting.Please share your knowledge???

Interrupt priority only differs between 21xx and 23xx.
In 2103,
VICVectAddr2 = (unsigned long)RTCISR;
VICVectCntl2 = 0x20 | 13;
VICIntEnable |= (1 << 13);

In 2364,
VICVectAddr13 = (unsigned long)RTCISR;
VICVectCntl13 = 2;
VICIntEnable |= (1 << 13);

Thanks in advance.

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
Program hanging where? It generates an abort exception and, maybe, stays there in a loop?

Stack problems?

Removing RTC alarm setting it works ok?

Marcelo

From: l... [mailto:l...] On Behalf Of pra bu
Sent: quarta-feira, 20 de janeiro de 2010 12:08
To: l...
Subject: Re: [lpc2000] RTC Issue in LPC2364

Is anyone having this Issue??

_____

From: "p...@yahoo.co.in"
To: l...
Sent: Wed, 20 January, 2010 10:58:53 AM
Subject: [lpc2000] RTC Issue in LPC2364

Hi all,
I am using LPC2364 with FreeRTOS,GNUARM.

Issue:
I have Set RTC Alarm to one minute.After setting
RTC suddenly,My program hanging(after task_exit critical()). But in LPC2103 its working.Which means getting RTC alarm interrupt after one minute.Is there
any different between LPC21xx and 23xx RTC Setting.Please share your knowledge???

Interrupt priority only differs between 21xx and 23xx.
In 2103,
VICVectAddr2 = (unsigned long)RTCISR;
VICVectCntl2 = 0x20 | 13;
VICIntEnable |= (1 << 13);

In 2364,
VICVectAddr13 = (unsigned long)RTCISR;
VICVectCntl13 = 2;
VICIntEnable |= (1 << 13);

Thanks in advance.

_____

The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.

Memfault Beyond the Launch