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.

Software Breakpoints F2806



Hi, 

My customer is having trouble setting software breakpoints.  He is using CCS 5.4.

He is executing code out of Flash.  I seem to see issues with software breakpoints not set in RAM but I can't find anything definative.  He is effectively using his 2 hardware breakpoints.  We have found the ESTOP0 instruction, but it is cumbersome compared to setting a breakpoint in the IDE.

We did see:

Additionally, special analysis hardware is provided which allows the user to set hardware breakpoint or data/address watch-points and generate various user-selectable break events when a match occurs.

He gets this error:

C28xx: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x3dea16: Error 0x00000008/-1066 Error during: Break Point,  Cannot set/verify breakpoint at 0x003DEA16 

C28xx: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x3dea32: Error 0x00000008/-1066 Error during: Break Point,  Cannot set/verify breakpoint at 0x003DEA32 

C28xx: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x3dea16: Error 0x00000008/-1066 Error during: Break Point,  Cannot set/verify breakpoint at 0x003DEA16 

C28xx: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x3e3c81: Error 0x00000008/-1066 Error during: Break Point,  Cannot set/verify breakpoint at 0x003E3C81 

C28xx: Breakpoint Manager: Retrying with a AET breakpoint

C28xx: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x3e3c81: Error 0x00000008/-1066 Error during: Break Point,  Cannot set/verify breakpoint at 0x003E3C81 

 

  • Blake ,

    The post mentions "issues with SW breakpoints not set in RAM" but the addresses in the 3Dxxxx and 3Exxxx address range are in flash?
    On current C28x devices there are only 2 hardware breakpoints. The errors seem to indicate all of the HW breakpoints are used up?
    Is the customer using C/IO? (printf for example) will take breakpoints. There is also a set at end of program breakpoint that often uses up one.

    In the debug properties you can disable these breakpoints. Note that disabling the C/IO breakpoint will cause printf like functions to not work.

    processors.wiki.ti.com/.../FAQs

    If I have misunderstood the problem, please clarify.

    -Lori
  • Hi Lori,

    The customer is trying to use software breakpoints while executing out of Flash. 

    He has used up his 2 hardware breakpoints, but wants to set a number of software breakpoints.

    Is this scenario possible for the 2806 from the IDE or does he have to use the ESTOPx commands?

    Thanks!

    Blake

  • Blake,

    He will have to embed the ESTOP opcode into the code.

    A software breakpoint is an ESTOP. CCS will store off an opcode, replace it with an ESTOP and then swaps it back out again when appropriate. This is easy to do in RAM.

    There is no ability to do this in flash.

    Regards
    Lori
  • Thanks Lori! Have a great weekend.