You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with Drivers folder and startup_stm32h7b0xx.s, ...will not fit in region 'FLASH'...
...
fpu=fpv5-d16 -mfloat-abi=hard -specs=nano.specs -TSTM32H7B0VBTx_FLASH.ld -lc -lm -lnosys -Wl,-Map=build/gw_doom.map,--cref -Wl,--gc-sections -o build/gw_doom.elf
/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/ld: build/gw_doom.elf section .data' will not fit in region FLASH'
/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 4268 bytes
The text was updated successfully, but these errors were encountered:
It is a problem with the GCC ARM version, you have to use version 10.2.0 or higher, I have replaced the original in the Debian distro and now it compiles, but I suppose some more work will have to be done since the binary occupies 2MB and does not fit the flash.
but I suppose some more work will have to be done since the binary occupies 2MB and does not fit the flash.
For that that last part, you need to extract the sections that go to internal and external flash.
Use size -A build/gw_doom.elf to check the sections, then objdump -O binary -S -j section1 -j section2... to extract the relevant sections. Check the rules to build $(TARGET)_{extflash,intflash}.bin in Makefile of https://github.com/kbeckmann/game-and-watch-retro-go for an example.
with Drivers folder and startup_stm32h7b0xx.s, ...will not fit in region 'FLASH'...
...
fpu=fpv5-d16 -mfloat-abi=hard -specs=nano.specs -TSTM32H7B0VBTx_FLASH.ld -lc -lm -lnosys -Wl,-Map=build/gw_doom.map,--cref -Wl,--gc-sections -o build/gw_doom.elf
/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/ld: build/gw_doom.elf section
.data' will not fit in region
FLASH'/usr/lib/gcc/arm-none-eabi/7.3.1/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 4268 bytes
The text was updated successfully, but these errors were encountered: