Atmel AT91 ARM Thumb Application Note
Atmel AT91 ARM Thumb Application Note

Atmel AT91 ARM Thumb Application Note

Host flash loader
Hide thumbs Also See for AT91 ARM Thumb:

Advertisement

Quick Links

AT91 Host Flash Loader
This application note describes the host Flash loader used to upload and program an
application in the Flash memory of a Flash-based AT91 microcontroller.
Flash-based AT91 devices are delivered by Atmel with resident boot software able to
upload program software into the Flash memory.
The following subjects are covered in this document:
Flash requirements
Host loader software
Host configuration file
Host loader software user notes
Package Contents
The file AT91Loader.zip contains all source and executable files for the computer. It
also contains AT91Loader8011.ini and AT91Loader16x4.ini files, configuration files for
the AT91Loader.exe file.
The file AT91Flash_uploader.zip contains all source, object and binary files for the
AT91 device. It enables the user to understand and modify (if necessary) the flash
uploader software. Note that fmu_flash.bin is the image of AT91 Flash production line
programming.
Definition of Terms
A Flash-based AT91 is a microcontroller containing an embedded AT91 ARM7TDMI
microcontroller with a 16-bit Flash memory.
A host Flash loader is a PC running software under Windows
USART is the universal synchronous/asynchronous receiver/transmitter, a serial com-
munication port compatible with the computer serial port.
Warranty
All delivered sources are free of charge and can be copied or modified without
authorization.
The software is delivered "AS IS" without warranty or condition of any kind, either
express, implied or statutory. This includes, without limitation, any warranty or condi-
tion with respect to merchantability or fitness for any particular purpose, or against the
infringements of intellectual property rights of others.
®
95/98.
®
AT91 ARM
®
Thumb
Microcontrollers
Application
Note
Rev. 2640A–ATARM–08/02
1

Advertisement

Table of Contents
loading

Summary of Contents for Atmel AT91 ARM Thumb

  • Page 1 Flash memory of a Flash-based AT91 microcontroller. ® Thumb Flash-based AT91 devices are delivered by Atmel with resident boot software able to upload program software into the Flash memory. Microcontrollers The following subjects are covered in this document: •...
  • Page 2: Host Loader Software

    Host Loader Software The host loader software runs under Windows. The executable file AT91Loader.exe has ® ® been generated with Microsoft Visual Studio 6.0. Its main functionalities are: • To read the configuration file (Loader.ini) • To synchronize with the AT91 boot loader software on a Flash-based AT91 micro- controller and adapt to the baud rate (defined in Loader.ini) •...
  • Page 3 AT91 Host Flash Loader • Target_CD = 18: Indicate the target user CD value for data speed connection. This value depends on the main target oscillator. The AT91 USART Speed Definition table on page 8 can be used to choose the best CD value to optimize communication quality.
  • Page 4 Example of Loader.ini The example file below is also valid for an AT91 with an embedded AT49BV16x4. The file is provided by Atmel. File for AT91F40416 [MODE] Manual=0 // automatic load, all commands are managed by HOST Loader [COM] Name=COM1 // COM1 serial port...
  • Page 5: Example Of Loader.ini File For At91Fr4081

    AT91 Host Flash Loader Example of Loader.ini The example file is also valid for an AT91 with an embedded AT49BV8011. This file is provided by Atmel. File for AT91FR4081 [MODE] Manual=0 // automatic load, all commands are managed by HOST Loader...
  • Page 6: Host Loader Software User Notes

    Host Loader Software The download procedure is as follows: User Notes 1. If an AT91 with an AT49BV8011 Flash memory is used, copy Loader8011.ini to Loader.ini. If an AT91 with an AT4916x4 Flash memory is used, copy Loader16x4.ini to Loader.ini. 2.
  • Page 7: Troubleshooting

    AT91 Host Flash Loader Troubleshooting In case of failure, the following points should be verified: • Hardware – AT91 and Flash supplies are correctly connected – NCS0 is connected to NCSF – NWAIT is pulled-up and not driven always to 0 –...
  • Page 8 AT91 USART Speed The baud rate parameter is selected depending on microprocessor frequency. It is entered as the value of target_CD in the loader.ini file. Definition The following table is used to select the most reliable baud rate according to the fre- quency of the AT91-based system.
  • Page 9 No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel’s products are not authorized for use as critical components in life support devices or systems.

Table of Contents