当前位置:网站首页>USB (XVIII) 2022-04-17
USB (XVIII) 2022-04-17
2022-07-07 23:25:00 【Xiao Xiao and evening rain Xiao Xiao】
Cyusb3014 Summary of development experience
1. Firmware development
1.1 Print debugging information through serial port
During firmware development , You can use the serial port to print debugging information , Get instructions on code execution . In firmware , The serial port configuration for printing debugging information is as follows , The baud rate is set to 112500, The stop bit is 1, No parity bit . In the process of programming , It can be called in the appropriate place CyU3PDebugPrint Function print information , This function prototype can be viewed in firmware Engineering . The official code of cypress is very standard , Many places will check the validity of the return value and print relevant information , In the process of data transmission , You can pay attention to the serial port information , See if there is data overflow or loss , As shown in the figure below .
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
边栏推荐
- 家用电器行业渠道商协同系统解决方案:助力家电企业快速实现渠道互联网化
- 伸展树(一) - 图文解析与C语言实现
- 系统架构设计师备考经验分享:论文出题方向
- The 19th Zhejiang Provincial College Programming Contest 2022 f.easyfix chairman tree
- Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
- The text editor of markdown class should add colors to fonts (including typora, CSDN, etc.)
- CXF call reports an error. Could not find conduct initiator for address:
- The 19th Zhejiang Provincial College Programming Contest VP record + supplementary questions
- Redhat下安装fedora
- Description of longitude and latitude PLT file format
猜你喜欢
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
JS get the key and value of the object
Ros2 topic (03): the difference between ros1 and ros2 [02]
Specific method example of V20 frequency converter manual automatic switching (local remote switching)
Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
In the field of software engineering, we have been doing scientific research for ten years!
Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram
MySQL Index Optimization Practice II
Description of longitude and latitude PLT file format
海内外技术人们“看”音视频技术的未来
随机推荐
Experience sharing of system architecture designers in preparing for the exam: the direction of paper writing
Solution: prompt "unsupported video format" when inserting avi format video into the message
USB(十四)2022-04-12
Installing spss25
Solve the problem of duplicate request resource paths /o2o/shopadmin/o2o/shopadmin/getproductbyid
漏洞复现----49、Apache Airflow 身份验证绕过 (CVE-2020-17526)
PCI-Express接口的PCB布线规则
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
Wechat forum exchange applet system graduation design (5) assignment
移动端异构运算技术 - GPU OpenCL 编程(基础篇)
聊聊支付流程的设计与实现逻辑
Matlab-SEIR传染病模型预测
高效的S2B2C电商系统,是这样帮助电子材料企业提升应变能力的
伸展树(一) - 图文解析与C语言实现
UE4_UE5结合罗技手柄(F710)使用记录
Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
Binary tree
14、 Two methods of database export and import
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
Unity3d learning notes 4 - create mesh advanced interface