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.

[参考译文] TMS320F28384D:将 malloc 重新定义为使用 pvPortMalloc

Guru**** 2482225 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1447101/tms320f28384d-redefine-malloc-to-use-pvportmalloc

器件型号:TMS320F28384D

工具与软件:

我想将 malloc 读取为包装器函数、以便 从 FreeRTOS 使用 pvPortMalloc 来进行 heap4实现。 是否可以使用 ti 代码生成工具实现此目的?  立即编写当我编写自己的包装程序时、我从链接器获得一个重新定义的错误:

错误:重新定义符号"malloc":首先在"./cm_boot/md_main.obj"中定义;
在中重新定义
"C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/lib/rtsv7M4_T_le_eab
i.lib "

我已经尝试在项目属性中使用"链接顺序"选项卡、但这没有帮助。

谢谢!

Pat Sullivan