Bootloaders Revisited

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am trying to develop an application that contains a bootloader as part of itself. Not such a big deal, all it means is that I want to have a certain few functions live up in the bootloader space. I looked through the GCC 'ld' doc, and figured out how to declare a new section that lived in the bootloader area. I also figured out how to put my required functions in that section. If I look at the '.lss' file created from the elf file, my functions are in the correct location. If I look in the hex file created from the elf file, the bootloader code section is present and accounted for at the correct address. The strange part is that when I load the project into AVR studio 4.11 b410 SP3, everything loads into the processor flash _except_ my bootload code way up high. Is there something I am missing?

Thanks in advance,

-- Robin

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I had the same problem. When you load the .elf file the code in the boot section isn't loaded. Not sure why.

The work around I've been using is to load the .hex file, then the .elf file. It works, however I've found that using break points in the boot code dumps whatever is in the temporary page buffer.