Region `APP_FLASH' overflowed

I’m updating an old Particle Dev project and have hit some hurdles. I finally got Workbench installed and working (not easy when you have a space in your Windows account name – arg!!), and I can compile for 1.4.4 (cloud & local) with the following success report:

   text    data     bss     dec     hex filename
 130384     524    8836  139744   221e0 d:/Work/Spark/GameFrameV2_WiFi/target/1.4.4/photon/GameFrameV2_WiFi.elf

but compiling for 1.5.1 gives the errors:

c:/users/jeremy/.particle/toolchains/gcc-arm/5.3.1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld.exe: d:/Work/Spark/GameFrameV2_WiFi/target/1.5.1/photon/GameFrameV2_WiFi.elf section `.data' will not fit in region `APP_FLASH'
c:/users/jeremy/.particle/toolchains/gcc-arm/5.3.1/bin/../lib/gcc/arm-none-eabi/5.3.1/../../../../arm-none-eabi/bin/ld.exe: region `APP_FLASH' overflowed by 352 bytes

I also hit the flash limit when I started coding a new, small feature using 1.4.4. Am I really pushing up against the Flash limit? 130384 bytes isn’t anywhere near the 1MB limit, is it?

https://docs.particle.io/datasheets/wi-fi/photon-datasheet/#stm32f205rgy6-flash-layout-overview

You are right about there being 1MB but a lot of it is allocated for various purposes with only 128KB dedicated for application use.

1 Like

I see. Thank you for confirming. Does the Argon have 128KB for application use as well?

You can always look at the datasheet’s memory maps for all Particle devices
e.g. https://docs.particle.io/datasheets/wi-fi/argon-datasheet/#memory-map

(@joel, your link doesn’t resolve to the correct position - at least for me - it merely goes to the top of the Photon datasheet - the #memory-map anchor may have been the better option :wink: )