This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

c5505boot.bin file for SD card boot

Other Parts Discussed in Thread: TMS320VC5505

hi,

     I am doing project on TMS320VC5505. I have a ECG.out file which I converted into .bin file using hex55. I want to boot the C5505 from SD card, I followed the instruction of how to program of C5505 in CCS. But I have failed to do so.

I load the file programmer_C5515_EVM.out then select the SD card and give the .bin file address...

I have the SD card, I tried but it asks for C5505BOOT.BIN , from where I can produce this file??

Also I tried to rename my .bin file to this and copy it from computer to SD card directly but the error persists.  I formatted the card by using HP utility available at ti.wiki site.

Please advice how to proceed...

  • Refer to the Data sheet on boot for secure boot from external peripherals. Also refer to this forum question:

    http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/109/p/73999/269032.aspx#269032

    Regards.

  • Steve,

    The Wiki has a procedure for creating the boot image from Hex55 directly (http://processors.wiki.ti.com/index.php/Creating_a_SD_card_boot_image_for_C55x) (no secure image tool required) - presumably the wiki is incorrect? Can you clarify?

    Regards,

    Dave

  • Dave,

    you are correct.

    Regards.

  • This is the correct wiki site:

    http://processors.wiki.ti.com/index.php/C5515_Boot-Image_Programmer

    quote from the site:

    In order to ensure the code cannot be accessed and read outside of the system, only encrypted images can be boot from MMC/SD and USB. Both encrypted and non-encrypted images can boot from NAND, NOR, 16-bit SPI EEPROM, and I2C EEPROM.

    Regards.

  • Hello TI engineers,

    Since SD memory cards are now the most handy flash memory device, many developpers are attempting to design their C5505/15 device with the boot from a SD card feature.
    We need a few clarification. 

    In order to boot C5505/15 device from a SD card,
    1. .out file must be converted to .bin file using Hex55 utility.
    2. .bin file must be encrypted using the Encryption utility.
    3, The Encryption utility is export controled so it may not be available for people in some countries. ( please clarify export qualification )
    4. SD card must be formatted in FAT format.
    5. SD card must NOT be formatted in Secure mode.

    Are these correct?

    In addition, the bootloader of C5535 device is different from C5505/15.
    Encryption of .bin file is not required in case of C5535.
    I could make C5535 boot from a SD card by converting .out file to .bin file using Hex55 utility and just coping a .bin file on a FAT formatted SD card.
    Is this also correct?

    Your help is most helpful.

     

  • In order to boot C5505/15 device from a SD card,
    1. .out file must be converted to .bin file using Hex55 utility.

    Correct.
    2. .bin file must be encrypted using the Encryption utility.

    Correct

    3, The Encryption utility is export controlled so it may not be available for people in some countries. ( please clarify export qualification )

    Correct.

    Please refer to http://processors.wiki.ti.com/index.php/C5000_Creating_Boot-Images

    on how to request the tool.
    4. SD card must be formatted in FAT format.

    Not correct. See below.

    5. SD card must NOT be formatted in Secure mode.

    Correct. This is excerpt from section 2.2.7 of C5515/14/05/04 Bootloader Apps Note: http://www.ti.com/lit/an/sprabd7a/sprabd7a.pdf

    The bootloader supports booting from an SD device with the following requirements for the external
    device:
    • The device must be connected to the MMC/SD0 interface.
    • The SD device must comply with SD specification v1.1, or v2.0 for FAT32.
    • The SD device must use the SD insecure mode (see SD specification). Note that this does not refer to
    the boot-image security; boot-images must be the secure type for use with SD.
    • The boot-image must be in the first partition with filename boot5505.bin.

    In addition, the bootloader of C5535 device is different from C5505/15.
    Encryption of .bin file is not required in case of C5535.
    I could make C5535 boot from a SD card by converting .out file to .bin file using Hex55 utility and just coping a .bin file on a FAT formatted SD card.
    Correct.

    This is the excerpt from section 2.2.4 of the C5535/34/33/32 Bootloader Apps Note: http://www.ti.com/lit/an/sprabl7a/sprabl7a.pdf

    The bootloader supports booting from an SD device with the following requirements for the external
    device:
    • The device must be connected to the eMMC/SD0 interface.
    • The SD device must comply with SD Specifications Part 1 Physical Layer Simplified Specification v1.1
    or v2.0 and formatted in FAT16/32.
    • The SD device must use the SD insecure mode (see SD specification). Note that this does not refer to
    the boot image security. Boot images can be either the secure image or unsecure image for use with
    SD.
    • The boot image must be in the first partition with a filename of “bootimg.bin”.

  • Hi Steve,

    With your help, I could download Encrypted Boot Image Tools and made the C5505 boot from SD card.
    Thank you for your support.   Please pass my gratitude to Gadkari Mugdha too.

    However, I figured the C5505 boots from SD when XDS510USB emulator are connected and CCS ver.4 is in Debug mode.

    The hardware is my original design. 
    Insert a SD card and turn on the power to the board (i.e. cold boot) then it fails to boot.
    But, connect XDS510USB emulator and start CCS ver.4, select Target->Debug from menu, then do nothing but soon select Target->Terminate All to end debug mode,
    then C5505 boots from SD card properly.
    Once it succeeded to boot, then turn off the power briefly and soon turn the power back on, then the chip boots from SD card properly.
    If turning off the power for long enough to drain all voltage from capacitance, then the chip fails to boot from the SD.

    What does Debug mode of CCS ver.4 do to the chip at the beginning?

    Do you have any idea where I should look into?

  • Hello Mato,

    For C5505 device, it requires encrypted image to boot from SD. The file name have to be boot5505.bin. Use this free format tool to format a partitioned card. C5515/15/05/04 can only boot from partitioned card. http://download.cnet.com/HP-USB-Disk-Storage-Format-Tool/3000-2094_4-10974082.html Then you can copy the boot5505.bin to the SD card, or use CCS to execute the programmer.out to download boot5505.bin to the SD. Refer to C5515 Boot-Image Programmer for encrypted boot image details.

    After the file boot5505.bin is in the SD card, C5505 should boot from it when power turns on to the board (cold boot). No CCS is required. What you are seeing is strange.

    Another thing to check is PLL setting is included in your program code. You can execute your code with CCS without Gel file. Your program does not use SARAM31.

    Regards.

  • Hi Steve,

    I was using SARAM31 as a part of my code. 
    I edited the Link command file not to use SARAM31 area,
    then it worked perfect.
    My work is almost done.
    Many thanks!

  • Glad that I can help solving your issue.

    Regards.