Re: Bootloader v4 (ds30 Loader)
Reply #70 –
looks like I made some huge mistakes in my code :S The problem was a bad testpattern (not suitable for testing bleh!). I now used a .hex of the 217 svn and i noticed the error and (I think) I corrected it.
Anyway I included it (the bootloader of svn217') in the firmware.h.. I Also included an .html file (sorry no perl on this windows box) which convert the bootloader to an array which can be used in firmware.h. Select the start and up to the last full 16 byte line.
first line to be selected:
:105000002F8C20004227A9004507A90042A7AE0027
last line to be selected:
:1057E000FFFFFF00FFFFFF00FFFFFF00FFFFFF00C5
The .html should automagicly add the last 4 word together with the fuses. The .html also handles the byte to 'program word' conversion. I didn't saw a way to use objdump to dump the relevant parts...
As far as I know this attached package should now behave as expected, but I couldn't test it in real (stil haven't got a pic programmer). I also changed the commented out section to be correct byte to 'programword' conversion.
So Ian, could you please please test it? :p please alter the fwlocation to 0xA800 and uncoment the section in main.c
If it works correctly I'll rewrite the flash.s to comply with the creative 0 license (hadn't the time for it tonight!)