Command to separate the binary from .elf file
- September 1, 2020
- 4 replies
- 2800 views
Hello @Martin KJELDSEN @Community member ,@All ALL
We are using TouchGFX based development kit.
- STM32F746G-DISCO
- STM32F7508-DK
STM32F746G-DISCO :
When we used STM32F746G-DISCO Kit, we are using following command to separate the flash and ext-flash binary.
arm-none-eabi-objcopy.exe -O binary --only-section=*Section "$ STM32F746G_DISCO.elf" ExtFlash.bin;arm-none-eabi-objcopy.exe -O binary --remove-section=*Section "$ STM32F746G_DISCO.elf" Flash.bin
Above Generated binary are working fine and we are loaded using ST-LINK Utility.
STM32F7508-DK :
When we used STM32F7508-DK kit, We are using following command.
arm-none-eabi-objcopy.exe -O binary --only-section=.isr_vector --only-section=.text --only-section=.rodata --only-section=.ARM.extab --only-section=.ARM --only-section=.preinit_array --only-section=.init_array --only-section=.fini_array "$ STM32F7508-DK.elf" Flash.bin; arm-none-eabi-objcopy.exe -O binary --only-section=*Section "$ STM32F7508-DK.elf" ExtFlash.bin;
Above command will create the binary but it is not working fine.
Here, i attached both linker file for both broad, can you please guide me on this point?
Is something that i missed?
Regards,
Nikunj Patel