2022-02-03 10:06 PM
2022-02-03 10:11 PM
This is a STM32 MCU not MPU class device
"I am using STM32G431. Erase cannot be done by rewriting FLASH.
Makeup has no errors. At the debug start after downloading, I got the message
"The stack pointer is set up for invalid alignment"
.
With STM32F303, I was able to rewrite without any problems.
If anyone knows, please let me know."
Make sure the linker script (.LD) doesn't have a bogus initial SP, ie 0x2001FFFF which is NOT 32-bit aligned