Hi everyone,
I'm trying to put an end device into a very low power state. Msp430 is very easy to handle but I can't do the same for CC2530. I tried doing what CC2530ZNP Interface Specification tell: " If the CC2530-ZNP device was configured as an end-device (and using SPI transport), it will automatically enter low power state after the application processor retrieves the SYS_RESET_IND command from the CC2530. " (CC2530ZNP Interface Specification,page 17)
So, as what i understood, I did the follow:
First, I initialized the hardware:
halInit();
Then, configure it as an end device:
#define ZNP_START_DELAY_IF_FAIL_MS 5000
signed int startResult = startZnp(END_DEVICE);
while (startResult != ZNP_SUCCESS)
{
printf("FAILED. Error Code %i, ZNP Result %i. Retrying...\r\n", startResult, znpResult);
delayMs(ZNP_START_DELAY_IF_FAIL_MS);
startResult = startZnp(END_DEVICE);
}
printf("Success\r\n");
Try to retrieve SYS_RESET_IND: (CC2530 should be in low power state after this action???)
znpReset();
Finally, put msp430 into LPM3( I didn't allow any INT, just end up in sleep)
HAL_SLEEP();
What I expected is a few uA but i got a couple mA instead.
Did I do it right?
Anyone ever tried to do it, please help me out!
Thank you.
Tuong