fat_fs zephyr sample with nrf52832

Hi, 

I am trying to run the fat_fs example from zephyr samples on nrf52 development kit (nrf52832) but during building I've got following error :

c:/nrf_connect/v1.8.0/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: zephyr/drivers/disk/libdrivers__disk.a(sdmmc_spi.c.obj):(.rodata.sdhc_spi_cfg_0+0x18): undefined reference to `__device_dts_ord_53'
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

That's my development setup : 

  • nrf52 development kit (nrf52832)
  • NRF Connect SDK v1.8.0 
  • Zephyr version 2.7.0

prj.conf : 

CONFIG_GPIO=n
CONFIG_NRFX_GPIOTE=y
CONFIG_ADC=n
CONFIG_NRFX_SAADC=y
CONFIG_SPI=y
CONFIG_NRFX_SPIM2=n
CONFIG_PRINTK=y
CONFIG_DISK_ACCESS=y
CONFIG_DISK_DRIVER_SDMMC=y
CONFIG_FILE_SYSTEM=y
CONFIG_FAT_FILESYSTEM_ELM=y
CONFIG_MAIN_STACK_SIZE=2048

board dts : 

/*
 * Copyright (c) 2017 Shawn Nock <[email protected]>
 * Copyright (c) 2017 Linaro Limited
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/dts-v1/;
#include <nordic/nrf52832_qfaa.dtsi>

/ {
	model = "Nordic nRF52 DK NRF52832";
	compatible = "nordic,nrf52-dk-nrf52832";

	chosen {
		zephyr,console = &uart0;
		zephyr,shell-uart = &uart0;
		zephyr,uart-mcumgr = &uart0;
		zephyr,bt-mon-uart = &uart0;
		zephyr,bt-c2h-uart = &uart0;
		zephyr,sram = &sram0;
		zephyr,flash = &flash0;
		zephyr,code-partition = &slot0_partition;
	};

	aliases {
	};
};

&adc {
	status = "okay";
};

&gpiote {
	status = "okay";
};

&gpio0 {
	status = "okay";
};

arduino_serial: &uart0 {
	status = "okay";
	compatible = "nordic,nrf-uarte";
	current-speed = <115200>;
	tx-pin = <6>;
	rx-pin = <8>;
	rts-pin = <5>;
	cts-pin = <7>;
};

&spi2 {
	compatible = "nordic,nrf-spi";
	status = "okay";
	sck-pin = <25>;
	mosi-pin = <26>;
	miso-pin = <27>;
};


&flash0 {

	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		boot_partition: partition@0 {
			label = "mcuboot";
			reg = <0x00000000 0xc000>;
		};
		slot0_partition: partition@c000 {
			label = "image-0";
			reg = <0x0000C000 0x32000>;
		};
		slot1_partition: partition@3e000 {
			label = "image-1";
			reg = <0x0003E000 0x32000>;
		};
		scratch_partition: partition@70000 {
			label = "image-scratch";
			reg = <0x00070000 0xa000>;
		};
		storage_partition: partition@7a000 {
			label = "storage";
			reg = <0x0007a000 0x00006000>;
		};
	};
};

and the .overlay file :

 

&spi2 {
	status = "okay";
	cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;

	sdhc0: sdhc@0 {
            compatible = "zephyr,mmc-spi-slot";
			reg = <0>;
			status = "okay";
			label = "SDHC_0";
			spi-max-frequency = <24000000>;
	};
};

In the zephyr documentation there is a note : This sample can be built for a variety of boards, including nrf52840_blipmimxrt1050_evk, and olimexino_stm32.

Is it means that running that example on nrf52dk_nrf52832 is not possible ? 

If that is true, what is the reason of that and how I can solve that problem ? 

Thank you in advance

Parents Reply Children
Related