Hi!
I'm trying to prepare FOTA firmware using instructions provided by: FOTA upgrades but it seems not working.I have couple of issues and questions. Please help me.
My environment is NCS 1.6.1 and nrf52840 dongle. I have choose an open-thread cli sample from SDK. Because I need to develop open-thread application. And I have connected UART-USB converter to pins described by .dts file as UART0 (Yes i'm aware of crossing RX and TX):
&uart0 { compatible = "nordic,nrf-uarte"; status = "okay"; current-speed = <115200>; tx-pin = <20>; rx-pin = <24>; rts-pin = <17>; cts-pin = <22>; };
So when I'm running on dongle CLI example it works correctly. I see a CLI on my minicom terminal and are able to write commands to configure open-thread. But the problem is when I'm trying to add CONFIG_BOOTLOADER_MCUBOOT. So:
1. I have got a flash partition error of mcuboot and need to add to "west" command this cmake variable: "-Dmcuboot_OVERLAY_CONFIG=$(pwd)/usb_cdc_acm_log_recovery.conf" and change partition size to 0x10000 this is full config file:
CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000 CONFIG_LOG=y # The build won't fit on the partition allocated for it without size # optimizations. CONFIG_SIZE_OPTIMIZATIONS=y # Serial CONFIG_SERIAL=y CONFIG_UART_LINE_CTRL=y # MCUBoot serial CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y CONFIG_LOG_BACKEND_UART=y CONFIG_LOG_BACKEND_RTT=n
Now i'm able to compile application with mcuboot. But problem is when I try to run this application. So I have created a .zip file from "merged.hex" file using this command:
nrfutil pkg generate --hw-version 52 --sd-req=0x00 \ --application build/zephyr/merged.hex \ --application-version 1 cli.zip
and upload it using this command:
nrfutil dfu usb-serial -pkg cli.zip -p /dev/tty.usbmodemD4911D54D2A41
And after that the board is "dead" no cli prompt and no reaction to any inputs. I have tried to use mcuboot serial recovery mode on bootloader and when using command "mynewt-mcumgr-cli --conntype=serial --connstring='dev=/dev/tty.usbmodem14101,baud=115200' image list" i got this:
Images: Split status: N/A (0)
So i suspect just nothing works.
And my final question. Do I need to make some special configuration to enable logging over serial in mcuboot? I don't see any logs on my UART adapter.
So if you could assist me how to run mcuboot application on dongle i will be much appreciated. It's blocking my development now.
Thanks in advance!