I am working on a msp430 project(using msp430f2274 and CC2500 radio) which is a simple application which receives a packet and logs it to flash. It also logs the packet it sends. Now, in order to reduce power consumption I am using wake on radio(WOR) functionality. However, following things happen:
-
The packets are successfully logged for a period of time( depends on no. of packets received) and the code works, and then after some time usually 30-45 mins later (for my current timer settings), the timer will stop, the device keep receiving packets, however since no timer, no sending cycle, so no packets are sent.
-
When I do not log the packets and simply send and receive using wor, the code works, timer does not hang.
How does flash is messing up timer when WOR works?
On debugging, most of the stack has not been used, and the code always stops at point when radio switches back from 'wake on radio' mode to awake mode.
Any insight will help me. Let me know if you need to see code snippets.