Unable to enable debug options in VS Code for NCS v2.2.0

Hi,

I am able to build my application fine in VS Code with NCS v2.2.0. However, I am unable to debug the application when I select "Enable debug options" when editing the build configuration. It makes it nearly all the way through the build and linking process, but then fails with: region `FLASH' overflowed by 15872 bytes

It may be noteworthy that I am using a statically allocated partition file (I was unable to get LittleFS working with partitions created in the devicetree). But there are no issues building and running with this static partition file when I am not trying to enable debug options.

Any help would be greatly appreciated!

Thanks,
Nathan

  • Hi Einar,

    Sorry for the delayed response! I was able to reduce the memory footprint, without debug options enabled, down to the following:

    Memory region         Used Size  Region Size  %age Used
               FLASH:      242468 B     409088 B     59.27%
                SRAM:        173 KB     211736 B     83.67%
            IDT_LIST:          0 GB         2 KB      0.00%

    However, what is weird is that when I go to enable debug options for this build, I still get the same number of bytes for the overflow error: region `FLASH' overflowed by 15872 bytes


    Thanks,

    Nathan

  • Hi

    I just noticed that the difference between the flash region sizes in our build logs is pretty close to your reported overflow amount of 15000 bytes. (409088B vs 392704B)

    Perhaps you've done a mistake in your partition file that only takes effect once you surpass the actual flash region size?

    -Einar

Related