Enabling MCUBOOT over USB for example project causes FLASH overflow

I've tried googling, but nothing seems to quite help.

When I simply enabled MCUBOOT for a sample project on the nRF52840DK_nRF52840 board, I can get it working just fine. However, for my purposes, I would like to enter DFU mode via GPIO and so I think I need to enable "CONFIG_BOOT_USB_DFU_GPIO". When I do so, however, I seem to run out of FLASH for MCUBOOT -- citing something like 9kB over. I have everything else setup as default. any ideas?

note: I've been enabling CONFIG_BOOT_USB_DFU_GPIO, by adding "child_image/mcuboot.conf" to the sample project to append the config variable. But I've also just tried building MCUBoot separately and adding the config to the "proj.conf" file directly -- no such luck.

Right now I'm trying the minimal configuration file with the above configuration...but I'm running into undefined symbols that all look timing related. Attempting to toggle some configs in the minimal configuration file now...

Parents
  • adding some more to my project's "child_image/mcuboot.conf" I'm getting a bit closer:

    CONFIG_BOOT_SIGNATURE_TYPE_NONE=y
    CONFIG_FPROTECT=n
    CONFIG_BOOT_USB_DFU_GPIO=y
    CONFIG_BOOT_USB_DFU_WAIT=y
    CONFIG_USB_DFU_PERMANENT_DOWNLOAD=y
    CONFIG_BOOT_SWAP_USING_MOVE=y

    now I get that:

    /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `rodata' will not fit in region `FLASH'
    /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 3336 bytes

    rodata instead of text?

Reply
  • adding some more to my project's "child_image/mcuboot.conf" I'm getting a bit closer:

    CONFIG_BOOT_SIGNATURE_TYPE_NONE=y
    CONFIG_FPROTECT=n
    CONFIG_BOOT_USB_DFU_GPIO=y
    CONFIG_BOOT_USB_DFU_WAIT=y
    CONFIG_USB_DFU_PERMANENT_DOWNLOAD=y
    CONFIG_BOOT_SWAP_USING_MOVE=y

    now I get that:

    /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `rodata' will not fit in region `FLASH'
    /opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 3336 bytes

    rodata instead of text?

Children
No Data
Related