Entering this infinite loop is actually because a certain interrupt is configured in your program. When the conditions are met, the interrupt occurs, but your program does not have a service function for this interrupt.
__iar_unhandled_exception:
0084DA 9D NOP
0084DB 20FD JRA __iar_unhandled_exception
Solution:
1. Find out which interrupt is configured in the program. If the interrupt is not needed, turn off its interrupt enable directly.
2. If this interrupt is what you need, implement its corresponding interrupt service function correctly. I did not implement the corresponding interrupt service function correctly, which led to this infinite loop.
3. Directly turn off the general interrupt disableInterrupts(), which can also temporarily solve this problem, but it will affect the use of the interrupt.
Previous article:Summary of STM8 operation LCD5110
Next article:STM8L learning while debugging
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- How Lucid is overtaking Tesla with smaller motors
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- MicroPython Hands-on (29) - SIoT of the Internet of Things
- 【Smart water cup holder】06-Work submission
- Here the role of the voltage regulator + diode combination
- A small bug in mpy on ESP32/ESP8266
- Explain the circuit diagram, thanks
- AT32F425-Evaluation Report-CANOpen Porting 05
- RSIC-V IDE MRS User Notes (V): Code Erasure Problem Before Debugging
- Auto repair oscilloscope measuring the oxygen sensor signal of the car zirconium oxygen belt heater
- Can the same-phase AC amplifier circuit be used for low frequencies?
- Summary: Reading notes on "Operational Amplifier Parameter Analysis and LTspice Application Simulation"