9 » IC Electronic information » Category: T

IC Electronic information

TMS320VC5509 On-line Flash programming and method of the bootstrap starts

In Electronic Infomation Category: T | on April 20,2011

Abstract: To solve the TMS320VC55X Series DSP system preservation program code is designed using a JTAG interface, the online program the Flash and TDA7053AT datasheet and implement the bootstrap method of start. The online method of using parallel programming external memory load (EMIF) interface connected TMS320VC5509 and TDA7053AT price and Flash chips, by moving the program section of the application has been initialized by C55X Series DSP boot table format written into the external expansion of the Flash fired memory, in order to achieve a bootstrap start. The method for the DSP system software maintenance and TDA7053AT suppliers and upgrades to bring the convenience and has practical value.

Digital signal processing technology with the rapid development, DSP is widely used in various digital signal processing system. The final development of the system from the emulator to run the program code must be stored in nonvolatile memory. Flash is an electrically erasable and available online after power off without loss of information storage, it has low power consumption, capacity, rewritable speed and so on. How to burn a program written into the Flash, and when the power is loaded into the DSP internal RAM, a Flash application in the DSP system, the two basic problems. Based on TIs and AMDs AM29LV800 TMS320VC5509A development system, detailed on-line Flash programming and implement the bootstrap method of activation.

1 Hardware Design Figure 1 TMS320VC5509A

connection with the AM29LV800 diagram, Flash extensions in the CE1 space, the starting address is 200000. As TMS320VC5509A only 14 address lines A0 ~ A13, and because Flash as data storage space used by the address code word addressing, the A0 signal DSP-invalid, so AM29LV800 chip 13-bit address lines low A0 ~ A12 connection TMS320VC5509A The address lines A1 ~ A13, high 6 address lines A13 ~ A18 from the serial port to expand the buffer.

Figure 1 TMS320VC5509A connection with the AM29LV800 diagram

AM29LV800 is a low-power Flash, work in the 2.7 V ~ 3.6 V supply voltage, typically stored data can be saved more than 100 years, the number can be repeated up to 10 million program. A18 ~ A0 for the external address pins, DQ0 ~ DQ15 16 data lines, the chip select control pins for output control pins, for the write control pin.

2 of the boot process and starting from the table structure

DSP system bootloader refers to a period when the system power is stored in an external non-volatile memory in the program move to the DSP chip or a chip in the extended high-speed RAM and execute the code. Bootloader program permanently stored in the DSP ROM, starting with FF8000H, DSP system reset PC = FF8000H, the first address from the Bootloader program started.

TMS320VC5509 DSPs Bootloader a variety of loading [3], as shown in Table 1, set the DSPs GPIO0-GPIO3, DSP read it in the reset state of four pins are used to determine the start mode. This article uses 16-bit EMIF loading, although the connection complexity, consider the parallel non-volatile Flash memory matching relationship with the EMIF interface, but it has many advantages: no external clock drive, various types of non-volatile memory capacity large, in addition to download the table outside the store, but also the key storage systems need to save the data in order to store information when power is.

Table 1 TMS320VC5509A of loading

In these loading mode, download the program generates a load before the first table, the boot table. Guide the structure of the table shown in Figure 2, the information carried by a boot table code and data segments of information, to download the entry point DSP address register configuration information, and programmable delay information.

Figure 2 to guide the table structure

Read boot table shows the following information: program guide table entry address is loaded user program started after the end of the address, which is generated by user programs shown in the map file entry address; must be configured to register the number behind the number that need to configure the register; when the delay flag is 0xFFFF, the execution delay, delay determines the length of delay in the configuration register the number of CPU cycles before the next action; segment in bytes, starting address and data segment that defined in the user program the content of each segment; boot table to mark the end of 32 0.

Generate boot table approach: in the DOS environment through the use of hex55.exe conversion tool. Before the conversion, first user-generated program. out file that contains the CMD file conversion options and conversion tools hex55.exe hex5509.cmd in the same folder, the path in DOS mode, first change the location of the file, then run the command in this path hex55 hex5509 . cmd, to generate desired. hex file.

In the conversion, to provide guidance related to the configuration information table CMD file here is named hex5509.cmd, hex5509.cmd used in the text content is:

3 Flash programming

Flash EPROM read operation with the traditional read the same. Since the chip operates using software protection mode, the user program, as long as the specified address to write to the specified sequence, you can start writing Flash-chip state machine to complete the specified operation. Table 2 shows for the Flash operation command (on the chip erase and programming are carried out according to the word), all data in the table are hexadecimal. The correct sequence of operations

Flash: first reset, and then erased, and finally programming.

Operations in accordance with Table 2 provides the command sequence to achieve the AM29LV800 erase and programming, PA for the program address, PD for the programming data. Flash expansion in the CE1 space, start address is 200000, so the operation must be added all the addresses 200000. For example, some of the programming projects erase command:

Table 2 AM29LV800B operation command description

Chip erase requires six bus cycles occupied, while the chip programming requires four bus cycles, according to the data in Table 3, in each bus cycle, write the address of the corresponding command word on it. Users usually write on the chip, can only write 1 become 0 and erase can only 0 into 1. Figure 3 shows the erase and programming command waveform, clearly shows the erase and programming operation.

erase and programming commands in Figure 3 plot

Determine the end of program or erase is when the program or erase command sequence is written in accordance with its Flash words, in the write or erase command sequence programming command sequence the arrival of the last rising edge of WE after, AM29LV800 automatically running an embedded algorithm within the Flash program or erase operation to determine whether the end. Trigger-check method used to detect data switching bit DQ6 (Toggle Bit) of the state, data will continuously read the value of DQ6 0 and 1 to switch back and forth between, when programming or erasing the end, DQ6 to stop the value of the switch. Therefore, you can read DQ6 twice to determine the value of a program or erase is ended, when the two read the same value, indicating the end of program or erase, or not. Trigger bit detection algorithm flow chart shown in Figure 4.

Figure 4 trigger level detection algorithm flow chart

4 programming procedures to achieve

Simulation environment of the system under the CCS-line Flash programming.

First create a Flash-programming works, and works will be burned in the boot table file written into the Flashs LOAD DATA function through CCS directly loaded into the DSP memory, according to the first loaded address and data length, in the Flash simulation environment written in fire. It is noteworthy that the program can not load Flash-memory programming duplication of procedures, or the write fails.

Programming is completed, turn off and unplug the cable simulator, emulator and the computer to disengage: Turn the experimental panel flashes, indicating that the firing included in Flash program is running, since the launch a success.

Need to add is that after hex55.exe hex file into the file after the boot table can not directly import files in CCS, CCS provides the only support would be particularly through the LOAD DATA DAT format into memory, it must be before the import the boot table into a DAT format, this work can be prepared by the VC into a simple C language program implementation.

This paper describes a simple and effective for Flash TMS320VC5509A DSP programming methods and the bootstrap procedure is proposed to guide the implementation. Can effectively solve the problem and the DSP program code stored offline bootstrap problem, not only improve the debugging efficiency, but also increase the flexibility of the system. This article discusses the boot method, including hardware design and associated procedures have been developed in the authors actual voice used in the project and run successfully.

TDA7053AT datasheetTDA7053AT suppliersTDA7053AT Price

All right © 2010-2016 Certificate