I am putting together a bootloader and am having trouble offsetting the address of my .hex file to start at the bootloader section. I have seen a lot of related posts but am still having trouble. I am using Kontrollerlab.
I am aware of the definition...
#define BOOTLOADER_SECTION __attribute__ ((section (".bootloader")))
Do I then put the line BOOTLOADER_SECTION at the start of all function declerations? Or just main?
Anyway, for this to work, I understand that the ".bootloader" section needs to be defined.
I have been enjoying the use of Kontrollerlab with Ubuntu, but I cannot find the make file and how configure it.
There is a range of linker options that allows one to set the start of the text, bss, data and heap sections, but I have no idea how to define a new bootloader section.
Does anyone have any ideas how I can configure Kontrollerlab?
Is there a method of moving the bootloader to the bootloader section without touching the make file?
Can AVRDUDE be used to add an address offset to the input address data?
Any help is much appreciated,