Build errors when using FATFS/LittleFS on nrf52840 USB mass storage example

I get this error when i try to use FATFS or LittleFS - RAM works though

/Users/admin/mass_1/src/main.c: In function 'setup_flash':
/opt/nordic/ncs/v2.9.0/nrf/include/flash_map_pm.h:47:22: error: 'PM_storage_partition_ID' undeclared (first use in this function)
47 | #define PM_ID(label) PM_##label##_ID
| ^~~
/opt/nordic/ncs/v2.9.0/nrf/include/flash_map_pm.h:52:35: note: in expansion of macro 'PM_ID'
52 | #define FIXED_PARTITION_ID(label) PM_ID(label)
| ^~~~~
/Users/admin/mass_1/src/main.c:40:33: note: in expansion of macro 'FIXED_PARTITION_ID'
40 | #define STORAGE_PARTITION_ID FIXED_PARTITION_ID(STORAGE_PARTITION)
| ^~~~~~~~~~~~~~~~~~
/Users/admin/mass_1/src/main.c:89:36: note: in expansion of macro 'STORAGE_PARTITION_ID'
89 | mnt->storage_dev = (void *)STORAGE_PARTITION_ID;
| ^~~~~~~~~~~~~~~~~~~~
/opt/nordic/ncs/v2.9.0/nrf/include/flash_map_pm.h:47:22: note: each undeclared identifier is reported only once for each function it appears in
47 | #define PM_ID(label) PM_##label##_ID
| ^~~
/opt/nordic/ncs/v2.9.0/nrf/include/flash_map_pm.h:52:35: note: in expansion of macro 'PM_ID'
52 | #define FIXED_PARTITION_ID(label) PM_ID(label)
| ^~~~~
/Users/admin/mass_1/src/main.c:40:33: note: in expansion of macro 'FIXED_PARTITION_ID'
40 | #define STORAGE_PARTITION_ID FIXED_PARTITION_ID(STORAGE_PARTITION)
| ^~~~~~~~~~~~~~~~~~
/Users/admin/mass_1/src/main.c:89:36: note: in expansion of macro 'STORAGE_PARTITION_ID'
89 | mnt->storage_dev = (void *)STORAGE_PARTITION_ID;
| ^~~~~~~~~~~~~~~~~~~~
[29/179] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/bitarray.c.obj
[30/179] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/onoff.c.obj
[31/179] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_rtt.c.obj
[32/179] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
[33/179] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
[34/179] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/mem_mgmt/mem_attr.c.obj
[35/179] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
[36/179] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
[37/179] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_uart.c.obj
ninja: build stopped: subcommand failed.
FAILED: _sysbuild/sysbuild/images/mass_1-prefix/src/mass_1-stamp/mass_1-build /Users/admin/mass_1/build/_sysbuild/sysbuild/images/mass_1-prefix/src/mass_1-stamp/mass_1-build
cd /Users/admin/mass_1/build/mass_1 && /opt/nordic/ncs/toolchains/b8efef2ad5/Cellar/cmake/3.21.0/bin/cmake --build .
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/b8efef2ad5/bin/cmake --build /Users/admin/mass_1/build

Parents Reply Children
No Data
Related