This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SD Card mount error using fat_fs zephyr example code

hello sir ,

I am trying to run fat_fs example code , but i got mount error ,

my connections spi1,

SCK = 31,

MOSI = 30

MISO = 28

CS = 17,

Parents
  • Hi

    What kind of hardware are you using? 

    Have you ensured that the SD card is correctly connected to the nRF52 device?

    Best regards
    Torbjørn

  • yes it connect properly , i m using nrf52840dk and my in house module of SD card . N i run nrf sdk example with same hardware and its run properly , but i want to run in zephyr . so help me

  • Hi 

    Which Zephyr version are you using?

    Is it a tagged release, or the master branch?

    I have a SD card laying around and will try to reproduce your issue tomorrow. 

    Best regards
    Torbjørn

  • Zephyr version 2.4.0

    nrf connect SDK 1.4.0

    "I have a SD card laying around and will try to reproduce your issue tomorrow. " - Ok sir

  • hello sir , any updates on this i had try but still cant get any result i created overlay n conf file and made new project .

  • Hi

    Sorry for the slow response. 

    So far I have also been unable to get the example in Zephyr running, I can't see any communication on the SPI bus. 

    Are you able to share your overlay file?

    I will do some checking internally to see if anyone else have had success running this example on the nRF52840DK. 

    Best regards
    Torbjørn

  • SDHC.zip

    Its OK sir no worry , So now I sent you my entire project zip file , so you can easily see all  files .

    I want to run this program for my company project so it is important for me .... thank you

Reply
  • SDHC.zip

    Its OK sir no worry , So now I sent you my entire project zip file , so you can easily see all  files .

    I want to run this program for my company project so it is important for me .... thank you

Children
  • Hi 

    I got the project working on my end with some input from a colleague, and I have attached it here:

    7343.fat_fs.zip

    The critical aspect was to add the following lines to the prj.conf file:

    Can you give this a go and see if it works for you also?

    Best regards
    Torbjørn

  • thanks a lot sir its working...............