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.

RTOS/CC2642R: Not able debug the TI-RTOS Project , it is not jumping to main function from internal ROM area, with Evolution board it is working fine.

Part Number: CC2642R
Other Parts Discussed in Thread: SYSBIOS, CC2640R2F, CC2650, CC1350

Tool/software: TI-RTOS

Hi Team,

We are able to build the project with TI-RTOS kernel and debug the same with CC2642R1 Launchpad Evolution board.But the same project we are  not able to debug with our own make board.

We are able to download and flash with IAR -IJET Debugger, but it's not jump to main function from ROM Area. I have attached log message.

  • Adding to previous post , here with i am putting some more input related the issue.
    while debugging project with TI-RTOS API's we are getting the below fault exception message and unable the debug the code.

    " Hard Fault Exception:
    The processor has escalated a configurable-priority exception to HardFault.
    An imprecise data access error has occurred (CFSR.IMPRECISERR, BFAR).
    Exception occured at PC = 0x1003b770, LR = 0x169d"

    Call Stack Message:
    "[ti_sysbios_family_arm_m3_Hwi_return + 0x3] "

    One more observation regarding custom build:

    When we add below changes in TI-RTOS.cfg file

    var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    if (Program.cpu.deviceName.match(/CC2640R2F/)) {
    ROM.romName = ROM.CC2640R2F;
    }
    else if (Program.cpu.deviceName.match(/CC26.2/)) {
    ROM.romName = ROM.CC26X2;
    }
    else if (Program.cpu.deviceName.match(/CC13.2/)) {
    ROM.romName = ROM.CC13X2;
    }
    else if (Program.cpu.deviceName.match(/CC26/)) {
    ROM.romName = ROM.CC2650;
    }
    else if (Program.cpu.deviceName.match(/CC13/)) {
    ROM.romName = ROM.CC1350;
    }

    Prebuild option is failing. Is that any other changes required when we add this change in .cfg file.

    Regards,
    Srinivas.V
  • Based on where the code halts it looks like this: e2e.ti.com/.../767774 is relevant.
  • Hi Tem,

    Thanks for your reply.

    https://e2e.ti.com/support/wireless-connectivity/sub-1-ghz/f/156/t/767774  , with this SDK update I am able to debug the code.

    Regards,

    Srinivas.V