Page 1 of 1

Flash Programming Solutions For the AT91FR40xx MCUs

Posted: Mon Nov 29, 2004 6:13 pm
by pfilippi
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.


brand new AT91FR4042's?

Posted: Fri Jan 07, 2005 7:53 pm
by eric

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.


Posted: Fri Jan 07, 2005 10:41 pm
by pfilippi
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.

Where is the presentation?

Posted: Thu Dec 15, 2005 7:25 pm
by gary
Where is the presentation?
Did it get deleted?

UPDATE: Thanks for restoring the attachment!


Posted: Fri Dec 16, 2005 8:41 pm
by pfilippi
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


Using EB40A as a flash programmer

Posted: Wed Jan 11, 2006 10:47 pm
by jonny5cents

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?



Posted: Thu Jan 12, 2006 12:26 pm
by pfilippi
That's in the App. Notes Section ... ily_id=605

The second one starting from the bottom of the page.



Posted: Thu Jan 12, 2006 5:16 pm
by jonny5cents

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?


Link Errors

Posted: Thu Jan 12, 2006 6:00 pm
by jonny5cents

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?


Re: Flash Programming Solutions For the AT91FR40xx MCUs

Posted: Mon Apr 17, 2006 9:03 am
by yalloooo
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!

FMU is one-time ...

Posted: Fri Feb 23, 2007 9:25 pm
by werty
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 .

Where can I find presentation

Posted: Fri May 18, 2007 3:27 am
by kevinshin

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

Kevin Shin

Posted: Tue Aug 14, 2007 10:56 am
by pfilippi
it has been put in the Document Section of the site.