よくある質問
- M051 ベースシリーズ(95)
- M0518シリーズ(97)
- M0519シリーズ(43)
- M0564 シリーズ(1)
- ミニ 51 ベースシリーズ(90)
- ナノ 100/102 ベースシリーズ(101)
- Nano103 ベースシリーズ(10)
- ナノ 110/112 LCD シリーズ(100)
- ナノ 120 USB シリーズ(111)
- ナノ 130 アドバンストシリーズ(110)
- NUC029 シリーズ(94)
- NUC100/200 アドバンストシリーズ(102)
- NUC120/122/123/220 USB シリーズ(116)
- NUC121/125シリーズ(1)
- NUC126 USB シリーズ(2)
- NUC130/230 CAN シリーズ(103)
- NUC131/NUC1311 CAN シリーズ(98)
- NUC140/240 コネクティビティシリーズ(114)
製品
機能
+
よくある質問
How does a user check the state before entering hard fault when a hard fault occurs on a M0/M4 microcontroller (MCU)? 日付:2015-10-16
Since the hard fault is an exception interrupt, user can search code address from the memory address recorded by a stack pointer before entering a hardfault handler, and find the hard fault according to the address.
The steps are as follows:
- Get a starting address of the stack pointer in Debug mode;
- Enter the starting address to query stack of information in the memory;
- The stacked 7th address is the code address before entering an interrupt;
- View the content of the code address in the program window, which is the state before entering the hard fault.

• Keil RVMDK:

• IAR EWARM:

| 製品: | マイクロコントローラ ,Arm Cortex-M0 MCU ,M051 ベースシリーズ ,M0518シリーズ ,M0519シリーズ ,ミニ 51 ベースシリーズ ,ナノ 100/102 ベースシリーズ ,ナノ 110/112 LCD シリーズ ,ナノ 120 USB シリーズ ,ナノ 130 アドバンストシリーズ ,NUC029 シリーズ ,NUC100/200 アドバンストシリーズ ,NUC120/122/123/220 USB シリーズ ,NUC130/230 CAN シリーズ ,NUC131/NUC1311 CAN シリーズ ,NUC140/240 コネクティビティシリーズ ,Arm Cortex-M4 MCU ,M451 Base シリーズ ,M451M シリーズ ,M452 USB シリーズ ,M453 CAN シリーズ ,NUC442/472 シリーズ ,NUC505 シリーズ |
|---|---|
| アプリケーション: | |
| 機能: | Software and Tools,Development-Environment,IAR,Keil |