Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
SystemView
SystemView线程名字不显示
发布于 2025-02-13 17:34:19 浏览:36
订阅该版
这两天开始弄这个Systemview, 调试起来后,任务的名字是乱码,不显示任务的名称 如下图: ![screenshot_image.png](https://oss-club.rt-thread.org/uploads/20250213/4d52dbc282e06b5e2e16e8ee9a72b81c.png.webp) 为了解决这个问题 只需要修改代码: ``` C static void _cbSendTaskList(void) { struct rt_thread *thread; struct rt_thread *thread2; struct rt_list_node *node; struct rt_list_node *list; struct rt_object_information *info; info = rt_object_get_information(RT_Object_Class_Thread); list = &info->object_list; tidle = rt_thread_idle_gethandler(); rt_enter_critical(); for (node = list->next; node != list; node = node->next) { #if defined(RT_VERSION_CHECK) && (RTTHREAD_VERSION >= RT_VERSION_CHECK(5, 0, 1)) thread = rt_list_entry(node, struct rt_thread, tlist); #else thread = rt_list_entry(node, struct rt_thread, list); #endif /* skip idle thread */ if (thread != tidle) { //TODO 不知道为什么list里面取出来的值不对,需要偏移一下 thread2 = (int)thread+0x00000020; rt_kprintf("test-2 thread=%p 2=0x%p \n", thread, thread2); _cbSendTaskInfo(thread2); } } rt_exit_critical(); } ``` 修改后的图像: ![screenshot_image.png](https://oss-club.rt-thread.org/uploads/20250213/749905b66e23e2e415e0d9594b5391aa.png.webp) 感谢人员 dujunqiu: https://github.com/RT-Thread-packages/SEGGER_SystemView/issues/9 为了后来者,特写这个文档。
0
条评论
默认排序
按发布时间排序
登录
注册新账号
关于作者
swet123
ztlchina@foxmail.com
文章
1
回答
61
被采纳
2
关注TA
发私信
相关文章
1
关于系统资源占用率的问题(J-Link SystemViewer)
2
SystemView 分析工具 使用疑问
3
关于RTthread使用env工具配置systemview.
4
SystemView
5
systemview的版本问题!
6
SystemView 遇到问题
7
systemview配置资料从哪里找
8
有没有SystemView具体的配置过程
9
使用rtthread systemview工程报错
10
关于systermview
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
I2C_IIC
ESP8266
UART
WIZnet_W5500
ota在线升级
cubemx
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
RTT_逍遥
7
个答案
2
次被采纳
三世执戟
7
个答案
1
次被采纳
KunYi
6
个答案
1
次被采纳
winfeng
2
个答案
1
次被采纳
xiaorui
1
个答案
1
次被采纳
本月文章贡献
出出啊
1
篇文章
3
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
3
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
2
次点赞
回到
顶部
发布
问题
投诉
建议
回到
底部