| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
This application note describes host Flash loader used upload program
Top Searches for this datasheetAT91 Host Flash Loader This application note describes host Flash loader used upload program application Flash memory Flash-based AT91 microcontroller. Flash-based AT91 devices delivered Atmel with resident boot software able upload program software into Flash memory. following subjects covered this document: Flash requirements Host loader software Host configuration file Host loader software user notes AT91 ARM® Thumb® Microcontrollers Application Note Package Contents file AT91Loader.zip contains source executable files computer. also contains AT91Loader8011.ini AT91Loader16x4.ini files, configuration files AT91Loader.exe file. file AT91Flash_uploader.zip contains source, object binary files AT91 device. enables user understand modify necessary) flash uploader software. Note that fmu_flash.bin image AT91 Flash production line programming. Definition Terms Flash-based AT91 microcontroller containing embedded AT91 ARM7TDMImicrocontroller with 16-bit Flash memory. host Flash loader running software under Windows® 95/98. USART universal synchronous/asynchronous receiver/transmitter, serial communication port compatible with computer serial port. Warranty delivered sources free charge copied modified without authorization. software delivered without warranty condition kind, either express, implied statutory. This includes, without limitation, warranty condition with respect merchantability fitness particular purpose, against infringements intellectual property rights others. Rev. 2640A-ATARM-08/02 Host Loader Software host loader software runs under Windows. executable file AT91Loader.exe been generated with Microsoft® Visual Studio® 6.0. main functionalities are: read configuration file (Loader.ini) synchronize with AT91 boot loader software Flash-based AT91 microcontroller adapt baud rate (defined Loader.ini) read analyze binary file encode commands transfer data Configuration File host flash loader supports different flash configurations described configuration file. This file also describes additional initialization parameters transfer configuration. These parameters defined four groups: MODE: COM: FILE: Work mode serial port definition Name binary file download FLASH: Target Flash description MODE This field used debug protocol. general, modes set, automatic mode manual mode. Manual Automatic mode. commands sequences managed Host Flash loader. Manual Manual mode. commands sent menu "Send". This mode used only debugging serial communication channel. this field set, following commands accessible: Autosync: Autosynchronisation Synchro: Send synchro command Speed: Send speed command Erase sector: Select sector erase send erase sector command Write: Select address send write command Data: Send block data words Read Data: Select address read block data words Verify: Select addresses (start end) checksum send verify command Upload: implemented ACK: Send command Fill input buffer: Purge communication port This field used define serial communication channel. divided into four fields: Name COM1: Indicate port connected target Synchronization 1200: Indicate initial connection speed. this case speed choice used. first action target waiting character (0x80) baud rate measurement initiate communication. Transfer_baud 115200: Indicate data transfer connection speed. general, cannot support baud rate higher than 115200. user supports higher speed, baud rate updated. AT91 Host Flash Loader 2640A-ATARM-08/02 AT91 Host Flash Loader Target_CD Indicate target user value data speed connection. This value depends main target oscillator. AT91 USART Speed Definition table page used choose best value optimize communication quality. This value sent target after synchronization when communication starts high speed data transfer rate. FILE FLASH Name binary file download. This name must absolute path. Target flash description. This field used define embedded Flash. subdivided into fields: Name AT49BV8011. Indicate Flash name. used only provide information corresponding file definition. This field analysed. Type 0x004A. Indicate type embedded Flash. This information available corresponding Flash datasheet device code field. Manufacturer 0x001F. Indicate type embedded Flash. This information available corresponding Flash datasheet manufacturer code field. base_address 0x01000000. Indicate first Flash sector. This value also defined target setting. Load_address =0x01000000. Indicate first address loaded. Generally same base address. Sector Indicate sector number embedded Flash. This information defined features presented Flash datasheet Sector_TypeX Size_TypeX These groups fields describe Flash sector mapping. example, 16-megabit words/2 bytes Flash used, e.g. AT49BV1604, there forty sectors shown following table: Sector bytes 2048 Sector_TypeX Size_TypeX Sector SA10 SA39 Total (AT49BV1604) sector type there sectors bytes (Sector_Type0 Size_Type0 sector type there sectors bytes (Sector_Type1 Size_Type1 =32) sector type there sectors bytes (Sector_Type2 Size_Type2 =64) This information available corresponding Flash datasheet Sector Address Table field. page page there examples LOADER.INI file, first embedded Flash AT49BV1604, second AT49BV8011. 2640A-ATARM-08/02 Example Loader.ini File AT91F40416 example file below also valid AT91 with embedded AT49BV16x4. file provided Atmel. [MODE] Manual=0 automatic load, commands managed HOST Loader [COM] Name=COM1 COM1 serial port Synchronization_baud=1200 Synchronization baud rate Transfer_baud=115200 Transfer baud rate Target_CD=18 AT91 value baud rate 115200 Main Clock 32.678MhZ Main Clock 25Mhz [FILE] name binary file download [FLASH] Name=AT49BV1604 flash type AT49BV1604 Type=0x00C0 Manufacturer=0x001F// ATMEL manufacturer base_address=0x01000000 base address flash Load_address=0x01000000 download address binary file Sector=40 number sector flash Sect_type0=8 number first sectors Size_type0=8 Size first sectors byte Sect_type1=2 number next sectors Size_type1=32 Size sectors byte Sect_type2=30 number next sectors SA10 SA39 Size_type2=64 Size sectors byte [END_OF_FILE] AT91 Host Flash Loader 2640A-ATARM-08/02 AT91 Host Flash Loader Example Loader.ini File AT91FR4081 example file also valid AT91 with embedded AT49BV8011. This file provided Atmel. [MODE] Manual=0 automatic load, commands managed HOST Loader [COM] Name=COM1 COM1 serial port Synchronization_baud=1200 Synchronization baud rate Transfer_baud=115200 Transfer baud rate Target_CD=18 AT91 value baud rate 115200 Main Clock 32.678MhZ Main Clock 25Mhz [FILE] name binary file download [FLASH] Name=AT49BV8011 flash type AT49BV8011 Type=0x004A Manufacturer=0x001F base_address=0x01000000 base address flash Load_address=0x01000000 download address binary file Sector=22 number sector flash Sect_type0=1 number first sectors Size_type0=16 Size first sectors byte Sect_type1=1 number next sectors Size_type1=32 Size sectors byte Sect_type2=4 number next sectors Size_type2=8 Size sectors byte Sect_type3=1 number next sectors Size_type3=32 Size sectors byte Sect_type4=1 number next sectors Size_type4=16 Size sectors byte Sect_type5=14 number next sectors SA21 Size_type5=64 Size sectors byte [END_OF_FILE] 2640A-ATARM-08/02 Host Loader Software User Notes download procedure follows: AT91 with AT49BV8011 Flash memory used, copy Loader8011.ini Loader.ini. AT91 with AT4916x4 Flash memory used, copy Loader16x4.ini Loader.ini. Modify [FILE] field. name binary file follows: [FILE] project\your binary file name" Connect AT91-based system through serial cable computer's COM1. Power-up reset system launch Flash_uploader. Launch AT91Loader.exe your computer. window below should appear: When computer's serial COM1 synchronized with USART AT91, Flash programming begins. download successful, following window appears: download unsuccessful, following window appears: AT91 Host Flash Loader 2640A-ATARM-08/02 AT91 Host Flash Loader Troubleshooting case failure, following points should verified: Hardware AT91 Flash supplies correctly connected NCS0 connected NCSF NWAIT pulled-up driven always NRST connected reliable reset circuitry NRSTF connected reliable reset circuitry suggest connect directly NRST) connected NTRI pulled-up Loader.ini contains correct memory mapping Serial port selected connected serial cable (COM1 COM2) File name path correct Target_CD corresponds chosen based table "AT91 USART Speed Definition" page Transfer_baud corresponds Target_CD File downloaded pure binary image file (file extension .mem/ .rom/ .bin) computer's serial port already being used Software 2640A-ATARM-08/02 AT91 USART Speed Definition baud rate parameter selected depending microprocessor frequency. entered value target_CD loader.ini file. following table used select most reliable baud rate according frequency AT91-based system. Note that asynchronous mode, maximum error must greater than USART Baud Rate MCKI/CD MCKI (MHz) Baud (Bits/s) Standard (Bits/s) Real 2.00 2.67 2.71 3.26 3.33 4.00 4.34 5.83 6.51 6.67 7.77 8.00 8.14 10.00 13.02 13.33 13.56 17.36 17.78 21.70 Choice Real (Bits/s) 200.00 400.00 166.67 000.00 000.00 200.00 000.00 860.78 142.86 714.29 860.78 200.00 187.50 200.00 384.62 153.85 607.14 647.06 777.78 636.36 Error 0.00% 12.50% 10.59% 7.84% 10.00% 0.00% 7.84% 2.99% 7.52% 5.00% 2.99% 0.00% 1.70% 0.00% 0.16% 2.50% 3.22% 2.08% 1.25% 1.38% AT91 Host Flash Loader 2640A-ATARM-08/02 Atmel Headquarters Corporate Headquarters 2325 Orchard Parkway Jose, 95131 1(408) 441-0311 1(408) 487-2600 Atmel Operations Memory 2325 Orchard Parkway Jose, 95131 1(408) 441-0311 1(408) 436-4314 RF/Automotive Theresienstrasse Postfach 3535 74025 Heilbronn, Germany (49) 71-31-67-0 (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, 80906 1(719) 576-3300 1(719) 540-1759 Europe Atmel Sarl Route Arsenaux Case Postale CH-1705 Fribourg Switzerland (41) 26-426-5555 (41) 26-426-5500 Microcontrollers 2325 Orchard Parkway Jose, 95131 1(408) 441-0311 1(408) 436-4314 Chantrerie 70602 44306 Nantes Cedex France (33) 2-40-18-18-18 (33) 2-40-18-19-60 Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom Avenue Rochepleine 38521 Saint-Egreve Cedex, France (33) 4-76-58-30-00 (33) 4-76-58-34-80 Asia Room 1219 Chinachem Golden Plaza Mody Road Tsimhatsui East Kowloon Hong Kong (852) 2721-9778 (852) 2722-1369 ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France (33) 4-42-53-60-00 (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, 80906 1(719) 576-3300 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride 0QR, Scotland (44) 1355-803-000 (44) 1355-242-743 Japan Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan (81) 3-3523-3551 (81) 3-3523-7581 literature@atmel.com Site http://www.atmel.com Atmel Corporation 2002. Atmel Corporation makes warranty products, other than those expressly contained Company's standard warranty which detailed Atmel's Terms Conditions located Company's site. Company assumes responsibility errors which appear this document, reserves right change devices specifications detailed herein time without notice, does make commitment update information contained herein. licenses patents other intellectual property Atmel granted Company connection with sale Atmel products, expressly implication. Atmel's products authorized critical components life support devices systems. ATMEL trademark Atmel. Windows Microsoft Visual Studio registered trademarks Microsoft Corporation. Powered registered trademark Ltd.; ARM7TDMIis trademark Ltd. Other terms product names trademarks others. Printed recycled paper. 2640A-ATARM-08/02 Other recent searchesSN74AHC540 - SN74AHC540 SN74AHC540 Datasheet SN54AHC540 - SN54AHC540 SN54AHC540 Datasheet PDJ-V09-0 - PDJ-V09-0 PDJ-V09-0 Datasheet MRF9135L - MRF9135L MRF9135L Datasheet DS3112 - DS3112 DS3112 Datasheet CPM-B53 - CPM-B53 CPM-B53 Datasheet AN002 - AN002 AN002 Datasheet
Privacy Policy | Disclaimer |