Issue Description: MCU Not Functioning Correctly After Reprogramming
I am encountering a problem with the STM32F4xx microcontroller(Bare metal embedded) in my project. Specifically, when I load a program into the MCU, it operates normally as expected. However, when I load a new program, the MCU no longer runs as expected. What is particularly concerning is that even when I revert to loading the old program (which previously worked fine), the MCU still does not function correctly.
Details:
MCU: STM32F4xx
Process:
I load Program A into the MCU -> MCU operates normally.
Then, I load Program B into the MCU. In this program, I created an array and sent data through this array. The program did not run correctly.
When I revert and reload Program A (which previously worked well), the MCU still does not operate as expected.
Context:
The issue occurs during the setup of the SPI protocol. The first program runs normally, but the second program encounters issues when handling data through an array. After experiencing problems with the second program, reverting to use the first program does not restore the MCU to its expected operational state.
Questions:
Has anyone encountered a similar issue?
What could be the potential causes and how can it be resolved?
programming with arm-none-eabi-gcc, Code Loaded via GDB and OpenOCD
Sorry for not having images, but this is what I can describe
Quốc Tuấn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.