Skip to main content
mark9
Associate III
August 24, 2007
Question

Idle mode doesn't seem to work, what am I doing wrong?

  • August 24, 2007
  • 11 replies
  • 1989 views
Posted on August 24, 2007 at 05:14

Idle mode doesn't seem to work, what am I doing wrong?

This topic has been closed for replies.

11 replies

mark9
mark9Author
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:45

Mirou, thanks for the demo, but unfortunately, you are using a different demo board than I am using (I've got an IAR STR912-SK rev A). The LEDs and buttons are on different ports.

Also, I found a bug in your code. As is, the code works (accidentally), but if you move any function around and change the link order, it stops working. I tracked it down to the Errata that says that you must enter Idle from a RAM function. It must be a weird condition of executing from Flash that causes the chip to crash and never exit Idle mode.

For the benefit of new users, I've attached the fixed project, that builds for both Rev A and Rev ''X'' boards (what ever Mirou is using).

NOTE: I still don't know what is wrong with my real application, since I have followed all of the errata and it still doesn't work.