I had a requirement that Bootloader to be placed int the last page of flash and from there divide the remaining flash into 2 parts and if burn the code for the first time then the code should be written at the first location and then if i burn the code 2nd time it should burn in the second location and reset should be changed to that address if 2nd program was not burn properly then it should point to the first location address as reset . That means i should be able to change the reset address how can i do this in pic . Is this possible or any other way if you suggest we can even try that how ever i need to have 2 programs one should be executing and for safe side
And if it works then if i burn the program odd number times it should write in the first location and reset should point to first location and if we burn even number of times it should write in 2nd section and reset should point to the 2nd location. and if program was not burn properly it should point to the previous reset location
And if it works then if i burn the program odd number times it should write in the first location and reset should point to first location and if we burn even number of times it should write in 2nd section and reset should point to the 2nd location. and if program was not burn properly it should point to the previous reset location
Attachments
-
33.4 KB Views: 32