'PM_mcuboot_primary_ID' undeclared for matter examples

I've worked with the nRF5 SDK in the past, and I've started exploring the nRF Connect SDK for future projects. I've taken some of the courses offered through Nordic (great experience and much appreciated resource), and created a few projects.

Most recently, I've been playing around with matter, and I'm attempting to evaluate the matter examples "thermostat" and "template", but I'm getting the error 'PM_mcuboot_primary_ID' undeclared. I'm building for the nrf52840 DK with default sample configuration in vs code. SDK 2.9.0. Other samples, such as the light switch matter example and some peripheral / sensor examples work just fine. I'd appreciate some guidance as to what could be wrong here. 



Additional error information:
bj -c C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c
In file included from C:/ncs/v2.9.0/zephyr/include/zephyr/storage/flash_map.h:300,
from C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c:13:
C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c: In function 'flash_img_init':
C:/ncs/v2.9.0/nrf/include/flash_map_pm.h:47:22: error: 'PM_mcuboot_primary_ID' undeclared (first use in this function)
47 | #define PM_ID(label) PM_##label##_ID
| ^~~
C:/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)
| ^~~~~
C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c:33:30: note: in expansion of macro 'FIXED_PARTITION_ID'
33 | #define UPLOAD_FLASH_AREA_ID FIXED_PARTITION_ID(UPLOAD_FLASH_AREA_LABEL)
| ^~~~~~~~~~~~~~~~~~
C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c:150:39: note: in expansion of macro 'UPLOAD_FLASH_AREA_ID'
150 | return flash_img_init_id(ctx, UPLOAD_FLASH_AREA_ID);
| ^~~~~~~~~~~~~~~~~~~~
C:/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
| ^~~
C:/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)
| ^~~~~
C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c:33:30: note: in expansion of macro 'FIXED_PARTITION_ID'
33 | #define UPLOAD_FLASH_AREA_ID FIXED_PARTITION_ID(UPLOAD_FLASH_AREA_LABEL)
| ^~~~~~~~~~~~~~~~~~
C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c:150:39: note: in expansion of macro 'UPLOAD_FLASH_AREA_ID'
150 | return flash_img_init_id(ctx, UPLOAD_FLASH_AREA_ID);
| ^~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.9.0/zephyr/subsys/dfu/img_util/flash_img.c:151:1: warning: control reaches end of non-void function [-Wreturn-type]
151 | }

Parents Reply
  • Appreciate the reply. Nope, no changes by intention, although I'm starting to think I may have accidently changed a SDK file, as I just did a pristine build of the light switch example that previously worked, and now it runs into the same issue. I can't share a complete pristine build log on the forum due to the folder structure having private information, but I'm happy to DM it if that would help. In the mean time, I'm going to try reinstalling my SDK.

Children
No Data
Related