I want to include a compiled bootloader code in to an application program.
This allows factory programming of both in one go as oppose to programming a bootloader and then bootloading the application program
I have been doing this for years with Atmega chips like this:
[code:1:4634eaf7f7]$Boot=$F800
$Inc BootLoader,NoSize,"My_BootLoader.bin" [/code:1:4634eaf7f7]
(My_BootLoader.bin file is a binary image of bootloader code only, compiled with Bascom AVR).
However, this doesn't work with Xmega 256A3U:
[code:1:4634eaf7f7]$Boot=$20000
$Inc BootLoader,NoSize,"My_BootLoader.bin"[/code:1:4634eaf7f7]
I have also tried:
[code:1:4634eaf7f7]$RomStart=$20000
$Inc BootLoader,NoSize,"My_BootLoader.bin"[/code:1:4634eaf7f7]
All I need the compiler to do is to place the code from My_BootLoader.bin file at location $20000
If anyone can help, it would be much appreciated.
[b:4634eaf7f7][color=red:4634eaf7f7](BASCOM-AVR version : 2.0.7.7 )[/b:4634eaf7f7][/color:4634eaf7f7]
↧