STM32CubeIDE and STM32CubeProgrammer produce different results when flashing .elf files
STM32CubeIDE and STM32CubeProgrammer exhibit different behavior when flashing an MCU. Specifically, "gaps" in memory sections described in the linker script are flashed to a device with 0xFFFF when using the IDE and 0x0000 when using the programmer. For example, this will be the case for the few addresses after ".isr_vector", but before ".text".
I noticed this when programming an STM32G474RE to perform a CRC on its own flash on startup as part of data integrity check. I appeared to get different CRC results depending on whether I had programmed the unit through the IDE or the CubeProgrammer (despite using the same .elf file, ST link, and PCB). Ideally, I think STM32CubeIDE should probably be updated to match the behavior of STM32CubeProgrammer for consistency.
This was done using STM32CubeIDE version 1.13.0, STM32CubeProgrammer version 2.14.0, and STLinkV2.
