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.

[参考译文] TMS320F280039:如何获取编译器版本、直接从.out 或 hex 文件编译时间信息?

Guru**** 2398695 points
Other Parts Discussed in Thread: C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1261088/tms320f280039-how-to-get-the-compiler-version-compiling-time-info-from-out-or-hex-file-directly

器件型号:TMS320F280039
主题中讨论的其他器件:C2000WARE

您好、专家:

它能够 直接从.out 或 hex 文件获取编译器版本、编译时间信息吗?  客户未通过闪存 API 函数将这些信息存储在应用代码中、是否可以获取编译器版本、从  CCS 生成的.out 或 hex 文件编译时间信息?

 等等。 下面是 C2000ware 中的示例代码"adc_ex1_soc_software"、无需修改 C 代码是否可以获取  编译器版本、从 OUT 中编译时间信息或生成十六进制文件?  

C:\ti\c2000\c2000Ware_5_00_00\driverlib\f28003x\examples\adc

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    假设您使用较新的 EABI 进行构建。  您可以使用目标文件显示实用程序 ofd2000 获取链接器的版本。  例如...

    $ ofd2000 --obj_display=none,header file.out
    
    OBJECT FILE:  file.out
    
     Object File Information
    
        File Name:           file.out
        Format:              ELF Version 1
        File Type:           executable file
        Machine:             TI C2000
        Machine Endian:      little endian
        Entry Point:         0x00000a83
        Vendor:              Texas Instruments, Inc.
        Producer:            Linker
        Linker Version:      22.6.0
        Number of Sections:  23
        File Length:         56564
        ELF Class:           32-bit objects
        ELF e_flags:         0

    遗憾的是、未记录构建时间。  您有链接器映射文件吗?  它出现在前几行中。

    ******************************************************************************
                 TMS320C2000 Linker PC v22.6.0
    ******************************************************************************
    >> Linked Mon Aug 21 13:47:27 2023

    谢谢。此致、

    -乔治