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.

TMS320F28335: Getting external bin file

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

Hi TI,

I want to use the MCU to get a .bin file,what I should do?Does the FATFS support that read a bin file?

Best regards,

Frank 

  • Frank,

    Please let me know which question you are asking:

    1. You have a .bin file loaded on an SD Card that you wish to transfer to another device using the SPI and are asking if the SPI/FATFS protocol is capable of accomplishing this

    2. You wish to boot the F28335 device from an external program through SPI.

    If you can expand a little more on the situation that you are trying to solve, I think I can help you out.

    Thanks,
    Mark
  • Mark,
    Thanks.
    1.Whether the EMIF/FATFS protocol is capable of read external .bin file?
    1.If the answer of question 1 is YES,when I have a .bin file loaded on a Compact Flash Card that I wish to transfer to device TMS320F28335 by EMIF,what I should do to code the CF card drivers and port the EMIF/FATFS protocol?
    Best regards,

    Frank
  • Frank,

    The XINTF interface on F28335 should be able to directly access a data file on a compatible interface.

    If you are referring to an SD card and require the FATFs file system, the F28335 is capable of managing this through the SPI protocol. A port of the elmchan FATFS protocol exists for later C2000 devices - you can refer to the sd_Card example for F28379D in C2000ware for this. It should be simple to port this over to the F28335.

    Please let me know if you have additional questions.

    Thanks,
    Mark
  • Frank,

    For clarification:

    I would consider EMIF / XINTF and SPI to be physical layer interfaces that govern the transmission of raw data.  EMIF / XINTF are meant to interface with external memory ICs like SRAM, and SPI is used to interface with external ICs with a serial port.

    SD and CF have their own physical layer specifications.  SD includes support for a serial port that works with SPI, but mostly for legacy and compatibility reasons.  The fully realized SD interface is more efficient and involved than SPI.  There is no SD compatibility with EMIF / XINTF.  As far as I know, CF is generally not compatible with either EMIF / XINTF or SPI.

    A file system like FATFS is needed if you want media interoperability with operating systems.  The concept of a .bin file is at the application level.  The MCU will be able to access raw data using its physical layer interfaces, but it will have no native understanding of what a .bin file is.

    -Tommy