CubeIDE generating 400MB binary files for example applications with BLE
I started using STM32wb55rgv6 nucleo board recently and I have been doing my early development in CubeIDE 1.0.2. [converted SW4STM32 project files].
I've trying to replicate the OTA + BLE_p2pserver example and I hit the following snug:
As part of the OTA procedure, one has to generate the .bin file for the application. CubeIDE consistently creates huge .bin files (~400Mb) from the BLE_p2pserver example as well as from other examples with BLE; it seems unrelated to OTA.
The same step works just fine on IAR; I get the expected 32Kb binary file.
As mentioned elsewhere, it's probably because of some high memory location included in the non-sparse binary, but I don't seem to be able to find a way around it.
Enumerating all the sections in the linker file does not give a working app:
arm-none-eabi-objcopy.exe -v --output-target=binary -j .isr_vector -j .text -j .rodata -j .ARM.extab -j .ARM -j .preinit_array -j .init_array -j .fini_array -j .data -j .bss -j .user_heap_stack BLE_p2pServer.elf "BLE_p2pServer.bin"
Any ideas?
Thanks,
Athanasios
P.S. Given that this is example code, I would expect it to work out-of-the-box as described. :grimacing_face: