cancel
Showing results for 
Search instead for 
Did you mean: 

Tutorials about memory map, linker regions, sections, areas, etc

maiorfi
Associate II
Posted on September 27, 2013 at 16:24

Hi.

Does anybody know where I can find tutorial material about linker scatter-file configuration (meaning, not syntax) needed to match a firmware memory organization with microcontroller memory map?

Thanks!
1 REPLY 1
Posted on September 27, 2013 at 16:46

Keil? I reviewed the manuals, and the C:\Keil\ARM tree has numerous .SCT examples.

Linkers/Loaders have got several decades of books on the topic. Google/Bing no doubt have other perspectives.

Linker Scripts and Scatter Files are a bit specialized, and require some fundamental understanding of how object files and library files are created by code generators (compilers/assemblers). The streams of code/text, data, and statics, etc.

The Scatter files allow you describe regions of memory usable by the linker, and allow you direct content from segments, objects, or functions into different areas. They are a fitting tool, but most linkers are pretty limited in there flexibility, while others can apply multiple passes and optimize placement, or strip dead code.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..