What did i miss? How to change application boot address correctly? I want to use my application with bootloader. MinGW + VS Code + openocd + make. STM32L452CC
Most time i use IAR to create an application. But want to use mingw and vs code instead iar. I`m already have a bootloader which is working fine with my IAR applications.
Here is the sequence for IAR:
- I generate project for IAR via CubeIDE
- In IAR i go to options->linker and change vector table and memory regions
- Insert this code in main():
__disable_irq();
SCB->VTOR = 0x8005000;
__enable_irq();
4.download app with bootloader and everything working fine. Even i can debug my application
Here is the sequence for VS Code:
- generate the same project for makefile via CubeIDE
- change address in linker script FLASH (rx) : ORIGIN = 0x8005000, LENGTH = 118K
- Insert this code in main():
__disable_irq();
SCB->VTOR = 0x8005000;
__enable_irq();
4.download app with bootloader. The bootloader succsessfully called application but app is not started. maybe it is hard fault but i`m not sure because gebugger is also not working(because of non standart address 0x8005000).
What did i miss? What i have to do to run app?


