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.

CC1310EMK: Is it allowed to modify board specific driver files?

Part Number: CC1310EMK

Hi,

I'm trying to make some changes to board specific files such as ADCBufCC26XX.c and GPTimerCC26XX.c. However, when I debug the changes don't seem to make any affect. When I use breakpoints, the program doesn't actually execute the changes I added it seems. Can anybody give me some hints on this?

Specifically I want to make these changes:

GPTimerCC26XX_Params_init(&paramsUnion.timerParams);

paramsUnion.timerParams.width = GPT_CONFIG_16BIT;
paramsUnion.timerParams.width = GPT_CONFIG_32BIT;
paramsUnion.timerParams.mode = GPT_MODE_PERIODIC_UP;
paramsUnion.timerParams.debugStallMode = GPTimerCC26XX_DEBUG_STALL_OFF;
object->timerHandle = GPTimerCC26XX_open(hwAttrs->gpTimerUnit, &paramsUnion.timerParams);

When the program runs, the paramsUnion.timerParams.width still has the value of GPT_CONFIG_16BIT

Thank you.

  • Hi,
    what is paramsUnion and where have you declared it?

    What do you mean by "changes to board-specific" files? Do you want to edit board files like CC1310DK_7XD.c? Or do you want to modify the drivers?
  • So I made some changes to file ADCBuf26XX.c but when program still runs with the old codes written in that file. I think I need to recompile that file in my project but I don't know how.
  • Hi,

    thanks. Now I understand. The reason why it doesn't work is, that the SDK ships a pre-built tidrivers library and all applications link to that one

    Therefore:

    • Do not make any changes to files in the SDK directory.
    • Copy the desired driver .c file from the SDK directory into your project directory and modify it there.
    • Compile the modified file together with your project. Thes symbols from your application will take precedence over the linked libraries.