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.

SD memory library programming

I want to implement a library for SD memories, and I find a lot of information about the initialization of the SD and other topics, but they always talk about "commands" or "CMD" and I don't understand what they are, I suppose that the "CMD" are hexadecimal numbers or some number in binary that should be sent, the problem is that I can't find exactly what values ​​or numbers they are, could you tell me where to find more information to make this library please? What values ​​are sent by SPI and all those commands, please?

  • Martin,

    Can you let me know which device you are using so that I can loop in the appropriate team.

    Regards,

    John

  • Hi, 

    An option would be to use it with the TM4C1230C3PMI7R microcontroller, but I want to have the basic information to be able to implement libraries for SD memories with any TI microcontroller, if you have any help I would be very grateful.


    Thanks

  • Martin,

    I will send the thread over to the team that supports TM4C microcontrollers.  Our support is all done by device family.

    Regards,

    John

  • Hello Martin,

    I don't really know if we have any general guidance to offer here for this. We are largely device experts and don't have detailed understanding of SD card protocol etc. For TM4C, our TivaWare SDK comes with the open source fatfs library from a thirty party and we have a few examples using it but I don't really have any answers about the commands you are asking about. My expertise is limited to the TM4C device and it's peripherals, so I know SPI very well but I never had to learn anything about how to use SPI to talk to an SD card - that's beyond my ability to help support.

    Really as far as SD cards go the extent of my knowledge is just using the libraries as is like in the example we provide: [Install Path]\TivaWare_C_Series-2.2.0.295\examples\boards\dk-tm4c129x\sd_card

    I would guess this is probably something you can get more insight for from stackoverflow or a more generic forum.

    Here is the TivaWare download if you want to see our offering: https://www.ti.com/tool/SW-TM4C

    The fatfs code is provided at [Install Path]\TivaWare_C_Series-2.2.0.295\third_party\fatfs

    The fatfs source code isn't really the friendliest to read from what I have seen when I looked but there is a docs folder so maybe that helps.

    But that's really the extent of what I can offer for TM4C on SD cards right now.

    Best Regards,

    Ralph Jacobi