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.

TMS320F28388D: TMS320F28388D: Debugging a two processor board where program is in flash

Part Number: TMS320F28388D

I've designed our target board with two TI28388D MCUs.

Two MCUs are connected JTAG chain

I have no problem with downloading and flashing.

(only two CPU1 cores )

When I try to debugging my target board with your sample project like as 'led_ex1_blinky', I have trouble with using break point in flash mode.

I can use H/W break-point in the first MCU but can't use any break point in the second MCU.

The error message is same as below.

"Trouble Setting Breakpoint with the Action "Remain Halted" at 0x82ec8: (Error -1066 @ 0x82EC8) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 9.5.0.00143) "

When I debug your project running from RAM, I can use break point in two MCUs both.

Is there any limitation of break point in JTAG chain for two MCUs ?

  • Chung,

    There is a limitation of two hardware breakpoints when working flash. Did you try not having any breakpoint in board 1 and see whether you can set breakpoint at board 2.

    Also, provide details on emulator used?

    Regards,

    Manoj

  • Manoj

    1. Emulator: XDS560V2 STM LAN Emulator

    2. Test case (Set a breakpoint in MCU2)

    Even though no brreakpoint set in MCU1(CPU1), I cann't set breakpoint to MCU2(CPU1). 

    If I try to set a breakpoint on the left side of line number in MCU2, CCS tries to set a S/W breakpoint and fails. 

    3. Test case (Set a breakpoint in MCU1: Working well)

    H/W breakpoint is working well

    4.Can't I use any S/W breakpoint in flash mode?

  • PS)

    There is H/W breakpoint in popup menu in MCU1. 

    There is no H/W breakpoint in popup memu in MCU2

  • Chung,

    Thanks for the details. I unfortunately need to pass this E2E thread to someone in CCS / Emulation team to provide an answer.

    Please expect to hear back from them in 3 - 4 business days.

    Regards,

    Manoj

  • I can use H/W break-point in the first MCU but can't use any break point in the second MCU.

    The error message is same as below.

    "Trouble Setting Breakpoint with the Action "Remain Halted" at 0x82ec8: (Error -1066 @ 0x82EC8) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 9.5.0.00143) "

    When I debug your project running from RAM, I can use break point in two MCUs both.

    I believe your issue is related to the below known issue:

    https://sir.ext.ti.com/jira/browse/EXT_EP-10378

    There is a crude workaround. Try disabling ctools in CCS. To do this:

    -browse to <CCS INSTALL DIR>/ccs/ccs_base/emulation/analysis/bin/

    -rename ctools.dll to something else

    The start up CCS and see if you can set HW breakpoints on the second device. Note that you may get some error messages about unable to read a register but it is a false message in that there is no issue.

    Let me know if the workaround allows you to se a HW breakpoint on the second device.

    Thanks

    ki

  • Thank you very much.

    I can use the H/W breakpoint on the second device now.

    Taehyok