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.
用sectioncopy把flash中的程序整个的copy到ram中,就连用官方给的Flash_to_RAM例程也会出现警告。 warning: load address of uninitialized section .const ignored
warning: load address of uninitialized section .switch ignored
警告可以忽略,此2个警告是因为要copy .const和.switch 这两个section,但没有定义或者没有此section。
因为程序中没有用到switch和const所以没有定义,才出现的警告,忽略即可。
这个定义存放的处理和其他几个初始化段是一样的,就这两个段出现了警告。而且这个警告也是匪夷所思啊,这两个段明明是初始化段,但是警告中却说是未初始化段。而且我也做了尝试了,即使用const来定义常数变量和用switch语句来写一段选择语句,这两个警告依然存在。