This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Flash download error when in deep power down mode

I have programmed an LPC1768 to be nearly always in deep power down mode. It is waken periodically by an RTC alarm

Since I did this, I cannot reprogram the processor using the programmer included in Keil's microcontroller development tool kit.

What is the solution ?

Best regards

Parents
  • Debugging is not possible in Power Down mode on LPC17xx because the chip turns off also the debug interface. Therefore also flashing is not possible.

    A simple solution is to force the chip into bootloader mode at reset by holding EINT0 low while resetting the chip. Since chip will stay in bootloader mode the application which uses power down won't be executed and it will be possible to erase/reprogram flash.

Reply
  • Debugging is not possible in Power Down mode on LPC17xx because the chip turns off also the debug interface. Therefore also flashing is not possible.

    A simple solution is to force the chip into bootloader mode at reset by holding EINT0 low while resetting the chip. Since chip will stay in bootloader mode the application which uses power down won't be executed and it will be possible to erase/reprogram flash.

Children