Implemented the bootloader finally on xm256a3, not sure why I took so long. Using a FTDI FT232RL part, usb cable etc.
I did not have a "user" reset switch, so was left with a momentary shorting of pins 5-6 (~Reset/PDI-Clock to ground) on the ISP block to test it out.
Thought, so can I use one of the "user" encoder switches to vector to the start of the boot sector.
This was simple, check for switch press then vector to the start of the boot sector.
Make a menu, set a state then set a trap in the do loop.
[code:1:4260a9230b]If Op_state = 2 And Sw_enc4 = 0 Then
Rampz = 0 'not sure if I need this?
'Goto _reset 'start at address 0, as was done originally
Goto &H20000 'start at boot sector start addr to run bootloader code
End If
[/code:1:4260a9230b]
Say i sold a product with this bootloader installed to a customer. I have not written my own bootloader app for the PC, so what options do I have to allow the customer to update the software in the product?
1) Use the demo version of the MCS IDE, supply the .bin file, can user can use "F4" bootloader reset.
2) I think I read Mark say that he sells the bootloader app for a PC. Went looking on this site and could not find it?
3) Figure out how to write my own bootloader app for the PC, same as what Evert D. has done.
Thx
[b:4260a9230b][color=red:4260a9230b](BASCOM-AVR version : 2.0.7.6 )[/b:4260a9230b][/color:4260a9230b]
↧