Content originally posted in LPCWare by Thucydides on Sat Feb 11 00:28:43 MST 2012
Hello,
When I was writing a code for LPC1788, I made a big mistake.
As for setting of the CPU Clock Selection register (CCLKSEL - 0x400F C104), I've designated 0 and soon I noticed a explanation on the document.
"The divider is turned off., no clock will be provided to the CPU. This setting
should typically not be used, the CPU will be halted and a reset will be required to restore operation."
At LPC1769's CCLSEL 0 means just divide 1 but at LPC1788 CPU clock stops!
After download it, naturally any debug or run became disabled via LPCXpresso IDE and flashmagic.
Error on the LPCXpresso was
"02:Failed on connect:Em(01).Cannot find selected MEM-AP(check target power):"
How could I turn on the clock of the lPC1788??
If there are anyone who know the solution, please show me how to escape from the situation.
Thanks,
Thucydides
http://knowledgebase.nxp.com/member.php?u=1317