error: 'PM_mcuboot_secondary_ID' undeclared

I want to do BLE FOTA with my customborad, so I have added some configs of FOTA to my developping project.

those configs are referenced ”DevAcademy” Exercise 3 - FOTA over Bluetooth Low Energy - Nordic Developer Academy.

But this error has happened.

Actually my project has not defined pm_mcuboot_secondary.

I tried to define pm_mcuboot_secondary by adding the followings to overlay.


this is stated in DevAcademy Exercise 2 - DFU over USB, adding external flash & custom keys - Nordic Developer Academy 8.1
But pm_mcuboot_secondary are not defined!
The name of the flash memory is different from the Academy's, but I don't think that's relevant.

Please tell me how to solve this error.

I have single slot enabled in my project, maybe that has something to do with it?



Parents
  • Hi,

    Could you verify what version of the SDK you're using? The course is only available for NCS v2.6.2 – v2.5.2, so if it is for 2.7.0 or newer there might be some conflicts with the difference in the build system.

    The second item is that in 8.1 for NCS v2.6.2 – v2.5.2 it is stated that you need to place the chosen external flash in both app.overlay and in your child_image/mcuboot.overlay. Could you verify if you've added it to both of these files, or just in your app.overlay?

    Could you share your prj.conf? The secondary partition is only placed automatically on the external flash for certain configurations. If you don't have the right configuration, you will need the following configuration (described here https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/config_and_build/bootloaders/bootloader_external_flash.html): CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y

    Kind regards,
    Andreas

Reply
  • Hi,

    Could you verify what version of the SDK you're using? The course is only available for NCS v2.6.2 – v2.5.2, so if it is for 2.7.0 or newer there might be some conflicts with the difference in the build system.

    The second item is that in 8.1 for NCS v2.6.2 – v2.5.2 it is stated that you need to place the chosen external flash in both app.overlay and in your child_image/mcuboot.overlay. Could you verify if you've added it to both of these files, or just in your app.overlay?

    Could you share your prj.conf? The secondary partition is only placed automatically on the external flash for certain configurations. If you don't have the right configuration, you will need the following configuration (described here https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/config_and_build/bootloaders/bootloader_external_flash.html): CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY=y

    Kind regards,
    Andreas

Children