AT91RM9200 & Flash

Discussion around AT91RM9200 and SAM9 Series Products.

Moderator: nferre

jn
Contact:
Posts: 4
Joined: Tue Jan 04, 2005 12:15 pm

AT91RM9200 & Flash

Wed Feb 09, 2005 6:23 pm

What is the best way to download and start an application from a flash connected to a AT91RM9200?
We are going to use a custom made board and no OS.
It it possible to download to flash using JTAG without using uboot and external RAM connected to the cpu?

/Johnny
Simon
Contact:
Location: Scotland
Posts: 52
Joined: Wed Apr 07, 2004 5:47 pm

Thu Feb 10, 2005 3:26 pm

Sure, no problem. I do it many times a day.

Remeber to tell your programmer the correct offset of the FLASH before remap.

Just make sure you get the JTAG debug pins right.

Simon.
edi
Contact:
Location: Germany
Posts: 126
Joined: Thu Mar 25, 2004 12:10 am

Thu Feb 10, 2005 10:55 pm

Hi jn,
as far as i know the AT91RM9200 supports also other methods then JTAG to load the flash for the first time. :)

The AT91RM9200 has a ROM inside which can handle a download via USB (DFU), serial X-Modem and seriell flashes. This enables you for instance to load a small application into the internal RAM, which can handle the download and the programming of the "real" bootloader or your application. But only for the first time. If code is inside the flashes it will start this one. So be sure that this code can be updated later. You can do this by loading your first programs to upper sections of the flash (which will not started after reset), and try out the download and write functions.
Take a look at the data sheet section "Boot Program".

The big advantage of JTAG is, that it will always work, regardless of the contents of any flash. But in the most cases it will be more expensive, because you need soft- and hardware for this.

Best regards,
Edi
divch
Contact:
Location: Russia
Posts: 12
Joined: Mon Feb 07, 2005 4:13 am

Fri Feb 18, 2005 2:50 am

edi wrote:This enables you for instance to load a small application into the internal RAM, which can handle the download and the programming of the "real" bootloader or your application
Example, such application - flash write via DBGU utility (parallel flash 29lv160d/320d, SPI flash AT45DB321/642):

binary image: http://www.ucrouter.ru/download/AT91RM9200-29lv160d.bin

source code: http://www.ucrouter.ru/download/AT91RM9200-29lv160d.tgz

Best Regards, Dmitriy
vinod
Location: india
Posts: 8
Joined: Sun Mar 27, 2005 8:42 am

Sun Mar 27, 2005 8:49 am

hi ji,

i also want to do work like you so would you can me you contact, that enable me to share your view.

thanks,

vinod
divch
Contact:
Location: Russia
Posts: 12
Joined: Mon Feb 07, 2005 4:13 am

AT91RM9200: MMC test utility with GNU dev tools support rele

Sun Mar 27, 2005 8:05 pm

binary image (downloadable to internal SRAM via DBGU interface):
http://www.ucrouter.ru/download/AT91RM9200-GnuMCI.bin

source code:
http://www.ucrouter.ru/download/AT91RM9200-GnuMCI.tgz

Best Regard,
Dmitriy.
ksupport
Posts: 6
Joined: Wed Oct 19, 2005 4:44 pm

Similar Question

Wed Jan 11, 2006 12:12 am

This is a similar question, I just didn't want to start another post.

I'm kinda vague on the whole JTAG thing as far as debugging (and only slightly grasp the whole boundry scan stuff :D )

So, JTAG can be used to download code to the ARM (I mean at91rm9200)? This is done with JTAG (not ICE) selected, and where does it go? Directly to SRAM or to an external device (like off chip Flash)? Scenario: if I have BMS set to low always (and never invoke the internal boot ROM), when/how will it know to do JTAG? It would seem like this would be a little more secure than allowing the possibility of opening up the USB and/or RS-232 port for free access to the uP.

Thanks for your thoughts.

Matthew
DaveH
Location: Hull, UK
Posts: 14
Joined: Thu Nov 03, 2005 7:12 pm

Wed Mar 01, 2006 2:34 pm

Has anyone actually used the USB port to upload code? Where would you get an application/driver for this?
JamesKosin
Contact:
Location: Newport News, VA
Posts: 45
Joined: Thu Mar 09, 2006 5:30 pm

Loading flash/ram via the USB

Thu Mar 09, 2006 5:36 pm

I'm also looking for a way to load the AT91RM9200 CPU via the USB port also. Everything I've found says it is possible; but, I can't find any drivers for Windows 2000 to support this from Atmel.

Thanks,
James

:shock:

Return to “SAM9 ARM9 MPU”

Who is online

Users browsing this forum: No registered users and 5 guests