当前位置:网站首页>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 边栏推荐
- Locate to the bottom [easy to understand]
- Introduction to anomaly detection
- Lecture 30 linear algebra Lecture 5 eigenvalues and eigenvectors
- Clean C disk
- Advantages and disadvantages of rest ful API
- Database daily question --- day 22: last login
- This time, let's clear up: synchronous, asynchronous, blocking, non blocking
- OC variable parameter transfer
- Line test - graphic reasoning -7- different graphic classes
- 今日创见|企业促进创新的5大关键要素
猜你喜欢

Wechat forum exchange applet system graduation design completion (1) development outline

开发那些事儿:Go加C.free释放内存,编译报错是什么原因?

Sword finger offer 27 Image of binary tree

Sword finger offer 55 - I. depth of binary tree

十三、系统优化

Microbial Health Network, How to restore Microbial Communities

Transparent i/o model from beginning to end

Wechat forum exchange applet system graduation design (3) background function

微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT

Develop those things: go plus c.free to free memory, and what are the reasons for compilation errors?
随机推荐
【微服务|SCG】gateway整合sentinel
GEE(三):计算两个波段间的相关系数与相应的p值
Cause analysis and solution of too laggy page of [test interview questions]
PMP项目管理考试过关口诀-1
opencv scalar传入三个参数只能显示黑白灰问题解决
2022 words for yourself
kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
网络安全-永恒之蓝
DTC社群运营怎么做?
网络安全-对操作系统进行信息查询
What is fake sharing after filling the previous hole?
网格(Grid)
Sword finger offer 55 - I. depth of binary tree
微信论坛交流小程序系统毕业设计毕设(2)小程序功能
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2
安踏DTC | 安踏转型,构建不只有FILA的增长飞轮
Introduction to redis and jedis and redis things
[untitled] reprint melting ice - track icedid server with a few simple steps
解决:信息中插入avi格式的视频时,提示“unsupported video format”
oc 可变參数传递