> Just a quick untested idea: I wonder if instead of implementing your own > bootloader because P0.14 is physically inaccessible, you could force it > to enter the built in bootloader on the next reboot by corrupting the > vector table checksum word? Of course it will then be completely > unbootable until the flash is reprogrammed so you want to be careful > that you only do it when you're sure the user wants to reprogram the device. That'll be risky business indeed. Luckily, the built-in IAP flash programmer can program anywhere except the bootloader sector. I think if you corrupt reset table the mcu will be totally useless on reset...not even the bootloader will run. I'm attempting to implement something similar to your idea but instead of rewriting vector tables/chksum every time, use a modifiable patch table containing addresses to the various functions...as someone mentioned a few weeks ago. Flash Updating is a fun trick for new ppl like me to master but hey. Flash-write routines, and C/assembly code are the only tools I needed.
Message
Re: loading hex-es....(Tricky Situation)
2004-07-05 by Leighton Rowe
Attachments
- No local attachments were found for this message.