Hi. I have a single variable which I would like to share between bootloader and application. Since it's only one variable, the simplest thing to do is to find its address and hardcode address in application. I realise this is bad practice, however:
1) I am 100% certain that I won't change bootloader any further code since the logic works as it should
2) Since bootloader in question is (modified) LUFA Mass Storage bootloader running on 32u4, which makes heavy use of AUX sections and some other workarounds to make it fit, I don't want to mess with linker scripts and my own sections.
I've placed variable in .noinit section, and I can see it in map file:
What I don't understand is - how do I access/modify it in application?