Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
SystemView
使用rtthread systemview工程报错
发布于 2019-01-24 10:37:23 浏览:2844
订阅该版
synwit 的 SWM181CBT6芯片。M0内核。目前我个人已经移植过RT_Thread,能使用env工具。我最近想使用 systemview,就按照 rtt 的手册操作各位大佬,请问这怎么回事。 ![env配置2.png](https://oss-club.rt-thread.org/uploads/201901/24/103116ugn6557r3cbbcygq.png) ![env配置1.png](https://oss-club.rt-thread.org/uploads/201901/24/103116rv6uohscv0fqhojf.png) ![缺少函数定义.png](https://oss-club.rt-thread.org/uploads/201901/24/103300etbgtiywpg95zgv9.png) ![MDK报错.png](https://oss-club.rt-thread.org/uploads/201901/24/103300eyk3xbhh7pivm7qk.png) ![MDK5工程目录.png](https://oss-club.rt-thread.org/uploads/201901/24/103300nsvjfewerehferor.png)
查看更多
6
个回答
默认排序
按发布时间排序
flyboy
2019-01-24
Do my self();
楼主可以使用 rt-thread 源码中已有的工程,配置编译一下,看是不是也报同样的错误。例如:[https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f411-st-nucleo](https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32/stm32f411-st-nucleo)
zohar
2019-01-24
这家伙很懒,什么也没写!
>楼主可以使用 rt-thread 源码中已有的工程,配置编译一下,看是不是也报同样的错误。例如:https://github. ... --- F411这个没有报错,我发现了新问题。我这个工程中少一个文件
zohar
2019-01-24
这家伙很懒,什么也没写!
>F411这个没有报错,我发现了新问题。我这个工程中少一个文件 --- 只有把systemview版本选last才有这个文档。但是问题依旧存在
zohar
2019-01-24
这家伙很懒,什么也没写!
[i=s] 本帖最后由 zohar 于 2019-1-24 16:49 编辑 [/i] 通过修改代码,测试成功了。故另开一层说明修改内容: 1、env 配置工具中,Version 选择 lastest,这样工程中多了一个 SEGGER_RTT_DEVICE.c 文件 2、在 SysTick_Handler() 函数中添加代码 ``` SEGGER_SYSVIEW_TickCnt++; ``` 为了不报错误,在本文件中要定义变量 ``` unsigned int SEGGER_SYSVIEW_TickCnt; ``` 3、在 SEGGER_SYSVIEW_Config_RTThread.c 文件中添加如下代码: ``` extern unsigned int SEGGER_SYSVIEW_TickCnt; /********************************************************************* * * Defines, fixed * ********************************************************************** */ #define SCB_ICSR (*(volatile U32 *)(0xE000ED04uL)) // Interrupt Control State Register #define SCB_ICSR_PENDSTSET_MASK (1UL << 26) // SysTick pending bit #define SYST_RVR (*(volatile U32 *)(0xE000E014uL)) // SysTick Reload Value Register #define SYST_CVR (*(volatile U32 *)(0xE000E018uL)) // SysTick Current Value Register /********************************************************************* * * SEGGER_SYSVIEW_X_GetTimestamp() * * Function description * Returns the current timestamp in ticks using the system tick * count and the SysTick counter. * All parameters of the SysTick have to be known and are set via * configuration defines on top of the file. * * Return value * The current timestamp. * * * Additional information * SEGGER_SYSVIEW_X_GetTimestamp is always called when interrupts are * disabled. Therefore locking here is not required. */ U32 SEGGER_SYSVIEW_X_GetTimestamp(void) { U32 TickCount; U32 Cycles; U32 CyclesPerTick; // // Get the cycles of the current system tick. // SysTick is down-counting, subtract the current value from the number of cycles per // CyclesPerTick = SYST_RVR + 1; Cycles = (CyclesPerTick - SYST_CVR); // // Get the system tick count. // TickCount = SEGGER_SYSVIEW_TickCnt; // // If a SysTick interrupt is pending, re-read timer and adjust result // if ((SCB_ICSR & SCB_ICSR_PENDSTSET_MASK) != 0) { Cycles = (CyclesPerTick - SYST_CVR); TickCount++; } Cycles += TickCount * CyclesPerTick; return Cycles; } ``` 在文件末尾添加即可
flyboy
2019-01-25
Do my self();
难道是 M0内核的缘故
zohar
2019-03-18
这家伙很懒,什么也没写!
>难道是 M0内核的缘故 --- 是的。我也是看别人说的。M0内核太慢了。我最近调modbus。发现问题了。
撰写答案
登录
注册新账号
关注者
0
被浏览
2.8k
关于作者
zohar
这家伙很懒,什么也没写!
提问
1
回答
4
被采纳
0
关注TA
发私信
相关问题
1
关于系统资源占用率的问题(J-Link SystemViewer)
2
SystemView 分析工具 使用疑问
3
关于RTthread使用env工具配置systemview.
4
SystemView
5
systemview的版本问题!
6
SystemView 遇到问题
7
systemview配置资料从哪里找
8
有没有SystemView具体的配置过程
9
关于systermview
10
systemviewer 支持的硬件
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
机器人操作系统 (ROS2) 和 RT-Thread 通信
4
五分钟玩转RT-Thread新社区
5
国产MCU移植系列教程汇总,欢迎查看!
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
【学习分享】初探RT-Thread系统调度
2
FRDM-MCXN947 Flash实践--W25Q64
3
NXP MCXN947测评(一)开箱+环境配置
4
stm32f103的adc+dma多通道采集数据
5
恩智浦FRDM-MCX947上的 IIC(硬件) 实践
热门标签
RT-Thread Studio
串口
LWIP
Env
SPI
Bootloader
AT
ART-Pi
CAN总线
Hardfault
FinSH
USB
文件系统
RT-Thread
DMA
SCons
线程
RT-Thread Nano
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
WIZnet_W5500
ota在线升级
cubemx
I2C
flash
UART
packages_软件包
freemodbus
潘多拉开发板_Pandora
PWM
定时器
BSP
ADC
keil_MDK
socket
中断
编译报错
MicroPython
GD32
Debug
ulog
SDIO总线
msh
rt_mq_消息队列_msg_queue
C++_cpp
SFUD
本月问答贡献
xiaorui
20
个答案
3
次被采纳
Juggernaut
12
个答案
3
次被采纳
踩姑娘的小蘑菇
12
个答案
2
次被采纳
小小李sunny
10
个答案
2
次被采纳
crystal266
4
个答案
2
次被采纳
本月文章贡献
ZVML_9668
4
篇文章
6
次点赞
Lu_盼盼
4
篇文章
3
次点赞
Z_Y
3
篇文章
5
次点赞
ThinkCode
2
篇文章
2
次点赞
oxlm
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部