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.

[参考译文] LAUNCHXL-F2800157:移植代码后的闪存置位

Guru**** 2553260 points
Other Parts Discussed in Thread: TMS320F2800157

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1295505/launchxl-f2800157-flash-assertion-after-porting-code

器件型号:LAUNCHXL-F2800157
主题中讨论的其他器件:TMS320F2800157

您好!

我将一些代码从 STM32工程(其中不包含任何 STM32特定代码)移植到用于  TMS320F2800157 MCU 的 C2000。 我修复了所有错误并运行代码后、但   断言(Flash_isECCBaseValid (eccBase))失败;请在我移植的代码运行之前检查哪个运行。 有什么原因吗? 此断言是否应该通过编译器不会捕获的移植代码发出其他错误信号? 如果我注释掉我 在 main 中移植的代码的初始化、则该断言通过。  

谢谢。

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

    没关系、我只是不想在函数范围中声明我的结构。 切换到文件范围修复了此问题。 不知道问题到底是什么、但我不会被阻止。