下载

Application Report
SPRAAK5B–March 2012
Using the TMS320C642x Bootloader
Daniel Allred....................................................................................................................................
ABSTRACT
This document describes the functionality of the C642x ROM bootloader software. Please note that the
ROM bootloader requires use of Application Image Script (AIS) as the primary data format for loading
code/data. AIS is a Texas Instruments, Inc. proprietary data format that is explained in detail in Section 3
of this document.
Project collateral and source code discussed in this application report can be downloaded from the
following URL: http://www-s.ti.com/sc/techlit/spraak5.zip .
Contents
1 Introduction .................................................................................................................. 3
2 Boot Mode Description ..................................................................................................... 3
3 Application Image Script .................................................................................................. 17
4 Booting Operating Systems ( Linux
®
/ DSP/BIOS™,etc.) ............................................................. 28
5 ROM Bootloader RAM Memory Requirements and Code/Data Placement ....................................... 29
6 ROM Bootloader Cache Considerations ............................................................................... 29
7 AIS Generation Tool, genAIS ............................................................................................ 29
8 Sample AIS Boot Images ................................................................................................. 31
9 Debugging Boot Failures ................................................................................................. 39
10 Determining On-Chip Bootloader Version .............................................................................. 39
11 Calculating CRC ........................................................................................................... 40
12 References ................................................................................................................. 40
Appendix A Calculating the CRC ............................................................................................. 41
List of Figures
1 Signal Connections for I2C EEPROM Boot Mode .................................................................... 10
2 SPI Transfer With CLKSTP = 11 and CLKXP = 0 .................................................................... 13
3 24x8 Bit SPI EEPROM Read Timing ................................................................................... 16
4 DM643x 24x8 Bit Address SPI Boot .................................................................................... 17
5 Basic Structure of Application Image Script............................................................................ 18
6 Structure of SET Command.............................................................................................. 19
7 Valid SET Command Data Types....................................................................................... 20
8 Structure of GET Command ............................................................................................. 21
9 Structure of Section Load Command................................................................................... 21
10 Structure of Section Fill Command...................................................................................... 22
11 Structure of Jump Command ............................................................................................ 22
12 Structure of Jump_Close Command.................................................................................... 23
13 Structure of Enable CRC/Disable CRC Commands .................................................................. 24
14 Structure of Request CRC Command .................................................................................. 25
15 Structure of Function Execute Command.............................................................................. 26
16 UART AIS Boot Image.................................................................................................... 37
List of Tables
1
SPRAAK5B–March 2012 Using the TMS320C642x Bootloader
Submit Documentation Feedback
Copyright © 2012, Texas Instruments Incorporated