HarmonyOS鸿蒙Next中stm32f4移植lite-m,log输出Exception Information信息

HarmonyOS鸿蒙Next中stm32f4移植lite-m,log输出Exception Information信息

user main!
entering kernel init...
Creat APP
hilog will init.
*************Exception Information**************
Type     = 11
ThrdPid  = 33
Phase    = exc in task
FaultAddr = 0xabababab
Current task info:
Task name = (null)
Task ID   = 33
Task SP   = (nil)
Task ST   = 0x0
Task SS   = 0x0
Exception reg dump:
PC       = 0x802c592
LR       = 0x802bf61
SP       = 0x2001bfb0
R0       = 0x0
R1       = 0x1
R2       = 0x20004c10
R3       = 0x400
R4       = 0x80304d8
R5       = 0x0
R6       = 0x0
R7       = 0x2001bff0
R8       = 0x0
R9       = 0x0
R10      = 0x0
R11      = 0x0
R12      = 0x20004c04
PriMask  = 0x0
xPSR     = 0x41000000
 TID Priority  Status StackSize WaterLine StackPoint TopOfStack EventMask  SemID TaskEntry name
 --- -------- -------- --------- --------- ---------- ---------- --------- ------ ----------
  0      0     Ready     0x1000        0xcc 0x200092cc 0x20008398         0 0xffff 0x8018d45 Swt_Task
  1     31     Ready     0x1000        0xcc 0x2000a30c 0x200093d8         0 0xffff 0x8019201 IdleCore000
  2      9     Ready       0x100        0xcc 0x2000a41c 0x2000a3e8         0 0xffff 0x800c4fd hdf_gpio_test1_task
  3     10     Ready       0x100        0xcc 0x2000a524 0x2000a4f0         0 0xffff 0x800c555 hdf_gpio_test2_task
  4      9     Ready       0x100        0xcc 0x2000a634 0x2000a600         0 0xffff 0x800c66d hdf_ADC_task
OS exception NVIC dump:
interrupt enable register, base address: 0xe000e100, size: 0x20
0x0 0x20 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 0x0 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 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
0x70008
interrupt control register, base address: 0xe000ed04, size: 0x4
0x400f806
memory pools check:
system heap memcheck over, all passed!
memory pool check end!
stm32f4移植lite-m os时,Log输出这个信息,这个信息该怎么定位到问题函数上

更多关于HarmonyOS鸿蒙Next中stm32f4移植lite-m,log输出Exception Information信息的实战教程也可以访问 https://www.itying.com/category-93-b0.html

1 回复

更多关于HarmonyOS鸿蒙Next中stm32f4移植lite-m,log输出Exception Information信息的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


在HarmonyOS鸿蒙Next中移植STM32F4并使用lite-m时,若log输出Exception Information信息,可能是由于以下原因:

  1. 内存配置问题:检查liteos_m/config.mk中的内存配置,确保LOSCFG_SYS_EXC_INFO已启用,并正确配置了LOSCFG_PLATFORM_EXC

  2. 中断配置错误:确保中断向量表正确配置,特别是HardFault、MemManage等异常处理函数。

  3. 栈溢出:检查任务栈大小,确保足够大以避免栈溢出。

  4. 硬件问题:检查硬件连接,确保STM32F4的时钟、电源等配置正确。

建议逐步排查以上问题,确保系统配置与硬件匹配。

回到顶部