currently I have a board with a SAM9G45 and want to put into a sleep mode (triggered via button). In this case I use the library function:
Code: Select all
void PMC_CPUInIdleMode(void)
{
#ifndef CP15_PRESENT
PMC_DisableProcessorClock();
#else
AT91C_BASE_PMC->PMC_SCDR = AT91C_PMC_PCK;
CP15_WaitForInterrupt();
#endif
}
So far so good, it works fine (power consumption decreases). The problem is, afterwards I can't reconnect the target via J-Link debugger. Probably because the µC is still in sleep mode. Do I need to take additional steps to wake-up device before downloading/debugging firmware?
Thanks and regards
george