Flashing an application using the Actinius I/O Serial Programmer

Hi. I'm trying to flash the Cell Fund Lesson 4, Exercise 1 app – Reading buttons and controlling LEDs over MQTT, to an Icarus IoT Board v2 using the Actinius I/O Serial Programmer via usb.

I'm using SDK v2.8.0 and have flashed this successfully to the Thingy91.

I tried clean builds, and also tried including the following to prj.conf for the Icarus IoT Board v2 build with board target actinius_icarus/nrf9160/ns

CONFIG_BOOTLOADER_MCUBOOT=y
CONFIG_BUILD_OUTPUT_BIN=y
App builds fine, but I can't find the app_update.bin file. (or zephyr.signed.bin) and trying to flash any other *.bin file from the <path>MQTT_broker\IcarusBuild\MQTT_broker\zephyr folder gives an "Upload failed Firmware is not a valid device image." message.
What am I doing wrong?
Parents
  • Hi,

    Do you see the same behavior when using any older NCS version?
    You could try the same exercise for NCS v2.4.0-v2.6.2 and for NCS v2.2.0-v2.3.0.

    How are Thingy91 and Icarus IoT board related in your case regarding existence of update files?

    Best regards,
    Dejan

  • Haven't tried older versions. What do you mean by update files?
    I see that my nrf9160 and icarus builds are missing the mcuboot folder completely. Trying to figure that out at the moment.

  • Hi,

    Do you still have CONFIG_BOOTLOADER_MCUBOOT=y  in your project configuration?

    Neso said:
    Thank you for looking into this. I've seen CONFIG_BOOTLOADER_MCUBOOT=y referenced many places, but not CB_CONFIG_BOOTLOADER_MCUBOOT=y.

    Please make sure that there is no typo. Correct configuration option is SB_CONFIG_BOOTLOADER_MCUBOOT.

    Best regards,
    Dejan

  • Yes, I tried including CB_CONFIG_BOOTLOADER_MCUBOOT=y in sysbuild.conf. Build fails.
    Tried including it in an new app and build with same result.
    Also tried building for the circuitdojo_feather/nrf9160/ns, but all builds fail.

    Errors after last try

    [{
    "resource": "/cmake/modules/sysbuild_extensions.cmake",
    "owner": "nrf-connect",
    "severity": 8,
    "message": "CMake Error at cmake/modules/sysbuild_extensions.cmake:514 (message):",
    "source": "cmake",
    "startLineNumber": 514,
    "startColumn": 1,
    "endLineNumber": 514,
    "endColumn": 2147483647
    },{
    "resource": "/c:/ncs/v2.8.0/zephyr/cmake/modules/extensions.cmake",
    "owner": "nrf-connect",
    "severity": 8,
    "message": "CMake Error at C:/ncs/v2.8.0/zephyr/cmake/modules/extensions.cmake:2842 (message):",
    "source": "cmake",
    "startLineNumber": 2842,
    "startColumn": 1,
    "endLineNumber": 2842,
    "endColumn": 2147483647
    },{
    "resource": "/c:/path/path/nRF/Blinky/AI_build",
    "owner": "Kconfig no context",
    "severity": 4,
    "message": "Kconfig Language Server cannot start for build 'AI_build'. Try rebuilding or do the pristine build to fix this issue.",
    "startLineNumber": 1,
    "startColumn": 1,
    "endLineNumber": 1,
    "endColumn": 1
    }]

    I have tried rebuild and Pristine build.

  • Hi,

    Have you tried to remove build folder before rebuilding?

    Best regards,
    Dejan

  • Yes,and as I said, I also tried building new applications from scratch. All clean builds.

  • Hi,

    To summarize, when you had CONFIG_BOOTLOADER_MCUBOOT=y in your prj.conf, you were able to build and flash the project to your board but you did not have files neccesary for updating the application. When you removed CONFIG_BOOTLOADER_MCUBOOT=y from your project configuration and added SB_CONFIG_BOOTLOADER_MCUBOOT=y in the sysbuild.conf of your project's root, you are not able to build the project anymore. Is this correct? If this is correct, can you provide a full build log including your build command?

    Best regards,
    Dejan

Reply
  • Hi,

    To summarize, when you had CONFIG_BOOTLOADER_MCUBOOT=y in your prj.conf, you were able to build and flash the project to your board but you did not have files neccesary for updating the application. When you removed CONFIG_BOOTLOADER_MCUBOOT=y from your project configuration and added SB_CONFIG_BOOTLOADER_MCUBOOT=y in the sysbuild.conf of your project's root, you are not able to build the project anymore. Is this correct? If this is correct, can you provide a full build log including your build command?

    Best regards,
    Dejan

Children
Related