The interrupt will no longer be triggered after the embedded blue bridge cup program is executed/* Go to infinite loop when Hard Fault exception occurs */

An interesting phenomenon occurred when the interrupt was configured today, which
is to make the interrupt flash once every second, and the corresponding LED flashes once.
As a result, the program does not flicker after the program is executed.
So the simulation jumps to the interrupt error function during simulation. There is such a statement
/* Go to infinite loop when Hard Fault exception occurs */
So I guess that the interrupt did not execute or conflicted
until I added a sentence to the last sentence of the program

while(1);

Can flash again awesome

The interrupt will no longer trigger after the program is executed

Guess you like

Origin blog.csdn.net/m0_46179894/article/details/108333210