Hello,
I work with the Nordic nRF52832 development board, it has flash memory of 512KB.
The projects that i build and upload using keil uvision 5 appear to generate .axf files that exceed that 512KB size, thus the board does not perform required operations.
Please suggest any solutions to decrease the size of the .axf file, or any other suggestions you may have.
Thank you.
the .axf file is the one that gets loaded onto the board.
No, it doesn't. Or rather: it shouldn't.
The AXF is to be loaded into the debugger, which then flashes the ROM contents of that into the microcontroller. The project you show has only about 10 KiB of that --- so you're very far away from reaching 512 KiB. There's a whole lot more in that file than what ends up in the controller, including tons of debug information. But none of that ends up in the microcontroller.
It's possible that the debugger you use has a licensing restriction to 512 KiB AXF size, though. Or maybe you're telling it to use the AXF file as a raw binary image.
You were right. It had nothing to do with the .axf file.
I just had to flash softdevice from within keil instead of using another software.