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

LPC18xx Breakpoints using SPIFI Flash

Hello,

I've just started to use LPC1788 with serial flash AT25DF321A.
I've wrote a simple code for blinking a led that is working, but the problem is that I cannot set any breakpoint. Since sofware is running from serial flash (@0x80000000) and every attempt of setting breakpoint is followed by this message : "This target device does not support all the defined breakpoints"

Does any one know why? How to solve it?

Thank you very much.

Henry Quyque

  • By design the Cortex-M3 CoreSight unit cannot set breakpoints beyond 0x80000000. The error message could be more descriptive but it is acutally justified.

    From the manual of your device I learn the following maybe useful information:

    SPIFI data 0x2800 0000 to 0x28FF FFFF
    Remark: This is the space allocated to the SPIFI in the LPC178x/7x. The area allocated allows a maximum of 16 MB of SPI flash to be mapped into the Cortex-M3 memory space. In practice, the usable space is limited to the size of the connected device

  • Thank you for your attention!

    I found out in LPC18XX User Manual this note:


    0x1400 0000 to 0x17FF FFFF (Use this memory area for debugging code and for
    slightly improved performance).
    0x8000 0000 to 0x87FF FFFF (Debug will not work if the program counter is in this
    memory area).

    Then I saw that serial flash is mirrored at 0x14000000 and the difference is that this area is only 64MB mapped instead of 128MB of the 0x80000000 area.
    So I've compiled my software for 0x14000000 and done!
    Now I can debug it with breakpoints!

    Thank you again!