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.

TMS320F28374S: Struct Fields Addresse for Delfino mcu

Part Number: TMS320F28374S
Other Parts Discussed in Thread: CCSTUDIO, C2000WARE

Hello All,

My customer is willing to use Delfino mcu for UPS applications.

They would need to know the addresses of the struct fields of their working firmware (on DSP C2000 series - Delfino mcu) in order to access them from outside, without using the emulator;
However it seems that only the start addresses of the structs appear on the map elaborated by CCStudio (version 8).
Is it possible in some way to have all the addresses?

Many Thanks,

Antonio

  • Are you asking for the addresses of the individual registers? You can find the address offsets within the structure using the TRM.

    If you want it in a software format, you could also look at the driverlib header files in C2000Ware. The header files in \driverlib\f2837xs\driverlib\inc contain #defines for all of the address offsets. You can add them to the structure addresses to get the actual register address.

    Whitney

  • Hello Whitney,
    This is the direct feedback from customer:

    We would need the addresses of all the struct fields that we defined and used in our firmware.
    In the map file, generated by CCStudio 8, we find only the initial address of these structs.
    Therefore to access, without emulator + CCStudio, to the various fields we should calculate the displacements.
    Are these addresses available in some other file or through specific tools?
    Thank you,

    Antonio
  • I see, thanks for your patience. I don't know of a way to do this in the .map file. You can turn on the --keep_asm compiler option and find the .dwtag section for the struct in the .asm file to get the address offsets (DW_AT_data_member_location) and add it to the base address from the .map file to get the field addresses.

    Whitney