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

LPC1788 - Problem with breakpoints / debugging in external Flash

Hi All,

Apologies because the same (or at least similar) topic has already been asked in http://www.keil.com/forum/19204/ ,
but for some reason it's impossible to post a reply there (thread declared as "Read-Only").

Marc Crandall never got an answer for his question:

>
Am I correct in thinking that I should be able to add breakpoints to the code in external NOR?
<

I am facing a similar problem: LPC1788 (Cortex-M3), toochain MDK-ARM Version 4.22a .
Target is an LPC1788 with both external SDRAM (32 bit wide) and external Flash (16 bit wide).

Breakpoints in internal Flash: No problem
Breakpoints in external Flash don't work.

Single-stepping over an instruction which 'jumps' from internal Flash into external Flash causes the debugger to lose control, i.e. no more single-step. I can stop the debugger after that, and see that the CPU executes the proper code in external Flash (actually a custom bootloader).

Suggestions ?

All the best, Wolfgang .

Parents
  • Would you mind sharing your flash.ini file for programming the external flash. We are evaluating the LPC1788 device with hardware developed for the LPC2478 (supposed to be drop in electrically).

    I have developed a small blinky program that operates from internal flash and uses external SRAM (Cypress CY7C1061) with no problems. When i try to move to external flash and use an adjusted flash.ini file and updated .flm file for our external flash (Spansion S29GL128), the flashing seems to run with no problem to verification where it errors out with "Contents missmatch at: 80000000H (Flash=FFH Required=6EH)!" (and continues for 63 more locations).

    I would like to see if i am doing something wrong in my ini file. If i can get my program to external flash then i will test the debugging from ext flash and report back.

    Thanks,

    Lee

Reply
  • Would you mind sharing your flash.ini file for programming the external flash. We are evaluating the LPC1788 device with hardware developed for the LPC2478 (supposed to be drop in electrically).

    I have developed a small blinky program that operates from internal flash and uses external SRAM (Cypress CY7C1061) with no problems. When i try to move to external flash and use an adjusted flash.ini file and updated .flm file for our external flash (Spansion S29GL128), the flashing seems to run with no problem to verification where it errors out with "Contents missmatch at: 80000000H (Flash=FFH Required=6EH)!" (and continues for 63 more locations).

    I would like to see if i am doing something wrong in my ini file. If i can get my program to external flash then i will test the debugging from ext flash and report back.

    Thanks,

    Lee

Children