Connect SDK Intermediate Lesson 9 exercise 2&3 DFU issues

I'm using a nRF54L15-DK, going through lesson 9 of the intermediate tutorials, using the ncs-inter files at commit 2475c72: Update mcuboot.conf · NordicDeveloperAcademy/ncs-inter@2475c72 · GitHub,  with v2.9.0 of the SDK in Windows 11.

I'm building for target nrf54l15dk/nrf54l15/cpuapp.

I have noticed that for Exercise 2, I am unable to put the board into DFU mode by holding Button 1 while resetting, in order to reprogram via AuTerm. I checked mcuboot.conf, and added the following lines (as I saw in Exercise 1) to enable DFU mode this way:

CONFIG_MCUBOOT_SERIAL=y
CONFIG_BOOT_SERIAL_UART=y
CONFIG_UART_CONSOLE=n

I added those lines, and all worked as described in the tutorial, except that the MCUBoot log output was not present in the VCOM, since I had to disable CONFIG_UART_CONSOLE in mcuboot.conf.

I noticed a similar situation in Exercise 3, and this time I'm unable to get past it; once again, holding Button 1 while resetting would not place the board into DFU mode. This time, though, adding those lines to mcuboot.conf causes a pristine build to fail:

c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `rodata' will not fit in region `FLASH'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `FLASH' overflowed by 2504 bytes

I've attached my config files from the tutorial in case they help.

5305.mcuboot.overlay7462.mcuboot.conf0537.sysbuild.conf3051.app.overlay34515.prj.conf

Related