2025-02-06 10:06 AM
Having just opened a STM32 Cube IDE project from 2024 (which did build and run last year) now when I build and try and debug I get this error message
File segment @0x08000000 is not 255-bytes aligned. It will be aligned to @0x07FFFFF8
So, using my original CubeMX .ioc file I have created a new "hello world" project in Cube IDE.
This builds fine, but again when I try and debug I get the same error message
File segment @0x08000000 is not 255-bytes aligned. It will be aligned to @0x07FFFFF8
So this suggests its a IDE/Tool problem.
The linker file is "as created", its not been altered in any way.
I'm using "latest" versions of IDE and MX
STM32CubeIDE, Version: 1.17.0, Build: 23558_20241125_2245 (UTC)
STM32CubeMX, Version: 6.13.0-RC5, Build: 20241122-0809 (UTC)
My STLINK-V3SET has been updated with latest firmware.
The target device is a STM32H730 on a custom board.
Any help or advice would be appreciated.
Thank you.
Console snippet..
Opening and parsing file: ST-LINK_GDB_server_a25708.srec
Memory Programming ...
File : ST-LINK_GDB_server_a25708.srec
Size : 52.79 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing external memory sector 0
File segment @0x08000000 is not 255-bytes aligned. It will be aligned to @0x07FFFFF8
Download in Progress:
2025-02-06 12:24 PM
I recollect other complains about this.
Strikes me that it's metadata related to sections described in the .ELF file.
So perhaps from the .LD, but also perhaps via various .O(OBJ) and .A(LIB) files combined by the linker