ahgu wrote:
I want to be able to upgrade the firmware from the window GUI through the USB.
I have a program running on the flash in At91SAM7S64, it has the USB and I can send the new program over the USB. Since I don't have enough RAM, I can store the new program on the flash.
Here is my question:
1. Can I overwrite the existing program on the flash while it is running?
2. If not, how can I store 2nd copy of the program in the 2nd half of the flash and run it? I do have to change the INT vectors and jump to my new program, but INT vectors are in the first sector.
3. Maybe I can store the new program in the 2nd half of the flash, and run a ram_function to move the data to the first half the flash?
Anyone has any ideas?
take a look ath the following application notes:
http://www.atmel.com/dyn/resources/prod ... oc6282.pdfhttp://www.atmel.com/dyn/resources/prod ... oc6253.pdfregards
gerhard