Hi,
How to make map file for sketch ?
i try find it in build.......tmp but unsuccessfull.
Thanks
Hi,
How to make map file for sketch ?
i try find it in build.......tmp but unsuccessfull.
Thanks
sorry, don't know what you mean by "map file".
can you be more specific?
map file contain information about placement sections/variables/functions in binary file.
ah, you mean like a linker script?
the linker scripts for the Maple are here:
https://github.com/leaflabs/libmaple/tree/master/support/ld/maple
flash.ld is what's used for flash builds, and ram.ld is for ram.
using those is hard-coded into the IDE build system. however, if you're comfortable with the command line tools, you could always just customize the Makefile. the relevant variable is MEMORY_TARGET, and the relevant section is here:
https://github.com/leaflabs/libmaple/blob/master/Makefile#L52
your other, less near-term alternative is patching that part of the IDE source. if you decide to go that route, let me know; it can be a little bit of a pain to build the IDE.
sorry that this is fairly non-specific information; let me know if i can help you further.
edit: "near-term" -> "less near-term", oops
mbolivar - I think what x893 might be asking for is an "old fashioned" map file.
It contains all the symbols in a program, and the offsets of every symbol.
It was the 'fixup table' for a program loader.
GDB uses something similar. I think it used to be that symbols weren't stripped be default, for a/s/gdb's benefit, so much of the information was in the symbols table.
I am pretty sure it is easy to make something like that, but my google-brain isn't working at the moment (due to two bottles of Sheppy's Cider, very yum, hick! :-)
Very helpfull if custom options can be inserted via preferences.txt
hi,
If you use the 'unix toolchain' as documented in the leaf documentation, you can simply add the linker flag to generate a map file.
In the LDFLAGS section of the libmaple makefile, add '-Wl,-Map,build/maple.map' to generate a maple.map file in build/.
I know how it make under makefile. But i want to know how to make it under Maple. As i see some parameters defines in preference.txt file and may exists option to generate map file.
You must log in to post.