Problem while using SPI4 and UART1 together in nrf5340

Hi,

I am using nrf connect sdk V2.0.0 and nrf5340 DK.

Using fat_fs and uart examples, I managed to get the SD card and UART work individually. For SD card, I am using SPI4 and for UART, I am using UART1.

However, when I tried to combine fat_fs into UART example, I am unable to initialise them together.

Thanks

Parents Reply
  • Hi Einarh,

    Below is the attached zip file with combined prj.conf and nrf5340dk_nrf5340_cpuapp.overlay files. Previously, I have referred fat_fs and UART examples.

    prj_overlay.zip

    If CONFIG_DISK_DRIVER_SDMMC=y & CONFIG_SPI=y lines are not commented then UART communication fails over UART and nrf5340 keeps on restarting.

    If CONFIG_DISK_DRIVER_SDMMC=y & CONFIG_SPI=y lines are commented then UART communication works over UART1 but SD card initialization fails (as SDMMC and SPI are not configured).

    Thanks

Children
Related