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.

320F28069 Secondary Bootloader for programming from SD CARD

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28069

In my project, I need a bootloader which program the flash from SD card. I will write a bootloader using flash api to Sector A and the main program to Sector B-H

Is there any example code for this? How can I choose the sectors for bootloader part and main part. 

Thank you.

  • Ahment,

    could you take a look at the following example in controlSuite. This is a flash kernel that can be loaded to the device RAM using SCI BOOT loader running from ROM and the kernel then takes over the SCI and port and receives the application to be programmed to flash.

    "C:\ti\controlSUITE\device_support\f2806x\v150\F2806x_examples_ccsv5\f28069_flash_kernel"

    I believe the above example along with other flash examples will provide you with enough help.

    #1 Your secondary boot loader is in Flash Sector A.

       > how to program your secondary bootloader in flash sector A? you can use the above flash kernel example and get the secondary boot loader onto sector A over SCI. But I believe thats a secondary problem to solve. You might have to add code on how to read from SD Card, is it SPI based?

    #2. Assuming you have finalized a way to get the secondary boot loader onto sector A. Now everytime device boots up you will use boot to flash entry point and branch to your secondary bootloader. This secondary bootloader will then have to figure out if it has to flash the application from SD card (SPI based???) or run the application that is already in flash.

    Hope this helps you get started.

    Best Regards

    Santosh Athuru

  • Sir,

    What will be the format of file in the micro SDHC card, which is having the firmware to be updated (is it intel .hex/ TI .hex)?

    Can the SPI bootloader be used to program flash memory of F28069/63 device ?

    For read/write from micro SDHC card,
    I'm referring the SD card interfacing document by Pradeep and Tim:
    www.ti.com/.../litabsmultiplefilelist.tsp

    Problems faced are:
    Improper response e.g. "0x7F00" and "0xCA00" in sd_command_response() and the program halts as error occurs.

    By reprogramming, at times I can read and write data to SD card if and only if the VCC of 3.3 V to the micro SD card is provided from the JTAG, if 3.3 V power supply is used then read/write doesn't happen.

    We are having a custom board made from TMS320F28069/63 IC, JTAG is of F28069 development kit, Sandisk 8GB micro SDHC card, CATALEX microSD card adapter.

    Can 8 GB card which is HC causing problem?

    Please help.
  • Hello Ravi,

    Please consider creating a new post if the discussion on this thread doesn't answer your question. This post had been closed a while ago and is no longer tracked. You can provide the necessary information regarding your issue in the new post and include a link to this post if you'd like.

    Thanks,
    Elizabeth