1

Topic: STR912F RTC Problem

Hi,

I've downloaded the latest software for the STR912F, and have been able to compile and run several of the ST Micro example programs, including the WIU example that uses interrupts. However, I cannot get the RTC functions to work properly.

The RTC example sets a 10 second alarm, loops waiting for the RTC flag to be set by the alarm, then starts flashing an LED. When I run this program, the flag is set immediately and the LED flashes immediately.

I have my own RTC test program that uses a different feature of the realtime clock to set a 2 Hz periodic alarm. My program sits in a loop looking at the RTC flag, resetting it when it is set and incrementing a counter. The flag is set every time through the loop.

Could there be a bug in the initialization of the RTC functions? Has anyone else tried the RTC example?

2

Re: STR912F RTC Problem

Hello,

we are going to check this.

regards
Lionel

3

Re: STR912F RTC Problem

Hello,

I will send you an e-mail about this matter.

regards
Lionel

Re: STR912F RTC Problem

Hello,

I've got the same problem...what are the reason or the solution ?
STR91FW44 with Reva Starter Kit

best regards

Re: STR912F RTC Problem

We forgot some GCC specific directives in the 91x_conf.h header file used to compile the library. But the problem has been solved since then and should not appear anymore... Do you have the latest version of RIDE  (BN746) ? I suggest you to do an update if it is not the case.

Another hint: make sure that in your application, the #define DEBUG directive is commented out in 91x_conf.h. This directive is not useful with GCC and creates some problems, so please always comment it out.

regards,
Lionel

Re: STR912F RTC Problem

I've got the latest version of RIDE and using the latest libraries for ST ARM9 (version 1.2). The Debug directive is commented out.
My Problem is that the LEDs will never be toggled, because the RTC_Alarm_Flag won't be set by the alarm.

regards

Re: STR912F RTC Problem

Can you send me your project at support@raisonance.com ? I will have a look here.

Regards,
Lionel