STM32G4 Flash Erase trouble at address greater than half flash
Hello,
i have an issue with erasing flash on STM32G4.
When i try to erase addresses above half of the flash (above 0x8010000), it does not erase anything. It works when i try to erase below this address.
However the function HAL_FLASHEx_Erase returns HAL_OK with PageError = 0xFFFFFFFF meaning that the the operation was well performed.
I've tried multiple combination of page number and bank number but same behaviour...
I am using an old project made for STM32G473VET (512k) but the actual MCU i'm using in the board is STM32G473VBT6 (128k). Obiviously i've changed the linker script to reflect the new flash size but i have no idea if this changes something in how all the toolchain handles it... Should it matter?
Any help will be much appreciated.
