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.
__attribute__((section(".user1")))
FLASH_BANK0_SEC0 : origin = 0x080002, length = 0x00009D
使用下面的方法给段放入指定地址 .user1 : > 0x080002
警告Description Resource Path Location Type
#10456-D You must specify the page for the specific placement of ".user1" when not using unified memory model. 28002x_generic_flash_lnk.cmd /4812_3_0/cpu/cmd line 70 C/C++ Problem
如何将段分配给指定地址呢?为什么.sysmem : > 0x0000A000不会报错,好像是ram里的地址不会有错,仅试探得知,求大佬解答
.sysmem以及上面那些是编译器可以识别的段,你自己创建的编译器识别不了。你可以在c代码文件中利用DATA_SECTION或者CODE_SECTION指令来实现自定义段。