• Lv0
    粉丝0

积分0 / 贡献0

提问1答案被采纳0文章0

作者动态

    kernel_liteos_m移植到stm32h743xih6接管中断在内核初始化阶段的中断阶段发生异常

    qq_62513284 显示全部楼层 发表于 8 小时前

    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!
      

    您尚未登录,无法参与评论,登录后可以:
    参与开源共建问题交流
    认同或收藏高质量问答
    获取积分成为开源共建先驱

    Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

    返回顶部