This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem to wakeup on PM2 (CC2430)

Other Parts Discussed in Thread: CC2430

Hello,

I try to wakeup the CC2430 on PM2 with a sleep timer interrupt. I use the code described in the DN106 but the CPU seems to never wake up. In PM1, it's work fine. Is there is something more special to do to wake up on PM2 using the DN106 code?

Thanks.

Robin

  • TI just released some example code for the 1110 and 2510. Check the PM2 code for the proper sequence. There are slight differences between the chips, but with DN106 and the source code as a guide, it should help greatly. In my own trials with PM2, I know aligning the timing of the DMA trigger and PCON setting is crucial. Also make sure you are not setting the wake time for too long.

     Is it actually going into PM2 as shown by extremely low quiescent current? To show if it is the Timer module set up issue or sleep sequence that is giving you problems, try to wake from a port pin change. The DN should show how to set this up too.

    Hope this helps,

    Ron

  • I do a copy-paste from the DN106 code and it doesn't work. The system never wakeup on PM2. I try a port interrup wakeup and I have the same result, no wakeup on PM2 but it's work fine on PM1.

    My sleep timer has a one second period (I want to do a RTC), coud it be a problem?

    Thanks

    Robin.

  • Ok, I change the linker command file from f8w2430 to f8w2430pm and it's seems to work. Someone could explain to me the difference between the linker command files?

    By the way, in debug mode I can catch the sleep timer interrup function. I toggle a LED to see the interrupt but the debugger don't stop into it (I put a breakpoint of course).

    Thanks.

  • RobinLAESSER said:

    Ok, I change the linker command file from f8w2430 to f8w2430pm and it's seems to work. Someone could explain to me the difference between the linker command files?

    Looking at the differences between these files, it comes down to the declaration of where the memory section XDATA is defined with XDATA_START and XDATA_END.  Reference the CC2430 datasheet in Section 9.1, it indicates of the 8KB of SRAM, 4KB is implemented in an ultra low-power SRAM that retains its contents in PM2 and PM3.  The other 4KB does not.