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.
我按照nor boot.zip中的添加configuration word的asm code编译后,在B _c_init00这一行报了一个assembly warning:
[W9999] Placing data in a code section (.nor_config_word) is discouraged. The data may be interpreted as code. This section will not be compressed.
代码如下:
.global _c_int00
.sect ".nor_config_word"
config_word:
.word 00000F01h
B _c_int00
NOP
NOP
NOP
NOP
NOP
NOP
请问这个warning怎么处理,谢谢.
现在nor flash的板子还没出来,还没法运行,但是编译这个warning还是要修正,试了一下就是这两句一起会产生这个warning
.word 00000F01h
B _c_int00
warning :Placing data in a code section (.nor_config_word) is discouraged,就是.word 00000F01h是放入了一个data,B _c_init00是一句code,所以编译器报了不建议把数据放入代码段,但是nor boot又需要在最前面加入一个头,按照资料就是这样加,请帮忙看下如何解决,谢谢。
抱歉,我这边没有板子有nor flash可以运行。既然是给出的代码,我觉得这个warning问题不大。您可以等板子到了试一下,如果有问题可以到e2e上咨询一下产品线工程师。
https://e2e.ti.com/support/processors-group/processors/f/processors-forum