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.

TMS320F28335: problems about ADC_cal

Part Number: TMS320F28335

Hi Team,

There is an issue from the customer need your help:

The file DSP2833x_ADC_cal.asm is added to project.

And added the file path to the include path.

But it still have errors.

Code Composer Studio

Version: 10.4.0.00006

Could you help check this case?

Thanks & Regards,

Ben

  • Customer use CCS 11 and CCS 7.4  successful compiled. But he want to dig deeper for this problem.

  • Hi Ben,

    Can you please check if the following list is included in your project:

    \device_support\f2833x\common\include

    \device_support\f2833x\headers\include

    Also, DSP28x_usDelay function is defined in the DSP2833x_usDelay.asm. Perhaps you have not added that file in your project. Please try to add it manually if it is not added. 

    Regards,

    Meghavi

  • Hi Meghavi,

    Yes, he has every thing you said added to project.

    I tried his project and I ran into same problem as him.. Here's the project, can you help check it?

     test01.zip

    Thanks & Regards,

    Ben

  • Hi Ben, 

    Can you please let us know if you are using the same project in CCS 11 / 7.4 or did some changes?

    Also, Did you make any changes in any header files like DSP2833x_Adc.h or DSP2833x_SysCtrl.h?

    Regards,

    Meghavi

  • Hi Meghavi,

    Can you please let us know if you are using the same project in CCS 11 / 7.4 or did some changes?

    No, this problem only exists in the CCS10 version of the software. The new projects created in CCS7 and CCS11 with the same steps will not have this problem. 

    Also, Did you make any changes in any header files like DSP2833x_Adc.h or DSP2833x_SysCtrl.h?

    Nothing changed.

    Best Regards,

    Ben

  • Hi Ben,

    The issue is due to the compiler output format which is been selected. You can check in project properties:

    For the COFF ABI, compiler adds underscore prefix to symbol names while EABI does not. So, it is showing that ADC_cal and DSP28x_usDelay is undefined. Please refer to the "Removing the COFF Underscore" and following section from this link: C2000 Migration from COFF to EABI.

    You can change the Output format from EABI to COFF or you can still use the EABI, but you would need to add the following code in the respective .asm file:

    For _ADC_cal:                      

    .if __TI_EABI__
    .asg ADC_cal, _ADC_cal
    .endif 

    and for _DSP28x_usDelay:

    .if __TI_EABI__
    .asg DSP28x_usDelay, _DSP28x_usDelay
    .endif

    Both ways, your issue will be resolved. Please let us know if you have any queries regarding this. 

    Regards,

    Meghavi