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.

Micro SDHC card bootloader for TMS320F28069

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28069

I wanted to know how to load firmware from micro SDHC card in flash.

As I know:

I will have to load a SPI bootloader in a flash sector (I'm getting started on this) with a starting address specified from where the bootloader can read the program to be updated in the RAM.

I will have to store a file (don't know which format) in the SD card.

Problems:

SPI bootloader example provided in "ti\controlSUITE\libs\utilities\boot_rom\2806x\2806x_boot_rom_v1_1" has used EEPROM, so what changes will be required for micro SDHC card?

If program to read and write from SD card is required here, is it similar to the SD card interface example ?

I tried the SD card interface example and got improper response e.g. "0x7F00" and "0xCA00" in sd_command_response() and the program halts due to error.

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, fails when a 3.3 V power supply is used (I checked to voltage and it doesn't drop below 3.1 V, remains 3.2 V average).
I'm having a custom board made from TMS320F28069/63 IC, JTAG is of F28069 development kit, Sandisk 8GB micro SDHC card, CATALEX microSD card adapter.

Please help me understand and implement this.

  • Hi Ravi,

    You might want to check out this SD Card example for the F2837xD in controlSUITE

    controlSUITE\device_support\F2837xD\v200\F2837xD_examples_Cpu1\sd_card

    Like I said, it's for the F2837xD, so you have to do a little porting to get it to work on the F2806x, but it might be worth a try given the trouble you've had with the other example.

    You should be able to study the SPI_Boot.c file and figure out what needs to be changed. For example, some of the code in SPI_Boot() that enables the EEPROM could be removed and replaced with code that initializes the SD card. SPIA_Transmit() can be modified to read a word from the SD card.


    Whitney

  • Sir,

    Thanks for the reply.

    I need some time to understand the SCI flash bootloading (example provided) and then I will move to SPI EEPROM flash bootloading to clear the bootloading logic.

    My requirement is to finally update firmware using a micro SDHC card.

    After I have implemented SCI/SPI bootloading then I will come up with my doubts here.
  • Sir,

    Can the example "controlSUITE\device_support\F2837xD\v200\F2837xD_examples_Cpu1\sd_card" be used for data logging in a micro SD card? Is there any document to understand how the program is implemented in this example, like a document which was provided by Pradeep and Tim?

    I wanted to save a line of text in a micro SD card with time duration (RTC) depending on the value of a variable.

    Please help.

  • Hello,

    That's not the function of the existing example, but it should serve as a pretty good starting point for you to modify.

    Whitney