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.

[参考译文] TMS320F28069:如何在 CMD 文件中完全定义 rts2800_fpu32.lib 和 IQmath_fpu32.lib 的位置

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1026503/tms320f28069-how-to-completely-define-the-location-of-rts2800_fpu32-lib-and-iqmath_fpu32-lib-in-the-cmd-file

器件型号:TMS320F28069

尊敬的团队:

我的一位客户想知道如何在 CMD 文件中完全定义 rts2800_fpu32.lib 和 IQmath_fpu32.lib 的位置。

他尝试了以下方法来定义、 但此定义只能包含其中的一部分、用这种方法编写非常麻烦。

Fullscreen
1
2
3
4
5
6
7
8
9
.cal : > LIB_FLASH PAGE = 0
{
-lrts2800_fpu32.lib <log10.obj fd_mpy.obj u_div.obj
l_div.obj fs_tol.obj fs_toul.obj fd_tol.obj fs_tofd.obj fs_tou.obj
boot.obj exit.obj _lock.obj> (.text)
-lrts2800_fpu32.lib <exit.obj _lock.obj> (.cinit)
rts2800_fpu32.lib <args_main.obj l_tofs.obj i_tofs.obj fs_cmp.obj> (.text)
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

您能否提供更可行的方法?

此致

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

    您好!

    如果要将库中的特定 API 和目标文件分配给特定段、则没有其他方法。 如果可以分配整个 rts2800_fpu32.lib .text 段、则可以执行以下操作:

    .cal:{ -lrts2800_fpu32.lib (.text)}>  LIB_FLASH 页= 0

    -Shantanu