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.
工具与软件:
在使用"strlen"时、我会得到以下代码的不同结果。
char str[] = "Hello my dear world"; uint8_t len = strlen(str"); // HERE len VALUE IS 23 ???????? len = strlen("Hello my dear world"); //HERE len VALUE IS 32080 ???????
但是、当我使用 TMS320F2800157时、该函数效果很好(长度为19)并且没有问题。
是因为常量使用读保护存储器吗? 如果是、如何在 SysConfig 中进行更改?
好的。 我找到了根本原因。 将扇区32闪存位置指向 constant 的默认/"GENERIC_Flash_lnk"文件、这在 F2800133中是不可用的。 修正后的这个问题解决了我的问题。 请 IT 人员关注这一点。