~Using nrf Connect sdk and toolchain at version V2.9.0
Attached is the app.zip project.
0334.app.zip
Basically it consists of a single main funct that prints ("AAAAAAAAAAA") to the screen.
What I've discovered is that during app runtime (when AAAAA ...is being printed to rtt) I can communicate with mcumgr or smpmgr
I want to put another application onto slot 0.
app2.zip
The output of the .bin files is show below
❯ find . -iname "*.bin" ./app/build_sdk_guide/app/zephyr/zephyr.bin ./app/build_sdk_guide/app/zephyr/zephyr.signed.bin ./app/build_sdk_guide/mcuboot/zephyr/zephyr.bin ./app2/build/app2/zephyr/zephyr.bin
Now the question(s) part.
- Why is mcuboot running during application runtime?
- Can I get it to only run during bootup? In the app dir under the .git logs you can see I have a file called my_defconfig....which is some of the behaviour i wanted during the mcuboot bootup.
- When trying to "mcumgr --conntype=serial --connstring='dev=/dev/ttyACM0,baud=115200' image upload $path/app2/zephyr/zyphyr.bin" I am unable to flash it. Using v2.6.1 and a west build command with -DMCUBOOT_OVERLAY_CONFIG we were able to get a app_update.bin generated. This allowed mcumgr to do a firmware update.
- Do I need to have mcuboot config info in the app2 build? The plan was to never jtag or nrfproj the chip again. All dfu would be done by uart during bootup, such that we only ever overwrite the slot 0 / app.
Regards,