当前位置:网站首页>How to check the variable waveform when debugging the program? Look here
How to check the variable waveform when debugging the program? Look here
2022-06-11 00:05:00 【Tianwaifeixian CUG】

When we debug the single chip program , You often need to view the value of a variable or array , In general , Can pass “Add xxx to Watch” Check it out. , Or view the memory directly . But sometimes , such as ADC When sampling , It is not intuitive to simply look at the value of variables , It is very convenient to view the waveform changes of the whole array .
There are many ways to view waveforms , It is transmitted to the upper computer through the serial port to view 《 Serial port waveform display software SerialChart Use 》, Or through the debugging tool 《Jlink One of the skills RTT and J-Scope》.
Today, let's introduce another way to view waveforms , A debugging assistant software :Keil Array Visualization. Just look at the name , The software is compatible with Keil The use of .
The software is very convenient to use , First of all, configure Keil. stay Edit->Configuration Under menu , Enable the options in the following figure .

Then connect the emulator , Burn the program , Enter debugging state .
Open software , Enter the port number , Click to connect , The following will prompt whether the connection is successful .

After successful connection , Enter the name or address of the variable you want to view (16 Base address ); Enter the size of the variable to be viewed ( The size is in bytes ); Select data type ; Select byte order (STM32 In small end format ). Then click read to view the waveform . You can also enter the interval for automatic reading , Click read , Start automatic reading .
With ADC Sampling as an example , The sampled data is stored in ADC_Buf Array , The array length is 128, The data type is short,0.5 Read once per second , The waveform diagram is as follows: :

The software also supports waveform scaling 、 Data export and other functions .
Download link :
link :https://pan.baidu.com/s/139dSa9ynRx4kiBzTKKwhSw
Extraction code :m4ph
In fact, the software is also based on Keil Provided interface development , Friends who are interested in exploring by themselves can see here :
https://developer.arm.com/documentation/kan198/latest/
Welcome to my Technology Group

Recommended reading :
Avoid the pit and see !STM32G0 Series multichannel ADC The problem of
STM32 Timer application collection
ADS1220 Several applications of ( Including source code )
Welcome to the official account " Development of Embedded Technology ", You can leave a message for me backstage . If you think the official account is helpful to you , Also welcome to recommend and share with others .
边栏推荐
- Exception 0xc00000005 code occurred when LabVIEW called DLL
- LabVIEW determines the position of the control in the display coordinate system
- File转为MultipartFile的方法
- [fireworks in the sky] it's beautiful to light up the night sky with gorgeous fireworks. A programmer brought a fireworks show to pay New Year's greetings to everyone~
- [pyGame] can the little dinosaur on chrome be played with code? It looks like fun~
- Collection delete element technique removeif
- Binary tree pruning
- Difference between oscilloscope and spectrum analyzer
- 【 pygame Games 】 don't find, Leisure Games Theme come 丨 Bubble Dragon applet - - Leisure Games Development recommendation
- Leetcode-209 minimum length subarray
猜你喜欢

【Pygame小游戏】这款经典的炸弹人超能游戏上线,你爱了嘛?(附源码)

【Pygame小游戏】不怕你走不过系列:极致AI走迷宫,学习完带你打开新世界大门~(附游戏源码)

Unity script cannot display Chinese comments of C # source code or the script created by vs does not have comments of C # source code

【Pygame小游戏】趣味益智游戏 :打地鼠,看一下能打多少只呢?(附源码)

LabVIEW和VDM提取色彩和生成灰度图像

LabVIEW使用MathScript Node或MATLAB脚本时出现错误1046

【自动回复小脚本】新年快乐,每一个字都是我亲自手打的,不是转发哦~

【Pygame小游戏】别找了,休闲游戏专题来了丨泡泡龙小程序——休闲游戏研发推荐

Basic operation of OpenCV actual combat image: this effect amazed everyone (with code analysis)

LabVIEW中NI MAX中缺少串口
随机推荐
安全生产月,黄埔开展燃气安全进商铺宣传活动
插入排序
In the month of safety production, Huangpu launched a publicity campaign for gas safety in shops
LabVIEW调用DLL时出现异常0xc0000005代码
Leetcode-209 minimum length subarray
Is the financial management of qiniu school reliable and safe
LabVIEW获取Clamp函数找到的所有点的信息
【Pygame小游戏】Chrome上的小恐龙竟可以用代码玩儿了?它看起来很好玩儿的样子~
csdn每日一练——有序表的折半查找
CSDN daily practice - find the closest element and output the subscript
Typecho blog site wide deployment of Tencent cloud CDN tutorial - Xingze V Club
LabVIEW get IMAQ get last event coordinates
How to generate automatic references (simple drawings)
Multipartfile rename upload
LabVIEW或MAX下的VISA测试面板中串口无法工作
Openresty installation
Read it once: talk about MySQL master-slave
LabVIEW执行串行回送测试
The same customized right-click menu beautification on this site - Xingze V Club
[appearance detection artifact] come on, please show me your unique skill (is this appearance worthy of the audience?)