FatFS “Wrong FF_VOLUMES setting” error when migrating to NCS v3.1.1 on nRF5340 custom board

Hi,

I’m using a custom nRF5340 board, and I recently migrated my project from nRF Connect SDK v2.9.0 to v3.1.1.

The same project compiled and worked fine on v2.9.0, but after switching to v3.1.1, I get this build error:

C:/ncs/v3.1.1/modules/fs/fatfs/ff.c:463:2: error: #error Wrong FF_VOLUMES setting
463 | #error Wrong FF_VOLUMES setting
| ^~~~~

The project uses FatFS for USB mass storage.

My current prj.conf--

CONFIG_FILE_SYSTEM=y                  
CONFIG_FS_FATFS_LFN=y                
CONFIG_DISK_ACCESS=y                
CONFIG_FAT_FILESYSTEM_ELM=y          
CONFIG_DISK_DRIVER_FLASH=y            
CONFIG_FS_FATFS_MKFS=y                
CONFIG_FS_FATFS_MOUNT_MKFS=y        
CONFIG_FILE_SYSTEM_MKFS=y  

Questions:
1)Has anything changed in NCS v3.1.x regarding how FF_VOLUMES is handled?
2)What is the correct configuration for a single FatFS volume (USB mass storage) setup in v3.1.?
3)Do I need to explicitly define or override anything in zephyr_fatfs_config.h?

Thanks!



Related