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.

CCS/TMS320F28377D: ADC calibration

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi,

I am using this part in debugger mode and for adc calibration, I found out in the following link that if we are working in debugging mode, we must call the Device_cal function in our code to be able to load the factory defined offset trim values.

The link for the question: https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/701752

My question is: How can I find the address for the pointer where the device calibration function resides in memory for my part? Is it the same for all parts?

Best regards,

Musti

  • Mustafa,

    Yes, this is not well documented.  The address can be found in the boot ROM source in C2000Ware.

    C:\ti\c2000\C2000Ware_2_01_00_00\libraries\boot_rom\f2837xd\revB\rom_sources\F2837x_bootROM\cpu01-bootROM\include\c1_bootrom.h

    For F2837xD devices:

    #define DEVICE_CAL_LOCATION 0x70280
    #define C1BROM_DEVCAL (void (*)(void))(DEVICE_CAL_LOCATION)

    ----------------------------

    Note that even when using the debugger, you can still do a device reset in CCS and run from there (e.g., jump-to-flash or jump-to-RAM bootmode).  The the bootloader will run the device CAL for you.

    Regards,

    David

  • Hi Mustafa,

    Every part in the F2837xD family will have the same pointer address for Device_cal().  Pointer address for Device_cal() changes though per device family (i.e. - F2837xD has different Device_cal pointer address as F28004x or F2838x ).

    Regards,

    Joseph