LPC178x

From SEGGER Wiki
Revision as of 17:43, 15 August 2018 by Alex (talk | contribs) (Created page with "__TOC__ The NXP LPC178x series is a scalable mainstream MCU, based on the Cortex-M3 core. = Device recovery = In case some bad code has been flashed into the device (wrong PL...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The NXP LPC178x series is a scalable mainstream MCU, based on the Cortex-M3 core.

Device recovery

In case some bad code has been flashed into the device (wrong PLL init that bricks the device, ...) that makes it unresponsive to debug commands, there is no built-in mechanism that allows J-Link to regain control over the device, however the device is not lost yet.

The LPC178x series devices provide a specific pin to enter ISP mode on boot which effectively inhibits starting the user application and therefore the bad code. In order to recover an LPC178x series device that is running bad code, the following needs to be done:

  • Short P2[10] with GND
  • Power-cycle the device (make sure that LOW is sampled on P2[10])
  • Release P2[10]
  • Start J-Link Commander, J-Flash or any other utility that supports J-Link and reflash the device