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

uv4.21 - breakpoint problems

Hello,

I just upgraded to uv 4.21 and after doing this I can't seem to use breakpoints on my project.

(I'm using an LPC1788 development board - Cortex-M3)
(I'm using ULINK Pro)

with version 4.20 and the same code I had no problems with breakpoints but now if I have even 1 before I try and run the code I get the following error:

"This target device does not support all the defined breakpoints!
Please reduce the number of breakpoints and start again."

If I try and add a breakpoint while the application is running I get:

"Operation not possible while the target device is executing.
Please stop the target to perform the operation."

I can stop the execution and step through code but no breakpoints.

Does anyone have any ideas?

Thanks.

M

Parents
  • Which device are you using for your product?

    Let's assume it is something like this device:

    http://www.keil.com/dd/chip/5722.htm

    The LPC1810 accesses external NOR flash via the External Memory Controller (EMC). I assume upon reset your device's EMC is at its default values and not set to talk to NOR flash.

    I assume that when the debugger tries to load the breakpoint register with the NOR flash address, it cannot yet access NOR flash, and yields an error.

    you could write a debug command

    BS 0xAAAA

    , where 0xAAAA is the memory location where you NOR flash resides. That way after your EMC is configured by your project, you could quickly set a breakpoint.

Reply
  • Which device are you using for your product?

    Let's assume it is something like this device:

    http://www.keil.com/dd/chip/5722.htm

    The LPC1810 accesses external NOR flash via the External Memory Controller (EMC). I assume upon reset your device's EMC is at its default values and not set to talk to NOR flash.

    I assume that when the debugger tries to load the breakpoint register with the NOR flash address, it cannot yet access NOR flash, and yields an error.

    you could write a debug command

    BS 0xAAAA

    , where 0xAAAA is the memory location where you NOR flash resides. That way after your EMC is configured by your project, you could quickly set a breakpoint.

Children
  • Hi Ron,

    Thanks for your reply and suggestion.

    I'm using an LPC1788 so yes it access the NOR via the EMC.

    I initialize the EMC at startup before the call to main as follows:

    Reset_Handler   PROC
                    EXPORT  Reset_Handler             [WEAK]
                    IMPORT  SystemInit
                    IMPORT  emc_setup_asm
                    IMPORT  __main
                    LDR     R0, =SystemInit
                    BLX     R0
                    LDR     R0, =emc_setup_asm
                    BLX     R0
                    LDR     R0, =__main
                    BX      R0
                    ENDP
    

    I also (redundantly) configure the EMC via a debug/flash program INI file. In any case even if I wait until after the EMC is properly configured I still can not add a breakpoint.
    (Note I can see the disassembly of the NOR)

    I tried the 'BS 0x800000' command as you suggested but I get the same error messages.

    Have you ever encountered this? Am I correct in thinking that I should be able to add breakpoints to the code in external NOR?

    Thanks.

    M