address 0x8000188-0x800018F differs based on programming mode
Dear all,
I am writing a bootloader and I experienced that the calculated CRC on the binary is different If I load the fw with cube IDE versus cube programmer. I use STM32F405.
This happens too if I make the compairement on the bootloader programme too.
The difference is present on 8 bytes after the interrupt vector table.
For example in this case: (based on the .map file's information)
- the bootloader programme starts at 0x800.0000 and
- the .isr_vector is 392 byte length which is 0x188.
- the .text region starts at 0x800.0190
- So memory 0x800.0188-0x800.018F is unused if i seems well.
I attach the screenshots of these compairements in cube programmer.
The difference is independent of whether I compare the mcu with the .elf or the .bin file.
If I load the programme with the cube programmer, the difference disappears.
I do not know why there is the difference. Could anybody tell me?
The linker file is unmodified in the case of the bootloader:
/* Memories definition */
MEMORY
{
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 64K
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 48K
}
/* Sections */
SECTIONS
{
/* The startup code into "FLASH" Rom type memory */
.isr_vector :
{
. = ALIGN(4);
KEEP(*(.isr_vector)) /* Startup code */
. = ALIGN(4);
} >FLASH
/* The program code and other data into "FLASH" Rom type memory */
.text :
{
. = ALIGN(4);
*(.text) /* .text sections (code) */
*(.text*) /* .text* sections (code) */
*(.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
Thanks in advance
Adam

