Hello there,
Recently I tried to configure the MCUBoot on my custom Adafruit feather nrf52840, based on the Windows.
Firstly, I followed the instruction below to configure the MCUBoot on the nrf52840DK, and it works.
It built the hex file by the commands "west build -b nrf52840dk_nrf52840 --pristine -- -Dmcuboot_OVERLAY_CONFIG=<path>/usb_cdc_acm_log_recovery.conf"
and then simply give "west flash", it successfully flashed by nrfproj, and then I can see the MCUboot is set up and ready to go.
Afterwards, I can use mcumgr to upload the image, so everything was good for the nrf52840DK.
Then, I moved on my custom Adafruit feather nrf52840. I connected the nrf52840DK with the my PCB like:(using the JLink from nrf52840DK)
https://www.hackster.io/news/getting-zephyr-running-on-the-nrf9160-feather-6c5e20a2a350
The same procedure was operated and it successfully built the hex file as well by "west build -b adafruit_feather_nrf52840 --pristine -- -Dmcuboot_OVERLAY_CONFIG=<path>/usb_cdc_acm_log_recovery.conf", just change the board name here.
For the usb_cdc_acm_log_recovery.conf, give the CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000, and also CONFIG_BOOT_SERIAL_DETECT_PIN=11, using the nrf52840DK (PCA10056)
However, when I use the west flash, it indicated the error here.
I think it is mainly relevant to the JLink setting.
Can you please tell me the reason or what is different configuration for using nrf52840DK to debug out the custom nrf52840 based board?
Thanks in advance for any suggestions.
Regards,
Ethan
Issue update:
As suggested, added the JLInk to the environment variable, and it works for JLink flashing.
But it got the access denied and the program was actually not implemented.
Thanks for any suggestions!
Update!
Change to the nrfjprog flashing replacing the JLink in the cmake configuration file.
It works to west flash.
While there is no response for the adafruit feather nrf52840 board, no serial port appears.
So I tested the nrf52840DK as the reference, I can see the bootloader start indicated in the debugging terminal when west flash the program
While for the custom adafruit feather nrf52840, it is nothing shown in the terminal.
I think the current issue is relevant to the MCUBoot configuration or serial recovery mode.
Here is my MCUBoot configuration:
Please share the suggestions if you get some ideas.
Regards,
Ethan