![]() ![]() Following the first part is the code that initializes the various memory sections: this code is boilerplate, so it isn’t necessary to modify it. ![]() Any linker script can be passed to the linker, via G++/GCC (depending on the language used), through the command “-T scriptname.ld” (see the Makefile associated to this project for an example of a linker commandline including the linker script). Luckily, when we have to modify a linker script in order to compile correctly for a given microcontroller model we must consider only the initial part of it, because this is the crucial part which specifies the memory layout. These scripts are essential because they specify the beginning addresses of flash and RAM and also their sizes. Linker scripts are scripts given to the linker in order to specify the memory layout and to initialize the various memory sections used by the firmware when executed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |