Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: upgrade through USB during runtime.
PostPosted: Mon Mar 08, 2010 11:48 pm 
Offline

Joined: Tue Jun 14, 2005 7:49 am
Posts: 31
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?


Top
 Profile  
 
 Post subject: Re: upgrade through USB during runtime.
PostPosted: Tue Mar 09, 2010 5:10 pm 
Offline

Joined: Thu Dec 02, 2004 2:28 pm
Posts: 436
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.pdf
http://www.atmel.com/dyn/resources/prod ... oc6253.pdf

regards
gerhard


Top
 Profile  
 
 Post subject: Re: upgrade through USB during runtime.
PostPosted: Wed Mar 10, 2010 7:49 am 
Offline

Joined: Tue Jun 14, 2005 7:49 am
Posts: 31
If the application vector is at RAM 0 after remap, and application is still in flash, how can the app vector jump to the flash? It will only jump within the mirrored ram, right?

How can it jump to the application that is somewhere in 0x00100000-0x00200000?

Refer to Figure 3-5 in doc6282.pdf


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: