STM32WLEx: Generated Binary file size is too large
- 3 replies
- 1867 views
Before release of package v1.3.0 binary size were <90kb and .ld has 3 partition in memory as below,
/* Memories definition */
MEMORY
{
ROM (rx) : ORIGIN = 0x08000000, LENGTH = 256K
RAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 32K /* Non-backup SRAM1 */
RAM2 (xrw) : ORIGIN = 0x20008000, LENGTH = 32K /* Backup SRAM2 */
}
But release package v1.3.0 has generated large binary size 250KB for Release and Debug build of LoRaWAN example. In this release ST has introduced the changes in .ld file as below,
/* Memories definition */
MEMORY
{
RAM1 (xrw) : ORIGIN = 0x20000000, LENGTH = 32K
NVM_RAM (rw) : ORIGIN = 0x20008000, LENGTH = 4K
RAM2 (xrw) : ORIGIN = 0x20009000, LENGTH = 28K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 248K
USER_Key_region_ROM (rx) : ORIGIN = 0x0803E500, LENGTH = 768
}
Here, USER_Key_region_ROM (rx) partition is newly introduced and due to this change binary size is become way to large.
Link for v1.3.0 https://www.st.com/en/embedded-software/stm32cubewl.html
Can you please suggest me how can i reduce the binary file size in the release v1.3.0?
Attaching .ld file of release v1.3.0 for more details
