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.

TMS320F2800137: Two problem about dsp2800137 driverlib function

Part Number: TMS320F2800137
Other Parts Discussed in Thread: C2000WARE

I recently build up 2800137  APP with 2800137 driverlib function and I found there are two problem.
Problem 1: ADC_setSOCPriority function write a 16 bits length register by a 32 bits lengths variable in C2000Ware_5_00_00_00. But the function use 16 bits variable in C2000Ware_4_02_00_00. I think C2000Ware_4_02_00_00 is right because the variable bit length is equal to register length. (Please see attaching picture.)
File path: C2000_ROOT\C2000Ware_x_xx_xx_xx\driverlib\f280013x\driverlib\adc.h
 
Problem 2: GPIO_setAnalogMode function in C2000Ware_5_00_00_00 has a bug. I found the check logic of analog pin is copied from  280015x. So I can't set up my ADC configure. I wounder when will release new driverlib?
File path: C2000_ROOT\C2000Ware_5_00_00_00\driverlib\f280013x\driverlib\gpio.c
Thanks for help
  • Hello Albert,

    I can confirm the first issue is indeed a bug and I am filing a ticket to our software team to have it fixed in the next release. The macro used should be HWREGH, not HWREG.

    For the second issue, the analog channels on F280013x and F280015x are the same. But this is also a bug - the AIOs have been excluded from the initial assert validation, and they should be included. We already have an existing ticket on this issue, and it will be fixed in the next release. In the meantime, you can try commenting out the ASSERT statement in this function and recompile driverlib to work around this issue.

    Ibukun

  • Hi Ibukun

    Thanks your help.

    Second issue, My workaround is to replace the GPIO_setAnalogMode function in C2000Ware_5_00_00_00 with the function in C2000Ware_4_02_00_00.

    Although I found a workaround, I still need to know when new driverlib will be released?

  • Albert, the next release of C2000Ware is currently planned for the second week of November.

    Best regards,
    Ibukun