硬汉嵌入式论坛

 找回密码
 立即注册
查看: 5024|回复: 3
收起左侧

[ThreadX全家桶] 尝试给ThreadX做个MDK的调试组件,看来是可行的

[复制链接]

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115804
QQ
发表于 2021-3-4 09:11:23 | 显示全部楼层 |阅读模式
MDK专门给RTX5的调试组件,有个专门的SVD文件
RTX5.scvd (124.87 KB, 下载次数: 8)

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <component_viewer schemaVersion="1.2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="Component_Viewer.xsd">
  3.   <component name="CMSIS:RTOS2:Keil RTX5" shortname="RTX5" version="5.5.2"/>    <!-- name and version of the component -->

  4.   <typedefs>
  5.     <!-- Attributes structure for thread -->
  6.     <typedef name="osThreadAttr_t" info="" size="36">
  7.       <member name="name"       type="uint32_t" offset="0"  info="name of the thread (type is const char *)"/>
  8.       <member name="attr_bits"  type="uint32_t" offset="4"  info="attribute bits"/>
  9.       <member name="cb_mem"     type="uint32_t" offset="8"  info="memory for control block (type is void *)"/>
  10.       <member name="cb_size"    type="uint32_t" offset="12" info="size of provided memory for control block"/>
  11.       <member name="stack_mem"  type="uint32_t" offset="16" info="memory for stack (type is void *)"/>
  12.       <member name="stack_size" type="uint32_t" offset="20" info="size of stack"/>
  13.       <member name="priority"   type="uint32_t" offset="24" info="initial thread priority (type is osPriority_t)"/>
  14.       <member name="tz_module"  type="uint32_t" offset="28" info="TrustZone module identifier (type is TZ_ModuleId_t)"/>
  15.       <member name="reserved"   type="uint32_t" offset="32" info="reserved (must be 0)"/>
  16.     </typedef>

  17.     <!-- Attributes structure for timer -->
  18.     <typedef name="osTimerAttr_t" info="" size="16">
  19.       <member name="name"      type="uint32_t" offset="0"  info="name of the timer (type is const char *)"/>
  20.       <member name="attr_bits" type="uint32_t" offset="4"  info="attribute bits"/>
  21.       <member name="cb_mem"    type="uint32_t" offset="8"  info="memory for control block (type is void *)"/>
  22.       <member name="cb_size"   type="uint32_t" offset="12" info="size of provided memory for control block"/>
  23.     </typedef>
复制代码


这个是可以用户自己定义添加的,此位置添加

1.png

这样用户就可以自己方便的做出这种效果来:



回复

使用道具 举报

0

主题

40

回帖

40

积分

新手上路

积分
40
发表于 2021-3-4 13:12:56 | 显示全部楼层
可行的话,这里完美了
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
115804
QQ
 楼主| 发表于 2021-3-5 08:34:31 | 显示全部楼层
cms277415310 发表于 2021-3-4 13:12
可行的话,这里完美了

准备做一个。
回复

使用道具 举报

4

主题

1445

回帖

1457

积分

至尊会员

积分
1457
发表于 2021-3-5 17:17:46 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-5-20 04:35 , Processed in 0.360802 second(s), 27 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表