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.

[参考译文] 编译器/TMS570LC4357:TMS570

Guru**** 2482105 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/710827/compiler-tms570lc4357-tms570

器件型号:TMS570LC4357

工具/软件:TI C/C++编译器

您好!

在 TMS570LC4357x 上、我尝试从 RAM 执行一个函数、但它会生成 预取指令。 IFSR 寄存器的值为0xD、表示存在权限错误。 DFAR 为0x08001500、我的代码应该在这里运行。

我在地址0x08001500处使用内存浏览器进行检查、该函数在那里。

我使用 __attribute__((ramfunc))将函数复制到 RAM 中,并在链接器中添加".TI.ramfunc:{}load=FLASH0、run=RAM、table (BINIT)"和".binit:{}>FLASH0"。

请提供有关如何解决此问题的任何想法?

谢谢