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/TI-RTOS-MCU: TI-RTOS full source code debug.

Part Number: TI-RTOS-MCU
Other Parts Discussed in Thread: SYSBIOS, CC2650, CC1350

Tool/software: TI-RTOS

Hello , I like to make ti-rtos base project under full source code debug mode for learning; so I just modify the *.cfg as follow shows:

// rfPacketRx_CC1310DX_7XD_TI

//BIOS.libType = BIOS.LibType_Custom;
BIOS.libType = BIOS.LibType_Debug;

/* ================ ROM configuration ================ */
/*
 * To use BIOS in flash, comment out the code block below.
 */
/*
var ROM = xdc.useModule('ti.sysbios.rom.ROM');
if (Program.cpu.deviceName.match(/CC26/)) {
    ROM.romName = ROM.CC2650;
}
else if (Program.cpu.deviceName.match(/CC13/)) {
    ROM.romName = ROM.CC1350;
}
*/

    rfHandle = RF_open(&rfObject, &RF_prop, (RF_RadioSetup*)&RF_cmdPropRadioDivSetup, &rfParams);   //Breakpoints here, and F5 step into ,

but it jump to rf_init()  1279    // Initialize global variables ,not RF_open(...)  , so what's wrong ?  how can I do ?

  • Hello,

    It appears that the code may be optimized by the compiler. As a result, the debugger appears to "jump around" as you attempt to single step. You could try adding the RF driver files directly to your project and rebuild with optimization off.

    (ie. rfPacketRx_CC1310DX_7XD_TI > ti > drivers > rf > (RF.c, RFCC26XX_xxxMode.c))

    To view optimization settings, right click your project in Code Composer Studio. Navigate to Properties > Build > ARM Compiler > Optimization.

    Derrick

  • I'm marking this thread as closed due to no activity.

    Todd