当前位置:网站首页>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 边栏推荐
- Wechat forum exchange applet system graduation design (3) background function
- Some parameters of Haikang IPC
- Txt file virus
- Grid
- 今日创见|企业促进创新的5大关键要素
- Dynamics 365 查找字段过滤
- There is another problem just online... Warm
- OC variable parameter transfer
- 微信论坛交流小程序系统毕业设计毕设(4)开题报告
- Personal statement of testers from Shuangfei large factory: is education important for testers?
猜你喜欢

Line test - graphic reasoning -7- different graphic classes

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

Sword finger offer 55 - I. depth of binary tree

微生物健康網,如何恢複微生物群落

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

Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!

Online interview, how to better express yourself? In this way, the passing rate will be increased by 50%~

Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2

Microbial health network, how to restore microbial communities

Database daily question --- day 22: last login
随机推荐
网络安全-sqlmap与DVWA爆破
kubernetes的简单化数据存储StorageClass(建立和删除以及初步使用)
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2
What is ADC sampling rate (Hz) and how to calculate it
[language programming] exe virus code example
It's no exaggeration to say that this is the most user-friendly basic tutorial of pytest I've ever seen
JMeter-接口自动化测试读取用例,执行并结果回写
每日一题——PAT乙级1002题
What is fake sharing after filling the previous hole?
为什么市场需要低代码?
14、 Two methods of database export and import
Brush question 6
GEE(三):计算两个波段间的相关系数与相应的p值
Wechat forum exchange applet system graduation design (3) background function
聊聊 Dart 的空安全 (null safety) 特性
./ setup. Insufficient sh permission
Specific method example of V20 frequency converter manual automatic switching (local remote switching)
Dynamics 365 查找字段过滤
30讲 线性代数 第五讲 特征值与特征向量
Why is network i/o blocked?