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: SAM3S4 - Firmware update with other MCU
PostPosted: Fri Jul 27, 2012 3:08 pm 
Offline

Joined: Fri Jul 27, 2012 2:50 pm
Posts: 4
Hi there.

I'm using the AT91SAM3S4AAMU and I have to update the firmware over UART Port. I just found the SAM-BA programming tool and use these script to programm (Enable Flash Access, Erase all, Boot from Flash) and the Send-File Command.
So I have to adopt this process to an other MCU and I can't find enough information (command, programming sequence and so on)

Thanks for your support


Top
 Profile  
 
 Post subject: Re: SAM3S4 - Firmware update with other MCU
PostPosted: Sun Jul 29, 2012 3:52 am 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
What other MCU?

ATMEL has described the SAM-BA protocol in a number of documents. I don't have my library at hand to provide a cite, but you could try googling.

http://www.varsanofiev.com/inside/at91_sam_ba.htm


Top
 Profile  
 
 Post subject: Re: SAM3S4 - Firmware update with other MCU
PostPosted: Tue Jul 31, 2012 7:49 am 
Offline

Joined: Fri Jul 27, 2012 2:50 pm
Posts: 4
The second MCU is a PIC which have to update the ATMEL SAM3S4 over the UART line. The SAM3S4 hasn't any external flash. So the main thing is that I don't know what the Sam-Ba updater tool all transmit and receive.
I just want to adopt the ordinary re-programming update process from Sam-Ba to Pic.

Even by connecting to the SAM3S4 it goes a lot of bytes in and out nowhere scripted what these bytes are for.

Further more I execute in SAM-BA these scripts:
1. Enable flash access (takes about 8 seconds time and lot of data goes from SAM-BA to SAM3)
2. Erase all flash (just a few bytes)
3. boot from flash (just a few bytes)

Now I can send the binary program file.

So I think there have to be a documentation how an ATMEL can be programmed with a terminal tool like Hyper Terminal. Does I understand the bootloader wrong and how other user can re-program their SAM3S without the SAM-BA tool? Does they all write their own bootloader which starts after the standard bootloader?


Top
 Profile  
 
 Post subject: Re: SAM3S4 - Firmware update with other MCU
PostPosted: Thu Aug 16, 2012 10:29 pm 
Offline

Joined: Tue Feb 05, 2008 11:46 am
Posts: 17
take a look at BOSSA source code and you will find what you need.

you could have use an AVR instead of PIC ;-)


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: No registered users and 1 guest


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: