2023-09-20 08:40 AM - edited 2023-09-21 05:08 AM
Hi,
I'm working with a STM32G491KEU (512KB Flash).
I use a custom bootloader so the startup in the printsreen is from the application. The MCU will first start in the custom bootloader and then it should change to the application.
It reaches the startup_stm32g491keux.s and should branch to the mainApp with Address 0x800fcdc. The program counter is at 0x80131e2. And then it happens and it jumps wrong.
Is that jump too long for "bl"? My answer: branch can work with MB ranges should not be an issue for the 512KB.
Todays Update
There is something strange happening. If I have only an empty main (the same project) I get a very different disassembly. For me it looks like one is in thumb mode and the other one is ARM assembler.
Any ideas?
Solved! Go to Solution.
2023-09-21 08:47 AM
The problem I found in the custom bootloader. Data wasn't written correctly to flash memory.
2023-09-21 08:47 AM
The problem I found in the custom bootloader. Data wasn't written correctly to flash memory.