Hi,
I'm using nRF Connect SDK v2.7.0 (this error happens with v2.5.0 as well). I'm trying to build the USB Mass Storage sample for FAT FS on flash, in zephyr/samples/subsys/sys/usb/mass for the nRF53.
It builds and runs fine with the following command-line command: west build -b nrf5340dk_nrf5340_cpuapp -- -DCONFIG_APP_MSC_STORAGE_FLASH_FATFS=y
I then tried enabling BLE by adding CONFIG_BT=y like so: west build -b nrf5340dk_nrf5340_cpuapp -- -DCONFIG_APP_MSC_STORAGE_FLASH_FATFS=y -DCONFIG_BT=y
The build fails with the following error:
zephyr/drivers/disk/flashdisk.c:484:1: error: return type defaults to 'int' [-Werror=implicit-int] 484 | PM_FOREACH_AFFILIATED_TO_disk(DEFINE_FLASHDISKS_CACHE)
Note that the sample builds with -DCONFIG_BT=y as the only option, and also builds with -DCONFIG_BT=y along with -DCONFIG_APP_MSC_STORAGE_RAM=y. The adafruit_feather_nrf52840 builds with both options. But it appears there's something in particular about enabling BT along with USB Mass Storage on flash that breaks the build for nRF53. Has anyone gotten this to work?
regards,
-mike