当前位置:网站首页>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
边栏推荐
- 高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
- B_QuRT_User_Guide(37)
- leetcode-520. 检测大写字母-js
- Wechat forum exchange applet system graduation design completion (7) Interim inspection report
- Unity3d Learning Notes 6 - GPU instantiation (1)
- Solve the problem of duplicate request resource paths /o2o/shopadmin/o2o/shopadmin/getproductbyid
- ArcGIS: two methods of attribute fusion of the same field of vector elements
- System design overview
- Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
- Unity3D学习笔记6——GPU实例化(1)
猜你喜欢
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
ArcGIS: two methods of attribute fusion of the same field of vector elements
十三、系统优化
Wechat forum exchange applet system graduation design completion (4) opening report
Cloud native is devouring everything. How should developers deal with it?
包装行业智能供应链S2B2B商城解决方案:开辟电商消费新生态
七月第一周
Puce à tension stabilisée LDO - schéma de bloc interne et paramètres de sélection du modèle
Binary tree
Matlab 信号处理【问答随笔·2】
随机推荐
统计电影票房排名前10的电影并存入还有一个文件
Unity3d Learning Notes 6 - GPU instantiation (1)
做自媒体视频剪辑怎么赚钱呢?
【编译原理】词法分析设计实现
欢聚时代一面
648. 单词替换
USB(十四)2022-04-12
Vs extension tool notes
ArcGIS: two methods of attribute fusion of the same field of vector elements
JS get the key and value of the object
Unity3D学习笔记4——创建Mesh高级接口
给出一个数组,如 [7864, 284, 347, 7732, 8498],现在需要将数组中的数字拼接起来,返回「最大的可能拼出的数字」
re1攻防世界逆向
turbo intruder常用脚本
B_QuRT_User_Guide(37)
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
Unity3d learning notes 4 - create mesh advanced interface
Inftnews | web5 vs Web3: the future is a process, not a destination
Coreseek:第二步建索引及測试
13、 System optimization