Flash Programming Solutions For the AT91FR40xx MCUs

Discussion about SAM7 Series and ARM7TDMI based products.

Moderator: nferre

User avatar
Posts: 320
Joined: Fri Feb 13, 2004 7:53 pm

Flash Programming Solutions For the AT91FR40xx MCUs

Mon Nov 29, 2004 6:13 pm

Dear AT91 Users,

Here is a Presentation about Flash Programming Solutions for AT91FR40xx Series. It shows different ways to Flash your Application during the Debug phase and during Production of your system. This applicable for Stacked Die AT91 Flash MCUs i.e. the AT91FR4042 and the AT91FR40162. Not for the New AT91SAM7xx Family.

This is off course applicable to other Mature products like the AT91FR40161.
As well as Flash Less AT91 MCU, like the AT91R40008, with a standalone ATMEL's Flash Memory connected to the External Bus Interface (EBI) of the AT91.

Last edited by pfilippi on Fri Jun 09, 2006 8:46 pm, edited 4 times in total.
Posts: 3
Joined: Fri Jan 07, 2005 7:47 pm

brand new AT91FR4042's?

Fri Jan 07, 2005 7:53 pm


We want to be able to load our application software into the internal flash memory on the AT91FR4042 that we are planning on using.

Am I correct in assuming that if we connect up an RS232 tranceiver to the UART port, the necessary companion code required by the Atmel Uploader software is already programmed into the AT91FR4042's that we receive directly from Atmel?

Or, do we have to load some code via JTAG port first before we can load into the flash memory?

Our design does not have any external SRAM or FLASH memory, we are planning on everything fitting onboard.

User avatar
Posts: 320
Joined: Fri Feb 13, 2004 7:53 pm

Fri Jan 07, 2005 10:41 pm

Hello Eric,

You are correct,

the FLash Memory Uploader (FMU) Application is delivered in flash memory from the factory.

The only thing you have to take care about is that the FMU is one-time usable.
Once you have downloaded your application the FMU is overwritten.
This means that you have to implement a loader into your application for adding ISP/IAP capabilities to your system.

Hope this helps.
Posts: 13
Joined: Tue May 17, 2005 5:59 pm

Where is the presentation?

Thu Dec 15, 2005 7:25 pm

Where is the presentation?
Did it get deleted?

UPDATE: Thanks for restoring the attachment!

Last edited by gary on Fri Dec 16, 2005 11:03 pm, edited 1 time in total.
User avatar
Posts: 320
Joined: Fri Feb 13, 2004 7:53 pm

Fri Dec 16, 2005 8:41 pm

Hi Gary,

I put the the document in attach !

I do not know why , but I've seen this on several other posts on this forum :shock:

If someone is aware of such a problem, please share

Posts: 8
Joined: Wed May 25, 2005 6:51 pm

Using EB40A as a flash programmer

Wed Jan 11, 2006 10:47 pm


I would like to use an EB40a as a flash loader to load software to my target over the JTAG port. I have looked at the enclosed document, and the pdf document that is referenced (doc2668.pdf). At the end of doc2668.pdf, it says that application software can be found at the atmel web site. Can someone point me to exactly where this software is?


User avatar
Posts: 320
Joined: Fri Feb 13, 2004 7:53 pm

Thu Jan 12, 2006 12:26 pm

That's in the App. Notes Section
http://www.atmel.com/dyn/products/app_n ... ily_id=605

The second one starting from the bottom of the page.

Posts: 8
Joined: Wed May 25, 2005 6:51 pm


Thu Jan 12, 2006 5:16 pm


I loaded the flash_updloader.bin file to my EB40a. I connected one of the serial ports to my PC. I connected the JTAG port of my EB40a to my target. I am able to talk to my target with my ARM Multi-ICE. However, when I try to use the flash_uploader.bin tool, I keep getting the message "Target Not Recognized!". Any ideas here? Do I need some sort of NULL modem cable between the EB40a and the target?

Posts: 8
Joined: Wed May 25, 2005 6:51 pm

Link Errors

Thu Jan 12, 2006 6:00 pm


In order to try to debug this, I tried to compile the Flash_uploader tool. I noticed that the software required the at91 root library, so I copied into the right place. However, I got some link errors. See attached image. Any ideas? Is there some code missing?

Posts: 1
Joined: Mon Apr 17, 2006 8:53 am

Re: Flash Programming Solutions For the AT91FR40xx MCUs

Mon Apr 17, 2006 9:03 am

please tell me the flash programming solution for at91fr40162 mcu
now i have the followng tools:
multi-ice & AXD
i have tried the flash downloader tools of the AXD, but it sounds like that the BIN file can not be downloaded to the flash !!

please help me, thanks!
Posts: 2
Joined: Fri Feb 23, 2007 8:11 am

FMU is one-time ...

Fri Feb 23, 2007 9:25 pm

One-time maybe a problem for H/W makers .

Is it possible target Sam-Ba ( Loader) is
in hidden ROM , and moved to top of user
flash ?

ATMEL is devious , highly political ,
dont want us to understand the h/w .

Lost cause , we will buy ST,LPC,Samsung if
we can't understand ATMEL h/w ....
I have bags of ARM7's , EVB's from many .
Olimex and Embest ( is on my disapproved vendors list )

I will experiment on this "one-time" Flash FMU .

But I guess it is NOT one time .
I see the ATMEL ad's , and they imply
"Sam-Ba boot" is hidden and must be
moved into top of Flash , from
a hidden , very safe place NOT in user Mem .

Its just a guess ..

Top of Flash is the popular "loader"
place for all ARM 7 . Some have sep' Flash
blocks : 128kb 32kb .

Olimex Sam-Ba on "SAM7S256/USB" needs to jumper
and flash for 10 seconds .

Now Target Sam-Ba is avail'
It could be Host PC is sending
a copy of Sam-Ba to my target ,
but the way they word it ,
makes me suspicious . i'll do mo
experimenting .

If anyone has mo info , quick , get it to us .
it will help me to start writting my own
loader in top of Flash . I dont waste time
on C/C++ , IDE's nor Linux .
Location: Korea
Posts: 2
Joined: Wed Mar 02, 2005 9:18 am

Where can I find presentation

Fri May 18, 2007 3:27 am


I also can not find attached presentation.
Where can I find it.

Kevin Shin
User avatar
Posts: 320
Joined: Fri Feb 13, 2004 7:53 pm

Tue Aug 14, 2007 10:56 am

it has been put in the Document Section of the site.

Return to “SAM7 ARM7TDMI MCU”

Who is online

Users browsing this forum: No registered users and 3 guests