当前位置:网站首页>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 completion (8) graduation design thesis template
- The wonderful relationship between message queue and express cabinet
- 消费品企业敏捷创新转型案例
- 微信论坛交流小程序系统毕业设计毕设(1)开发概要
- ADC采样率(HZ)是什么怎么计算
- 智慧社區和智慧城市之間有什麼异同
- [language programming] exe virus code example
- Binary tree
- 微信论坛交流小程序系统毕业设计毕设(4)开题报告
- DTC社群运营怎么做?
猜你喜欢

数据库每日一题---第22天:最后一次登录

【刷题记录】3. 无重复字符的最长子串

Personal statement of testers from Shuangfei large factory: is education important for testers?

Sword finger offer 27 Image of binary tree

消息队列与快递柜之间妙不可言的关系

肠道里的微生物和皮肤上的一样吗?

数字藏品加速出圈,MarsNFT助力多元化文旅经济!

Specific method example of V20 frequency converter manual automatic switching (local remote switching)

PMP project management exam pass Formula-1

Wechat forum exchange applet system graduation design completion (6) opening defense ppt
随机推荐
网络安全-钓鱼
消息队列与快递柜之间妙不可言的关系
[untitled] reprint melting ice - track icedid server with a few simple steps
Network security - information query of operating system
PCL . VTK files and Mutual conversion of PCD
Wechat forum exchange applet system graduation design (5) assignment
Sword finger offer 27 Image of binary tree
十四、数据库的导出和导入的两种方法
微信论坛交流小程序系统毕业设计毕设(4)开题报告
Line test graph reasoning graph group class
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
聊聊 Dart 的空安全 (null safety) 特性
Microbial health network, how to restore microbial communities
What is ADC sampling rate (Hz) and how to calculate it
GEE(三):计算两个波段间的相关系数与相应的p值
Knowledge drop - PCB manufacturing process flow
Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板
PMP项目管理考试过关口诀-1
Microbial Health Network, How to restore Microbial Communities