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.

MSP432P401R: Read/Write SD Card "fastsd" example does not work

Part Number: MSP432P401R

Hello guys i tried the example "fastsd" for using a micro SD card with MSP432P401R Launchpad and it does not work.

Im using RFD22130 RFduini microSD Shield.and 128 gb micro SD Card

i connect the RFD22130 to these pins like the example suggest

P1.5 > CLK

P1.6 > MOSI

P1.7 > MISO

P4.6 > CS

then i get this screen:

i dont know what happend and what is the error, can you help me please?

Thanks in advance

  • Jose,

      Your issue sounds very similar to this E2E post, which covers the SDSPI. Let me know if this solves your problem.

    Regards,

      Bob L.

  • Thanks Bob for your response, i tried change the connection from MOSI to MISO in the RFD22130 RFduini microSD Shiel, but i get the same error on Putty.

    the code fails in this part

    /* Open file for both reading and writing */
    src = fopen(inputfile, "w+");
    if (!src) {
    Display_printf(display, 0, 0,
    "Error: \"%s\" could not be created.\nPlease check the "
    "Getting Started Guide if additional jumpers are necessary.\n",
    inputfile);
    Display_printf(display, 0, 0, "Aborting...\n");
    while (1);
    }

    i dont know what would be the problem, i I went back and checked that all pins and jumpers were correctly set up and I think that they are.
    So there any way to test the SPI Connection??

    Thanks in advance
  • I found the solution of my problem,

    it seems like the SD must be formated to "FAT16" or "FAT322 in order to work, if your SD cad have any different format, the example wont work.
    my SD card was in "exFAT" that why it does not work.
  • Jose,
    Thanks for the followup post. We appreciate the your help to the E2E community.
    -Bob L.

**Attention** This is a public forum