[quote:6642c971cd="toto"]Hello mmarlette,
No, it isn't your Xmegabootloader. I mean the Bootloader from Josef, date 2009.
Like i said, i use it to make firmware updates, but only with SD cards <= 2GB
[/quote:6642c971cd]
Whew... :) I would have to look at the revisions...but safe to say, since it doesn't work, that 2009 .lbx doesn't support SDHC.
With that said, the AVR-DOS_Bootloader.LBX should work in your boot loader. Make the changes to the AVR-DOS config files to use the AVR-DOS_Bootloader.LBX instead of the older AVR-DOS.lbx library. ****IF*** your bootloader DOES NOT try to perform any WRITE functions to the SD, it should work after it is compiled. Any references that try to write will produces errors when compiled. For instance, some bootloaders will try to RENAME the file after it has updated, this is a WRITE function. This bootloader will calculate the CRC and save to EE, so the next boot cycle, the values are compared(READ) only and if different, then will read the master.bin file and FLASH/update.
As it might seem impossible. This AVR-DOS_Bootloader.LBX was my first attempt as BASCOM libraries. Pretty simple, did the whole bootloader and custom .lbx is a few days. Most of the time was spent getting the correct calls into the new .lib to make the .lbx. I had to modify a few calls as they wanted write. For instance, if CLOSE is called and the data was modified, it will perform a WRITE. Since I knew we were reading, this would NEVER happen in the bootloader and modified the assembly language library to not reference the write routine and branch properly on this condition, etc.
[quote:6642c971cd="toto"]
Xmega i not use yet. My next project is for Xmega128A1. Perhaps i can use your
boootloader to update the firmware trough the 4GB SD card.
Can you modify your xmega bootloader for Atmega2560? I can than test it.
I have not enough knowledge to change you code
Thanks in advance
toto[/quote:6642c971cd]
Sure I could but I don't currently have the time to do it gratis. Way behind on my products that I am bringing to market.
Any case, enjoy. This was a great learning experience for me and reinforces what a GREAT tool BASCOM has become. All of my questions were answered by the information in these forums. Just have to dig and think. :)
Regards,
Mark
↧