当前位置:网站首页>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 边栏推荐
- 云原生正在吞噬一切,开发者该如何应对?
- 谷歌浏览器怎么登录及开启同步功能
- 高效的S2B2C电商系统,是这样帮助电子材料企业提升应变能力的
- USB(十五)2022-04-14
- V-for traversal object
- Explain
- 2021icpc Shanghai h.life is a game Kruskal reconstruction tree
- 生鲜行业数字化采购管理系统:助力生鲜企业解决采购难题,全程线上化采购执行
- Vulnerability recurrence ----- 49. Apache airflow authentication bypass (cve-2020-17526)
- Talk about the design and implementation logic of payment process
猜你喜欢

云原生正在吞噬一切,开发者该如何应对?

js 获取对象的key和value

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

Binary tree

Installing spss25

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

LDO voltage stabilizing chip - internal block diagram and selection parameters

Oracle-数据库的备份与恢复

成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚

产业共融新势能,城链科技数字峰会厦门站成功举办
随机推荐
When copying something from the USB flash disk, an error volume error is reported. Please run CHKDSK
RE1 attack and defense world reverse
Oracle-数据库的备份与恢复
Unity3D学习笔记5——创建子Mesh
成年人只有一份主业是要付出代价的,被人事劝退后,我哭了一整晚
Description of longitude and latitude PLT file format
CAIP2021 初赛VP
Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
LeeCode -- 6. Zigzag transformation
Network security -burpsuit
MATLAB signal processing [Q & A essays · 2]
Force deduction solution summary 648 word replacement
Freelink open source call center design idea
【微服务|SCG】gateway整合sentinel
MySQL Index Optimization Practice II
Opencv scalar passes in three parameters, which can only be displayed in black, white and gray. Solve the problem
七月第一周
USB (十七)2022-04-15
Why does the market need low code?
Explain