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
  • Hello Lee,

    Thanks for testing. I get the same error here, "device does not support all the defined breakpoints", even though not a single breakpoint has been set.

    It's interesting to know that you can step from internal into external memory. That doesn't work here- the debugger immediately quits when trying. So there must be some other problem here. Maybe because the project was once written for the LPC2478, and then carefully(!) modified for the LPC1788 by editing the *.uvproj and *.uvopt with a text editor (which is something that Keil surely doesn't recommend, but I didn't want 'click together' a brand-new project since there are hundreds of sourcecode modules in my project). Of course the startup files were replaced, scatter loading file adjusted for the new target, etc etc.

    I will keep trying.

    Cheers, Wolf .

Reply
  • Hello Lee,

    Thanks for testing. I get the same error here, "device does not support all the defined breakpoints", even though not a single breakpoint has been set.

    It's interesting to know that you can step from internal into external memory. That doesn't work here- the debugger immediately quits when trying. So there must be some other problem here. Maybe because the project was once written for the LPC2478, and then carefully(!) modified for the LPC1788 by editing the *.uvproj and *.uvopt with a text editor (which is something that Keil surely doesn't recommend, but I didn't want 'click together' a brand-new project since there are hundreds of sourcecode modules in my project). Of course the startup files were replaced, scatter loading file adjusted for the new target, etc etc.

    I will keep trying.

    Cheers, Wolf .

Children