Hi!
This might be in the wrong forum, but I'm posting it here because I'm all new to this. Please feal free to move it to the correct forum.
I'm currently doing a course for ARM CortexM0+. In this course I am supposed to edit the scatter/linker file.
-I right click my project, and click "options for target1". -then i click on the linker option, and click "edit", on the scatter file option (no link to file is in the dialog box). Nothing happens.
-I check the "Use memory layout from target dialog" box. A file location pops up in the dialog box (.\Objects\Exercise1.sct) -I uncheck the "Use memory layout from target dialog" box (in order to enable the edit button). -Click the edit button and get an error saying there is no such file in my project folder.
I've checked the folders for a .sct-file, but I can't find one (show hiddeln files in enabled).
To me it seems like uV is not creating a scatter file. But I really don't know.
What do I do?
thanks Andreas Lyth
With the checkbox "use memory layout from target dialog" checked, you tell the tools "please go ahead and create a scatter file if you need to, next time the user tries to build the project".
With the checkbox not checked, the tools wouldn't dare to create any scatter file, since that could overwrite a file that you have spent a long time manually writing.
So the checkbox isn't just about what the linker should use. It's also a question about ownership rights - who is responsible for creating and modifying the contents of the scatter file.
That makes perfect sense! =) Thanks for helping out. very educational.