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

NRF52

I'm actually building a project that need to communicate with sdcard.

i read a lot about that and i'm very confusing when i passed on nordic sdk lot of code and ressources lot of files speaking about the same things: NRFx_SPI , NRF DRV SPI ...

Can you give me a NRF52-pca10056 basic example with write and read a block of data from a sdcard no need of any fatfs lib or other complicated code.

Thanks,

Reagards.

Parents Reply Children
  • micheld_ said:
    1- Can you gives a more complete sample to build the SD card library?

    Unfortunately, we only have the FatFs example showing the usage of this library. app_sdcard is used through nrf_block_dev_sdc which interfaces with FatFs through Nordic's port layer (diskio_blkdev).

    micheld_ said:
    2- When APP_SDCARD_SPI_INSTANCE is activated in sdk_config.h with one will be used (nrf_SPI of nrfx_SPI?)

    This will depend on the configuration of the SPI driver (nrf_drv_spi). If EasyDMA for the corresponding instance is enabled, EasyDMA will be used:

    // <q> SPIx_USE_EASY_DMA  - Use EasyDMA
     
    #ifndef SPIx_USE_EASY_DMA
    #define SPIx_USE_EASY_DMA 1
    #endif

  • Thanks for support.

    I think it is better that nordicsemi can provide an example based on sdcard like STMicroelectrics on stm32 tagret, I hope I would not go to them.

    Best regards.

Related