J-Link Commander error when flashing LPC810M021FN8

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

  • J-Link Commander error when flashing LPC810M021FN8

    I am getting the following error when attempting to flash the 512 first bytes of a LPC810M021FN8 with a binary file
    containing 512 null bytes:

    ****** Error: Target system has not enough RAM.

    Here is a transcript of my J-Link Commander session:

    SEGGER J-Link Commander V4.68 ('?' for help)
    Compiled Apr 6 2013 00:11:06
    DLL version V4.68, compiled Apr 6 2013 00:10:46
    Firmware: J-Link ARM V8 compiled Nov 14 2012 22:34:52
    Hardware: V8.00
    S/N: <my J-Link serial number>
    OEM: SEGGER-EDU
    Feature(s): FlashBP, GDB
    VTarget = 2.594V
    Info: Found SWD-DP with ID 0x0BC11477
    Info: FPUnit: 4 code (BP) slots and 0 literal slots
    Info: Found Cortex-M0 r0p0, Little endian.
    Found 1 JTAG device, Total IRLen = 4:
    Cortex-M0 identified.
    JTAG speed: 100 kHz
    J-Link>h
    R0 = 00000000, R1 = 00000002, R2 = FFFFFFFF, R3 = 00000000
    R4 = 40048000, R5 = FFFFFFFF, R6 = 12345678, R7 = FFFFFFFF
    R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
    R12= FFFFFFFF, R13= 100003DC, MSP= 100003DC, PSP= FFFFFFFC
    R14(LR) = 1FFF025D, R15(PC) = 1FFF0240
    XPSR = 01000000, APSR = 00000000, EPSR = 01000000, IPSR = 00000000
    CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
    CycleCnt = 00000000
    J-Link>exec device = LPC810M021
    Info: Device "LPC810M021" selected (4 KB flash, 1 KB RAM).
    J-Link>loadbin 512-zeroes.bin,0
    Loading binary file... [512-zeroes.bin]
    Writing bin data into target memory @ 0x00000000.

    ****** Error: Target system has not enough RAM.
    J-Link>

    Is this a known issue with this specific device ? I looked in the manual for any mention of something similar to 'exec setworkram' that would need to be used for flashing internal flash memory of devices with small amount of available RAM, but did not find anything that could explain this problem yet.

    Thanks in advance,
  • Hi,

    The LPC devices with 1 KB RAM are somewhat problematic because they need a minimum alignment of 256 bytes to be programmed (which means at least multiple of 256 bytes need to be programmed at once when running the RAMCode),
    the IAP needs the top 32 bytes of the RAM and the J-Link RAMCode also needs some bytes + stack, so 1 KB is really tight for this.
    We are working on a specialized version of the RAMCode which is small enough to also handle the 1 KB devices but this will take a bit.

    Currently, for NXP LPC devices a minimum of 2 KB RAM is needed due to the large programming MinAlignment of the NXP IAP which takes 1/4 of the available RAM away for data that must be programmed at once.


    Best regards
    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.