Hello,
I followed this tutorial in order to build MCUboot with serial recovery (using NCS v2.2.0 and nRF52840dk): https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples/serial_recovery/mcuboot_serial_recovery_uart
I wanted to modify the button used to enter serial recovery (DFU mode) but even if I set CONFIG_BOOT_SERIAL_DETECT_PIN it was not working. Button 1 was always used no matter which button I was trying to use.
So I checked mcuboot code in NCS, and it seems like this config is deprecated. The only way to change button is to change the mcuboot_button0 alias which is defined in this file:
zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
So my question is, how can I change button without touching at the NCS code?
BR,
Damien