2023-07-13 08:21 AM - edited 2023-07-13 08:22 AM
Hello,
I need to map two different programs (a custom bootloader and the application) in the memory space of my STM32G0, as described in figure.
The bootloader should start at power-up, then check the application CRC and eventually jump to it.
Both in the bootloder and in the application, I need to remap the interrupt vector table.
Where can I find some documentation to do this, in the correct way?
Thank you,
Carlo
Solved! Go to Solution.
2023-07-13 10:10 AM
The STM32G0 is a Contex-M0+ part, and will have a SCB->VTOR register to point at the base of the vector table. Given size I suspect this will need to a 256-byte aligned address, ie 0x00000000, 0x08000100
You can't put the CRC at the base of FLASH, you need an address pair for the initial SP/PC as the first two words
2023-07-13 10:10 AM
The STM32G0 is a Contex-M0+ part, and will have a SCB->VTOR register to point at the base of the vector table. Given size I suspect this will need to a 256-byte aligned address, ie 0x00000000, 0x08000100
You can't put the CRC at the base of FLASH, you need an address pair for the initial SP/PC as the first two words
2023-07-14 06:50 AM
Thank you.