NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

C5535 Boot-Image Programmer

From Texas Instruments Wiki
Jump to: navigation, search

Bootloader Features[edit]

The bootloader is a program that runs from ROM at power-on and loads a boot-image from a peripheral to the internal RAM of the C5535 DSP. It is always invoked after power-on-reset. Once the transfer is completed, the bootloader switches control to the user code so that it is automatically executed.

In order to ensure that the code cannot be accessed and read outside of the system, the code residing externally may be encrypted. The bootloader is responsible for bootloading the code from an external device (I2C EEPROM, SPI EEPROM, SPI serial flash, MMC/SD, USB, and UART), decrypting it if necessary, and writing it into DSP memory (on-chip or off-chip).

The C5535 has a fixed order in which it checks for a valid boot-image on each supported boot device.

The device order is 16-bit SPI EEPROM, 24-bit SPI serial flash, I2C EEPROM, and SD/SDHC/eMMC/moviNAND. The first device with a valid boot image will be used to load and execute user code. If none of these devices has a valid boot-image, the bootloader goes into an endless loop checking for data received on the UART or USB. If a valid boot image is received, it is used to load and execute user code. If no valid boot-image is received, the bootloader continues to monitor these two devices.

The C5535 eZdsp only contains a SPI serial Flash memory and a microSD card slot, which support both encrypted and non-encrypted boot images.

How to program a boot image onto C5535 eZdsp[edit]

Figure 5
Figure 6
  • For information on how to create a boot-image for your device, click here

Once a boot image (*.bin) is generated, customers can burn the boot image into the SPI Flash memory of the C5535 eZdsp through a utility called programmer that runs on C5535 using an emulator with Code Composer Studio™ software.

First, load the programmer_c5535_eZdsp.out from File:Programmer C5535 eZdsp.zip using the Code Composer Studio as shown in Figure 5 by selecting “Load Program…” under the Target menu in CCS. You can also download the programmer from the Spectrum Digital's C5535 eZdsp Support Page.

Next, run the program, when the user will be asked to input the filepath and filename for the boot image:

C5535 eZDSP...Input <filepath>

Figure 6 show how to program lednonencrypted.bin to the C5535 eZdsp using programmer_c5535_eZdsp.out.

NOTE: There cannot be any white spaces in the file directory path or the program will not run correctly. Programmer will not be able to find the input file as it considers the white space the end of the input.

Common Mistakes in Boot Image User Code[edit]

A frequent issue is that the user code works fine in CCS environment but fails to work after converted to boot image. This is most likely because the user code relies on a GEL file in the CCS environment to initialize and setup PLL. This is easily corrected by not using GEL in CCS environment, but instead including all the necessary initialization steps in the user code. It is a good practice to re-initialize everything you need from within your bootloaded user code.

Another common mistake is allocating program code to SARAM31 memory. The bootloader writes to SARAM31 (byte address 0x4E000 – 0x4FFFF) thus any user code residing in SARAM31 will be corrupted. Do not use SARAM31 if you intend to convert this code to a boot image. Once the bootloader has finished loading the program into RAM, SARAM31 can be used.

Software Tools Checklist[edit]

These are the required tools to test boot from flash or EEPROM:

  1. hex55.exe to convert .out COFF file to binary.
  2. programmer.out to download to flash and EEPROM.
  3. CCS to run programmer.out.
  4. cleaner.bin file to erase previous boot images from peripherals.
E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article C5535 Boot-Image Programmer here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article C5535 Boot-Image Programmer here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article C5535 Boot-Image Programmer here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article C5535 Boot-Image Programmer here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article C5535 Boot-Image Programmer here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article C5535 Boot-Image Programmer here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article C5535 Boot-Image Programmer here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article C5535 Boot-Image Programmer here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article C5535 Boot-Image Programmer here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity