cancel
Showing results for 
Search instead for 
Did you mean: 

Error: arm-none-eabi-objcopy:App.bin[ExtFlashSection]: No space left on device

 Hello, I am building both bootloader and application firmware. Post generating .elf and hex file, I am generating .bin file for both and combining them to make single flashable .bin file with padding and all with help of command for .bin file geneation.

arm-none-eabi-objcopy "${BuildArtifactFileBaseName}.elf" App.bin -O binary

Everything works fine till I use external flash for application. When I did same work for application with external flash, I m getting below error.

arm-none-eabi-objcopy:App.bin[ExtFlashSection]: No space left on device

When I removed .bin file generation code, Everything worked fine.

I am not sure about issue. Please suggest.

Thanks

7 REPLIES 7

Suggests the memory regions used are far apart, and the resulting .BIN consequently will be very large trying to span the difference in the address space.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

@Community member​ Ok , How should I solve it?

Basically I need one flashable file which has both bootloader and application code.

Well how's that going to work? Doesn't a .HEX or .ELF meet that threshold? How about a .DFU file?

You'd need a tool like FROMELF which can output two binary files, one for each section of memory involved, and not all the space in-between.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

Suppose bootloader area is between 0x0000 to 0x4000 and Application from 0x4000 to 0xFFFF. Suppose bootloader hex is till 0x2000,So I pad from 0x2000 to 0x4000 and thn combine with application.

How should we do same with .HEX ? I have not used that way before.

I'm guessing that's not how this specific system is configured, show the .LD linker script, and provide details of the specific STM32 involved.

In more usual implementations the loader and application are separate/distinct. The developer would create some custom file format to encapsulate one or both of the images, as needed, and typically provide a way to secure or validate them. Perhaps look at the .DFU format, or object file formats more generally.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

I am using STM32F746 with extern flash N25Q128. Also attaching my linker file. I also need them for OTA for future.