为什么 FreeRTOS 在 osKernelStart 声明后执行“main”代码?代码调试

问题描述

检查 THIS 答案让我得出结论,我可能做错了什么 关于 FreeRTOS 处理。这是它在 SWV 控制台中的样子

enter image description here

代码本身几乎是由 CubeMX 新鲜生成的 没有关于处理任务的任何特殊变化 (它包含无限循环),osDelays 等于一秒。

enter image description here

  • 它不应该再进入 main 函数吗?
  • 可能是什么问题?

freertos.c

enter image description here

CubeMX

enter image description here

enter image description here

Multiple errors reported.

1) Failed to execute MI command:
-var-create - * vApplicationStackOverflowHook
Error message from debugger back end:
-var-create: unable to create variable object

2) Failed to execute MI command:
-var-create - * vApplicationStackOverflowHook
Error message from debugger back end:
-var-create: unable to create variable object

3) Failed to execute MI command:
-data-evaluate-expression vApplicationStackOverflowHook
Error message from debugger back end:
No symbol "vApplicationStackOverflowHook" in current context.

4) Failed to execute MI command:
-var-create - * vApplicationStackOverflowHook
Error message from debugger back end:
-var-create: unable to create variable object

5) Unable to create variable object

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)