This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem of Terminate Program Execution" at 0x20012dxx: Debug Port error occurred in CC3200

Other Parts Discussed in Thread: CC3200

Hi, 

I have written a rtos application, it was compiled successfully, but when I try to download this into board ccs is giving following Error. 

Cortex_M4_0: GEL Output: 
Memory Map Initialization Complete
Cortex_M4_0: Error connecting to the target 
Cortex_M4_0: GEL Output: 
Target Reset
Cortex_M4_0: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x2000cbb4: Debug Port error occurred.
Cortex_M4_0: Breakpoint Manager: Retrying with a AET breakpoint
Cortex_M4_0: Breakpoint Manager: Error enabling this function: Address exceeds the allowed range
Cortex_M4_0: Trouble Setting Breakpoint with the Action "Terminate Program Execution" at 0x20012d38: Debug Port error occurred.
Cortex_M4_0: Breakpoint Manager: Retrying with a AET breakpoint
Cortex_M4_0: Breakpoint Manager: Error enabling this function: Address exceeds the allowed range
Cortex_M4_0: Error: Debug Port error occurred.
Cortex_M4_0: Error: Debug Port error occurred.
Cortex_M4_0: Error: Debug Port error occurred.
Cortex_M4_0: Trouble Reading Register SP: Debug Port error occurred.
Cortex_M4_0: Error: Connection with the target was unexpectedly lost.

Can anyone help how to solve this, and I'm facing a strange issue like sometime debugger is giving exceeded memory range error for an application, which is downloaded sometimes without any Error message and working properly, How to solve these problems.

Thanks in advance.

  • Hi Vinod,

    I suggest you to check few things in you project (if missing any)

    1. Looks like somewhere your program is going out of defined RAM limit, double check if you are using cc3200v1p32.cmd (for XCC3200HZ device) or cc32001p21.cmd (for XCC3101GZ device) linker command file (project properties->General option)
    2. Choose device variant as 'CC3200' for your project and use CC3200.ccxml (<cc3200-sdk>\tools\ccs_path) in your CCS Target Configuration to download/debug code to device.
    3. If using Free-RTOS make sure you have attached startup_ccs.c (available under example\common folder) with your project
    4. Do following the initial steps given in all examples (BoardInit() ), vector table initializations.
    5. Check the SP register value when code downloads and CCS halts at main, it should point to '0x20004000 (starting address of RAM)
    6. Follow Programmer's Guide (<cc3200-sdk>\docs\CC3200-Programmers_Guide.pdf) to create a new CCS project and all those settings.

    Let us know if above options solve your problem.

    Regards,

    Jitendra

  • Hi Vinod,

    I am closing the thread, if issue still exist please open a new thread and add a link to this one for reference

  • Hi Jitendra, just had the same problem as Vinod.

    I get the error: 

    Cortex_M4_0: GEL Output:
    Memory Map Initialization Complete
    Cortex_M4_0: GEL Output:
    Target Reset
    Cortex_M4_0: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x2000989c: Debug Port error occurred.
    Cortex_M4_0: Breakpoint Manager: Retrying with a AET breakpoint
    Cortex_M4_0: Breakpoint Manager: Error enabling this function: Address exceeds the allowed range

    And I tried your solution but still nothing.

    My program code is about 63KB

    I'm using the cc3200v1p32.cmd and cc3200.ccxmcl

    CCS doesn't always even halt at main, it did on a few tries and the SP register value is effectively 0x20004000 

    Any Suggestions??

    Help is really appreciated.