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.

TMS320F280049: Is call to Device_cal necessary for ADC offset trim configuration?

Part Number: TMS320F280049

I'm using the C2000 F28004x Control Card development kit and trying to set up the ADCs.

In the section on ADC calibration (13.1.12), the F28004x manual states that "the boot ROM will call the functions, so trim values should be initially populated without user intervention".  If I break on the first line of main and check the values in the ADCOFFTRIM register for ADC A, it contains 0.  If I then call Device_cal(), ADCOFFTRIM contains 0x000000F0.  This seems to suggest that the boot ROM is not reading the calibration values.  Is there anything I could have done in the project set up that would make some or all of the boot ROM functionality not be called?

  • Hi Gareth,

    Seems like you are using the debugger when running this exercise when you set a breakpoint in main() to check the trim values. What you have described is a known issue with the gel file call when using debugger mode. Please see similar thread in the post e2e.ti.com/.../701752 . In debugger mode, the call in gel file for Device_Cal() clears all the calibration values. There is also a workaround that I have suggested in the same post on how to properly invoke device cal when in debugger mode.

    Let me know if you have any questions on this topic.

    Regards,
    Joseph