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.

CCS/TMS320F28379D: How can we interface External flash with TMS320F28379D using SPI protocol and its programming in CCS ..?

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi

I have interface 128M-bit external flash its part number is W25Q128FV with our own TMS320F28379D based MCU board. i have checked it using control suit example for SPI loopback and i have seen that communication is working properly. But now i want to send my own data and want store it in to flash memory as well as want to use that data at time of requirement.

Any body can give me program for external flash memory interfacing with TMS320F28379D ? and explain how can we store data in to it and use it as per our requirement.

Here what is use of DMA..? Is it required here or not...?

ThanKs & Regards,

Jaimin Mehta

  • Hi Jaimin,

    jaimin mehta said:
    Any body can give me program for external flash memory interfacing with TMS320F28379D ? and explain how can we store data in to it and use it as per our requirement.

    Is this about interfacing uSD card with SPI?

    Regards,

    Gautam

  • Dear Gautam Sir,

    No, it is not about interfacing uSD card with SPI.

    Actually i am asking for interfacing external flash memory (W25Q128FV) with SPI.



    Regards,

    Jaimin Mehta
  • To begin with, I would suggest you to go through "External Memory Interface (EMIF)" section in TRM of the device.
  • Dear Gautam Sir,

    As per your suggestion i will refer EMIF section also but i think whatever i want to do is something different. Because in current situation i want to interface flash memory using SPI, which has 4 lines like DI, DO, CLK and CS.

    my next target will external RAM interface with this TMS320F28379D which has address lines, data lines, read-write and chip selection lines. So, at that time i can refer and use EMIF section details for external RAM programming and interfacing.

    But right now i am trying to find some solution regarding to external flash interfacing using SPI with TMS320F28379D.
    I hope you can understand my problem.


    Thanks & Regards,

    Jaimin Mehta
  • Got your point now. I did check your SPI Flash part, you can simply implement the Standard SPI interface mentioned in section 6.1.1 and this should be very well compatible with C2000 SPI.

    You should be able to use the SPI example but with loopback feature disabled. Is the flash connected to the chip via SPI lines?

  • Dear Gautam Sir,

    Yes, flash connected to the chip via SPI lines GPIO-16, GPIO-17, GPIO-18 and GPIO-19. i am using TMS320F28379D with 176 pin PTP device.

    i have seen actually two examples in control suit. (1) SPI _loopback and (2) SPI_loopback_dma

    which one i should use for interface and store data...? and in previous message as you told how can i disabled loopback feature..?



    Thanks & Regards,

    Jaimin Mehta
  • jaimin mehta said:
    which one i should use for interface and store data...?

    You can go for anyone of them according to your requirement.

    jaimin mehta said:
    and in previous message as you told how can i disabled loopback feature..?

    Please read the SPI section of TRM of this device. You have all info available there. SPILBK bit in SPICCR register is where you can enable/disable loopback function.

    Regards,

    Gautam

  • ok. thank you Gautam sir for your guidance. i am reading right now reference manual. i will tell you if i will find any problem.

    Thanks & Regards,

    Jaimin Mehta