当前位置:网站首页>USB (十八)2022-04-17
USB (十八)2022-04-17
2022-07-07 21:50:00 【晓晓暮雨潇潇】
Cyusb3014开发经验总结
1.固件开发
1.1串口打印调试信息
在固件开发时,可以利用串口打印调试信息,获得代码执行情况的指示。固件中,用于打印调试信息的串口配置如下,其中波特率的设置为112500,停止位为1,无校验位。在程序设计过程中,可在适当位置调用CyU3PDebugPrint函数打印信息,固件工程中可查看该函数原型。赛普拉斯官方代码非常规范,很多地方会进行返回值有效性检测并打印相关信息,在数据发送过程中,可以关注串口信息,看是否数据有溢出或丢失,如下图所示。
CyU3PUartConfig_t uartConfig;
CyU3PMemSet ((uint8_t *)&uartConfig, 0, sizeof (uartConfig));
uartConfig.baudRate = CY_U3P_UART_BAUDRATE_115200;
uartConfig.stopBit = CY_U3P_UART_ONE_STOP_BIT;
uartConfig.parity = CY_U3P_UART_NO_PARITY;
uartConfig.txEnable = CyTrue;
uartConfig.rxEnable = CyFalse;
uartConfig.flowCtrl 边栏推荐
- 微生物健康網,如何恢複微生物群落
- QT graphicsview graphical view usage summary with flow chart development case prototype
- oc 可变參数传递
- Wechat forum exchange applet system graduation design (5) assignment
- GEE(三):计算两个波段间的相关系数与相应的p值
- 小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
- 网络安全-sqlmap与DVWA爆破
- Gbu1510-asemi power supply special 15A rectifier bridge gbu1510
- Network security sqlmap and DVWA explosion
- There is another problem just online... Warm
猜你喜欢

Wechat forum exchange applet system graduation design completion (8) graduation design thesis template

Wechat forum exchange applet system graduation design completion (7) Interim inspection report

The wonderful relationship between message queue and express cabinet

Why is network i/o blocked?

Cases of agile innovation and transformation of consumer goods enterprises

It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen

CTF exercise

How to operate DTC community?

leetcode-520. 检测大写字母-js

Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
随机推荐
OC variable parameter transfer
网络安全-对操作系统进行信息查询
U盘拷贝东西时,报错卷错误,请运行chkdsk
Wechat forum exchange applet system graduation design (3) background function
Introduction to redis and jedis and redis things
I wish you all the best and the year of the tiger
[untitled] reprint melting ice - track icedid server with a few simple steps
./ setup. Insufficient sh permission
Transparent i/o model from beginning to end
How to operate DTC community?
【刷题记录】3. 无重复字符的最长子串
Quelles sont les similitudes et les différences entre les communautés intelligentes et les villes intelligentes?
ArcGIS:矢量要素相同字段属性融合的两种方法
JS triangle
Bit operation
安踏DTC | 安踏转型,构建不只有FILA的增长飞轮
iNFTnews | NFT技术的广泛应用及其存在的问题
ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值
Statistical method for anomaly detection
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT