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.
Hi team,
1) After putting the 470 into low-power mode with the following code, the first program write is normal.
#define ENTER_LPM_STANDBY CLKCNTL = (CLKCNTL & (~0x03)) | LPM_STANDBY | PPWNOVR
2) After running this statement, the CPU seems to be locked, click the program, it will alert: fail to halt CPU. And the IAR alert is "Unable to halt CPU core".
Could you help check this case? Thanks.
Best Regards,
Cherry
Hi Cherry,
Moving this to ARM internal forum as this is not related to Data Converter.
This is a very old device that we have limited knowledge. Having said that, I think the device went into low power mode as expected. Once it is in low power mode, the clock is stopped. Without the clock, the debugger (e.g. CCS or IAR) is unable to synchronize with the processor. For any processor, not just SM470R1B1, you must design your system with a wake up mechanism. The debugger can only connect to the target after the target is woken up.
I don't know if the customer has implemented any means to wake up the device. If yes, then first wake up the device before connecting with the debugger. If not, it will have a limited chance to connect again. Normally, after reset, the processor will run code until your code put it into low power mode. Once it is low power mode, the clock stops. If the debugger can connect with the target before the processor executes the code that put it in low power mode then you have a chance to connect. But this will be difficult to do. You need to keep trying to connect right after releasing the reset input. The chance is not very high but worth trying.