deep sleep mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

deep sleep mode

1,202 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by giamby3000 on Fri Apr 15 07:57:54 MST 2011
Hi everybody!
I launched timedwakeup project on LPC1114 in RELEASE mode, and so now I can't debug anything because LPCXpresso returns error ACK .
How can I restablish board functionality?
Must I use ISP? Is there any example of flash writing with ISP for LPC 1114?
Can I write my firmware into flash or erase flash completely?
Thank you very much.
0 Kudos
Reply
5 Replies

1,161 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ultrabit on Fri Oct 28 08:38:32 MST 2011
Thanks NXP_USA,
now i put device in ISP mode, so i can reload software. So, when i start to debug application with lpcxpresso ide the debbugger (lpc-link) lost the connection (after trying with the lowest speed, as the ide says me) to the board after switching MAINCLKSEL to Watchdog Oscillator
   
/* Switch MAINCLKSEL to Watchdog Oscillator */
    LPC_SYSCON->MAINCLKSEL    = 2;
    LPC_SYSCON->MAINCLKUEN  = 0;
    LPC_SYSCON->MAINCLKUEN  = 1;
The watchdog oscillator control register is set to 0.5Mhz / 64 = 7.8125Khz as follow:
   
/* Run watchdog oscillator */
    LPC_SYSCON->WDTOSCCTRL = (0x1<<5) | 0x1F;    //SLOWEST WDT FREQ
Perhaps, can this clock frequency be the cause of the lpc-link disconnection ?

Thanks in advance.

PS:
i'm trying to debug the selfwakeup (demo2) example into the AN11027 app. note with the LPC1114 lpcxpresso board.
0 Kudos
Reply

1,161 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_USA on Thu Oct 27 11:51:54 MST 2011
It is only necessary to put the chip in ISP mode so that it does not run the code in flash. Then the debugger can be connected and the part can be erased and reprogrammed.

The part can be placed in ISP mode by holding pin P0_1 low during reset. Reset is also done by the debugger, so P0_1 also needs to be held low while the debugger is starting up.

-NXP_USA
0 Kudos
Reply

1,161 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ultrabit on Thu Oct 27 11:10:51 MST 2011
Hi, all.
I have the same problem...please, is there any way to debug lpcxpresso board (lpc1114/301) when timedwakeup deep sleep code example runs :cool: ?
In the timedwakeup example after the mainclock is assigned to watchdog oscillator and enabled lpclink lost connection to the board and i can only reset the board with the isp method !



Thanks in advance.
0 Kudos
Reply

1,161 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Apr 15 12:10:43 MST 2011
Switch to ISP mode:

http://support.code-red-tech.com/CodeRedWiki/DebugAccessChip
0 Kudos
Reply

1,161 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Apr 15 12:09:26 MST 2011
Try:

http://support.code-red-tech.com/CodeRedWiki/DebugAccessChip
0 Kudos
Reply