OpenHarmony开发者论坛
标题:
kernel_liteos_m移植到stm32h743xih6接管中断在内核初始化阶段的中断阶段发生异常
[打印本页]
作者:
qq_62513284
时间:
11 小时前
标题:
kernel_liteos_m移植到stm32h743xih6接管中断在内核初始化阶段的中断阶段发生异常
[md]kernel_liteos_m移植到stm32h743xih6使用不接管中断正常运行,使能 `LOSCFG_USE_SYSTEM_DEFINED_INTERRUPT` 1修改成接管中断的方式在内核初始化阶段的中断阶段发生异常,断点调试在 `LOS_KernelInit`函数154行 `ArchInit`函数里 `HalHwiInit`函数423行的 `NVIC_SetPriorityGrouping(OS_NVIC_AIRCR_PRIGROUP);`进入 `UsageFault_Handler`异常中断
控制台输出
1. ```
entering kernel init...
*************Exception Information**************
Type = 3601
ThrdPid = 54
Phase = exc in hwi
FaultAddr = 0xabababab
Current task info:
Exception occur in interrupt phase!
Exception reg dump:
PC = 0x0
LR = 0xffffffe9
SP = 0x2407fda8
R0 = 0x240012f0
R1 = 0xc
R2 = 0x0
R3 = 0x240012f8
R4 = 0x240012f8
R5 = 0x0
R6 = 0x0
R7 = 0x2407fe10
R8 = 0x0
R9 = 0x0
R10 = 0x0
R11 = 0x0
R12 = 0x240012f8
PriMask = 0x0
xPSR = 0x10046
TID Priority Status StackSize WaterLine StackPoint TopOfStack EventMask SemID TaskEntry name
--- -------- -------- --------- --------- ---------- ---------- --------- ------ ---------- ----
0 0 Ready 0x400 0x44 0x24002624 0x24002268 0 0xffff 0x800e4b9 Swt_Task
1 31 Ready 0x180 0x44 0x240027ac 0x24002670 0 0xffff 0x800ecf9 IdleCore000
OS exception NVIC dump:
interrupt enable register, base address: 0xe000e100, size: 0x20
0x0 0x400020 0x0 0x0 0x0 0x0 0x0 0x0
interrupt pending register, base address: 0xe000e200, size: 0x20
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
interrupt active register, base address: 0xe000e300, size: 0x20
0x0 0x400000 0x0 0x0 0x0 0x0 0x0 0x0
interrupt priority register, base address: 0xe000e400, size: 0xf0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0xf00000 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0
interrupt exception register, base address: 0xe000ed18, size: 0xc
0x0 0x0 0xf0000000
interrupt shcsr register, base address: 0xe000ed24, size: 0x4
0x70000
interrupt control register, base address: 0xe000ed04, size: 0x4
0x400f003
memory pools check:
system heap memcheck over, all passed!
memory pool check end!
```
[/md]
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5