CubeMX生成TrueStudio的FreeRTOS工程,在调试设置中打开FreeRTOS,

 

TrueStudio 的FreeRTOS插件

直接下载调试会给出警告

TrueStudio 的FreeRTOS插件

需要设置脚本

这个警告我找了很久,没有找到解决方案,按照小白的逻辑,我勾选了FreeRTOS啊,为什么就是插件用不了,还要写脚本??

 

总于找到了,还是去官方论坛吧。

Cannot use RTOS aware debugging

 

TrueStudio 的FreeRTOS插件

在mian函数设置断点,然后运行线程2,什么是thread2?(没登录好像看不了图片)

Is the "thread2" a specific name or just an example? Because now i get:

I had a typo. Change "thread2" to "thread 2".

 

OK,大概了解了,于是我尝试如下脚本:

# Set a breakpoint at main().

tbreak main

thread 1

# Set a breakpoint at start_usr_task().

tbreak start_usr_task

thread 2

调试运行,没有警告,但还是没出来。嗯,因为我没有使能可视化追踪和运行时间统计功能。去CubeMX勾选一下,调试运行,可以了。

TrueStudio 的FreeRTOS插件

TrueStudio 的FreeRTOS插件

 

 

TrueStudio对STM32免费很久了啊,可好像用的人不多啊,哈哈。看不起我Eclipse 啊??

坑太多。Bootloader也是,MDK编译的Bootloader,TrueStudio编译的APP,死活不跳转到APP,一样的代码用MDK编译APP,就可以跳转。。。。。

 

参考:

Cannot use RTOS aware debugging

FreeRTOS系列第16篇---可视化追踪调试

相关文章:

  • 2021-10-17
  • 2022-01-25
  • 2021-10-21
  • 2022-12-23
  • 2021-07-18
  • 2021-07-24
  • 2021-05-24
  • 2021-11-17
猜你喜欢
  • 2021-10-09
  • 2022-12-23
  • 2021-12-26
  • 2021-04-27
  • 2021-04-18
  • 2021-06-02
  • 2021-03-26
相关资源
相似解决方案