ARM-USB-TINY-H + SWD + LPC1114 (DIP28): Verify failed

Comments

4 comments

  • Avatar
    Jon Elliott

    Hi Eric,

    It sounds like the remapping of FLASH to address 0x0000000 is not occurring - this is done by the FLASHReset() function in the LPC11xx reset script.

    How did you create the project?

    Do you get the same behaviour if your use one of our sample projects (for example the projects in the IAR LPC1114 KickStart board support package).

    Regards,

    Jon

    0
    Comment actions Permalink
  • Avatar
    Eric Busto

    Jon,

    Thanks for the help.  I used the project "wizard", however, I selected LPC1114 instead of LPC1114/102 for the MCU model.  I see the same result when I install the IAR LPC1114 KickStart package and load that.

    if I build a trivial project and select LPC1114/102 as the MCU model, I get the following error when I select the FLASH Debug build setting and try to upload it: "Loader error: unknown target device."

    If I select a RAM Debug or Release build setting and try to upload it, I get:

    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .heap is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .stack is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .stack_process is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .vectors_ram is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .tbss is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .tdata is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .heap is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .stack is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .stack_process is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .vectors_ram is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .tbss is too large to fit in RAM memory segment
    /Applications/CrossWorks for ARM 2.2/gcc/arm-unknown-eabi/bin/ld: error: .tdata is too large to fit in RAM memory segment

    Build failed

    -Eric

    0
    Comment actions Permalink
  • Avatar
    Jon Elliott

    Eric,

    There are some newer LPC11xx devices, support for which didn't make it to last weeks LPC1000 CPU support package release. Can you try replacing the existing loader with the one attached to see if it solves the problem. To find the existing loader, click File > Open Directory In File Explorer > Open Targets Directory... and then look in the LPC1000/Release directory.

    If that doesn't fix it, can you try running the program described at https://rowley.zendesk.com/entries/123298-lpc1114-with-swd-loader-error-unknown-target-device to get the part ID. As you are running on a small device you may need to disable printf/scanf support in order to get it to fit in RAM - to do this set Printf/Scanf Options > Printf Supported and Printf/Scanf Options > Scanf Supported project properties to "No".

    Regards,

    Jon

    0
    Comment actions Permalink
  • Avatar
    Eric Busto

    Jon,

    Thanks, that was very helpful.  I can now load my program into RAM or flash.

    -Eric

    0
    Comment actions Permalink

Please sign in to leave a comment.