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  [ 4 posts ] 
Author Message
 Post subject: How Can I Download the uC Flash Contents?
PostPosted: Mon May 17, 2010 11:54 pm 
Offline

Joined: Fri Jul 31, 2009 10:28 pm
Posts: 6
I have an AT91SAM7 part that may have corrupted firmware loaded on it. How can I read out the flash with a Keil ULINK so that I can do a comparison? It seems like it should be really simple, I just can't find the right button to press.

uC: AT91SAM7S512
Tool: Keil ULINK
IDE: Keil uVision3 V3.85


Top
 Profile  
 
 Post subject: Re: How Can I Download the uC Flash Contents?
PostPosted: Wed May 19, 2010 12:57 pm 
Offline

Joined: Tue Feb 17, 2009 8:24 am
Posts: 11
Indeed, you can just modify the software package MDK version, the link is http://www.atmel.com/dyn/resources/prod ... m7s-ek.zip. After compiling ok, on Keil MDK caption, Flash-->Download, please note that select Ulink version as you are using the Ulink tool. And also you will see SAM-ICE version.


Top
 Profile  
 
 Post subject: Re: How Can I Download the uC Flash Contents?
PostPosted: Fri May 21, 2010 3:05 pm 
Offline

Joined: Fri Jul 31, 2009 10:28 pm
Posts: 6
Thanks for the reply. I downloaded the zip file you linked to but I don't think it is what I need. I have a uC that has an application and a bootloader on it. The customer is reporting that the application is acting erratically and they can fix the issue by bootloading in the application again. I need to read the contents of the uC out of it so that I can determine if the application has been corrupted. I seriously doubt that it is corrupt because the bootloader performs a checksum on the application before running the application. However, before I can proceed with testing the device, I must rule out flash corruption since the customer reports that bootloading in new code fixes the problem.

It looks like the link you gave me was for a bunch of example projects while I need a way to read out the current contents without disturbing them.


Top
 Profile  
 
 Post subject: Re: How Can I Download the uC Flash Contents?
PostPosted: Mon May 24, 2010 6:42 pm 
Offline

Joined: Fri Jul 31, 2009 10:28 pm
Posts: 6
Here is how to do it:

1. Flash ->Configure Flash Tools ->Utilities ->Uncheck “Update Target Before Debugging”
2. Flash ->Configure Flash Tools ->Debug ->Settings ->Uncheck “Cache Code” and uncheck “Cache Memory”
3. Debug ->Start/Stop Debug Session
4. Issue debug command “Save <filename> <start address>,<end address>”
5. Wait an eternity for the code to be read out


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 2 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:  
cron