2026-02-04 6:59 AM
Hi,
I just wanted to check if is it dangerous to move the isr_vector inside the text section like this:
.text :
{
. = ALIGN(4);
KEEP(*(.isr_vector))
. = ALIGN(4);
FILL(0x00000000);
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*)
*(.glue_7) /* glue arm to thumb code */
*(.glue_7t) /* glue thumb to arm code */
*(.eh_frame)
KEEP (*(.init))
KEEP (*(.fini))
. = ALIGN(4);
_etext = .; /* define a global symbols at end of code */
} >FLASH
I implemented a CRC32 integrity check and it doesn't work because the gap between the isr_vector and text section is always Fs when I debug with the CubeIDE, but if I download the .elf with CubeProgrammer, the gap is filled with 0s, and in that case it works.
TY for your help.