Hello,
I am trying to add SDCard management, over SPI bus, into my project with nRF5340. When I try to compile, the error is always the same. I am trying the code over the devkit, while I wait for the final custom board is ready. The error is:
C:\Users\x\ncs\v2.1.0\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "Only one of the following peripherals can be enabled: SPI0, SPIM0, SPIS0, TWI0, TWIM0, TWIS0, UARTE0. Check nodes with status \"okay\" in zephyr.dts."
The pro.conf is:
CONFIG_GPIO=y CONFIG_PRINTK=y #CONFIG_DISK_DRIVER_SDMMC=y #CONFIG_SPI=y CONFIG_LOG=y CONFIG_FILE_SYSTEM=y CONFIG_FAT_FILESYSTEM_ELM=y CONFIG_FS_FATFS_CODEPAGE=850 CONFIG_DISK_ACCESS=y CONFIG_DISK_DRIVER_SDMMC=y CONFIG_DISK_DRIVERS=y CONFIG_DISK_LOG_LEVEL_DBG=y CONFIG_SDMMC_SUBSYS=y CONFIG_ASSERT_VERBOSE=y CONFIG_BOOTLOADER_MCUBOOT=y CONFIG_MAIN_STACK_SIZE=4096
And the nrf5340dk_nrf5340_cpuapp.overlay is:
&spi0 { status = "okay"; cs-gpios = <&gpio1 9 GPIO_ACTIVE_LOW>; group1 { psels = < NRF_PSEL(SPIM_MOSI, 1, 10) >, < NRF_PSEL(SPIM_MISO, 1, 11) >, < NRF_PSEL(SPIM_SCK, 1, 12)>; }; sdhc-spi-slot@0 { compatible = "zephyr,sdhc-spi-slot"; reg = <0>; status = "okay"; label = "sdhc0"; mmc { compatible = "zephyr,sdmmc-disk"; status = "okay"; }; spi-max-frequency = <4000000>; }; };
I don't know what is the correct way to solve the issue!
I am using the SDK 2.1.0 over Win10.
Thanks
Marco