Generated Binary file size is too large(~2.3GB)
- January 31, 2020
- 16 replies
- 8146 views
Hello Community,
- I am working with "STM32F746G-DISCO" Board, "STM32CubeMX", "STM32CubeIDE", and "TouchGFX Designer" .
- I would like to program GRAPHICS Data in to "QUADSPI Flash".
- When i compile firmware in "DEBUG" mode,
- ".bin" file size = 2.3GB
- ".elf " file size = 5.5MB,
- But, It works fine for me. GRAPHICS Data are program in QUAD SPI Flash.
- When i compile firmware in "Release" mode.
- ".bin" file size = 2.3GB
- ".hex" file size = 3.3MB.
- I made below modification in "Linker Script" file to store data in "QUAD SPI FLASH"
- QUADSPI (rx) : ORIGIN = 0x90000000, LENGTH = 16M
ExtFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >QUADSPI
6. Here, I also attached liker script file.
7. Is there any configuration missed by me or make some wrong implementation.
8. I required ".bin" file in "STLINK" utility while program the external flash because In STLink select the "External Loader" >>"N25Q128A_STM32F746G_DISCO">>"Program".
9. It opens the "Download" window.
10. It display "start address" as "0x08000000" and that "text box" is disabled when i choose the ".hex" file
11. When i choose the ".bin" binary file that "textbox" is enable. But Binary file size is too large(~2.3GB).
Can you please suggest me how can i reduce the binary file size.
My aim is to program the GRAPHICS Data in to External Flash(QUAD SPI FLASH)
Regards,
Nikunj Patel
