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.

CCSTUDIO-C2000: Utilizing erad HW breakpoints in CCS

Part Number: CCSTUDIO-C2000

HI

I am using an f280023c processor (and an f230025c on the launcpad)

Currently I can only set 2 HW breakpoints. In the manual for f28002x it says I can get up to 10 breakpoints using the ERAD.

I have searched and searched. But I find no examples nor documentation on how to utilize the ERAD for breakpoints in CCS.

I find lots of articles and examples on how to do advanced profiling, with javascript and what not.

Do TI expect me to sit and type long java scripting commands just to set a simple break-point, or have I totally missed the obvious here?

I don't want any advanced profiling (at least not at the moment)  I just want to set some breakpoints.

Please advice.

EDIT:

Maybe I should add that i use

XDS110 (build into launcpad) for the f280025c

and XDS200 for f280023c

If that makes a difference.

  • Hi,

    Yes, this is a known issue in CCS support for F28002x. At present it is not using the ERAD HWBPs. We have a ticket raised on this issue.

    As a workaround, you can try using the driverlib function ERAD_configBusComp to insert a breakpoint at the required address.

    Regards,

    Veena

  • Do you have a link where i can subscribe to this ticket?

  • Martin,

    The link to the issue is here: https://sir.ext.ti.com/jira/browse/EXT_EP-10585

    It just came in so no extra info is in it at this time.

    Regards,

    John

  • Well at least it now got my vote ;-)

  • Martin,

    I will give CCSv11.0 a try but I suspect that it also does not have ERAD support for F28002x.  I can reproduce the same limitation on my F280025C.  We definitely need to get support for ERAD implemented.  CCSv11.0 is this week but we do have an 11.1 service released in Dec so we should be targeting for support there.  The team will be analyzing the issue this week.  

    Regards,

    John

  • Just a followup if anyone else happens to face same problem. here is the ERAD function calls that works for setting a HW-breakpoint:

        ERAD_BusComp_Config config_params1;
        config_params1.reference = (uint32_t)&myFunc;
        config_params1.mask = 0;
        config_params1.bus_sel = ERAD_BUSCOMP_BUS_VPC;
        config_params1.comp_mode = ERAD_BUSCOMP_COMPMODE_EQ;
        config_params1.enable_stop = 1;
        config_params1.enable_int = 0;
        ERAD_configBusComp(ERAD_HWBP1_BASE, config_params1);
    
        ERAD_BusComp_Config config_params2;
        config_params2.reference = (uint32_t)&myFunc + 10;
        config_params2.mask = 0;
        config_params2.bus_sel = ERAD_BUSCOMP_BUS_VPC;
        config_params2.comp_mode = ERAD_BUSCOMP_COMPMODE_EQ;
        config_params2.enable_stop = 1;
        config_params2.enable_int = 0;
        ERAD_configBusComp(ERAD_HWBP2_BASE, config_params2);
    
        ERAD_enableModules(ERAD_INST_BUSCOMP1 | ERAD_INST_BUSCOMP2);

    in this case setting one breakpoint at myFunc() and one at myFunc() + 10

    Thanks to Joakim for the code example.