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 Reply Children
  • I'm using 2.6.0

    I'm not able to get a memory report working since my build fails at the linker (when the FLASH usage is too large). When I can build, my basic app I'm testing with (the USB HID test app in samples) is 50kB. I'm unable to view the memory report for MCUBoot because I can't get it to build (been trying in USB HID and in a separate application where I just have MCUBoot open)

    ah! took at look at the devafademy samples and that helped. was able to increase the PM partition for MCUBoot and I get:

    [213/213] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       52504 B        84 KB     61.04%
                 RAM:       31616 B       256 KB     12.06%
            IDT_LIST:          0 GB        32 KB      0.00%
    [15/179] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (/nordic/ncs/v2.6.0/zephyr), build: v3.5.99-ncs1
    [171/179] Linking C executable zephyr/zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       51800 B     478720 B     10.82%
                 RAM:       16576 B       256 KB      6.32%
            IDT_LIST:          0 GB        32 KB      0.00%

    Previously I had MCUBoot region of 0xC000 (49kB) so it was overflowing! thanks so much. yeah I need to go through the courses at some point, thanks again

Related