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.
Dear Sir
In "ARM Optimizing C / C ++ Compiler v20.2.0.LTS", I would like to allocate memory for each file in the linker command file.
Please tell me how to write it.
I want to place the .text of main.obj in S0RAM and the other .text in S0RAM | S1RAM, but this resulted in an error.
SECTIONS {
.resetisr:> S0RAM_RESETISR
.vtable:> S0RAM / * Application placed vector table * /
.text {main.obj}:> C0RAM
.text: >> S0RAM | S1RAM
:
:
}
Best regards
It is unusual to write a linker command file from scratch. Instead, obtain the Software Development Kit (SDK) for the device you use. That kit will contain many examples, and each example uses a linker command file. Start with one of those linker command files. To understand that file, and how you might modify it, please read the article Linker Command File Primer.
Thanks and regards,
-George