2013-09-27 07:24 AM
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!2013-09-27 07:46 AM
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.