[SOLVED] Can J-Flash erase LPC locked with CRP2?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Can J-Flash erase LPC locked with CRP2?

    The LPC8xx microcontrollers have a Code Read Protection which disables the SWD port.
    If I set CRP2 in my firmware and flash it to the target (using Segger J-Flash), then the only way to erase and reflash is by talking to the ROM bootloader via the ISP interface (UART).
    There's a program called FlashMagic (and a few opensource linux tools: lpc21isp, lpcisp, and lpcprog from lpctools package) which can do a mass erase and restore the SWD access.

    Just wondering if any Segger tools can do the same.
  • Hi,

    Can J-Flash do it:
    Right now, it cannot.

    Can J-Link do it:
    Yes, using the SDK you could write an application that tells J-Link to use the TDI and TDO pins for UART communication. You would need an additional pin (e.g. TMS) manually controlled, connected to the ISP pin.
    You would also need to wire the reset pin.
    So 4 pins in total.
    With such a setup, you could do what FlashMagic does.

    There are currently no plans from the SEGGER side to write such an application.

    BR
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.