完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛扫一扫,分享给好友
|
在UART示例项目之后,我一直试图在从PSoC 5LP迁移项目后获得UPST在PSoC 6上的工作。下面是我必须初始化和启动UART的代码:
黄花菜; *启动UART操作。*/ InItStay= CysScBuUARTHItiIT(UARTHYHW,和UARTHI CONFIG,和UARTHI上下文); 如果(处于)状态!CycScBuUARTION成功 { 手把手(); } CycScBuUARTHI启用(UARTHYHW); UARTHART START(); //发送消息以验证COM端口是否正确连接 CysScBuUARTI PoStand(UARTHYHW,COM端口Openrn); CysScBuUARTI PuxStand(UARTHYHW,“按H或H为帮助rn”); 在我的初始化语句中有什么错误吗?当我对设备进行编程并将端口连接到一个终端时,它不会打印出“COM端口打开”或“按下H或H以寻求帮助”。 以上来自于百度翻译 以下为原文 Following the UART example project, I have been trying to get the UART working on the PSOC 6, after migrating a project from the PSOC 5lp. Below is the code I have to initialize and start the UART: cy_en_scb_uart_status_t init_status; /* Start UART operation. */ init_status = Cy_SCB_UART_Init(UART_HW, &UART_config, &UART_context); if(init_status!=CY_SCB_UART_SUCCESS) { handle_error(); } Cy_SCB_UART_Enable(UART_HW); UART_Start(); // Send message to verify COM port is connected properly Cy_SCB_UART_PutString(UART_HW, "COM Port Openrn"); Cy_SCB_UART_PutString(UART_HW, "Press H or h for helprn"); Is there something wrong within my initialization statement? When I program the device and have the port connected to a terminal, it does not print out "COM Port Open" or "Press H or h for help". |
|
相关推荐
6个回答
|
|
|
你有没有看过:HTTP://wwwyCysC./DooptToC/CODE-ExpRES/PSOC-6MCU-UART使用低级API?
HTTP://www. CyPress .COM/DISCONTION/CODE-ExpRES/PSOC-6MCU-UART使用低级API 以上来自于百度翻译 以下为原文 Have you looked at: http://www.cypress.com/documentation/code-examples/psoc-6-mcu-uart-using-low-level-apis http://www.cypress.com/documentation/code-examples/psoc-6-mcu-uart-using-low-level-apis |
|
|
|
|
60user133 发表于 2018-9-29 12:59 显然,我不知道如何添加链接到这个论坛,它切断了我的其他信息。 您不需要UARTHART启动,因为您已经初始化并启用了块。 你的针和钟是如何配置的? 以上来自于百度翻译 以下为原文 Apparently I don't know how to add links to this forum it cut off the rest of my message. You don't need the UART_Start as you are already initializing and enabling the block. Also how are your pins and clocks configured? |
|
|
|
|
60user133 发表于 2018-9-29 13:15 谢谢,但是我已经查看了附加的链接,这是我获得初始化代码的地方。我没有UART终端显示,我用100MHz时钟作为我的CMK4处理器上的CKKYHF0。我刚才检查了我的时钟和UART设置对示例项目,从我可以告诉他们是相同的。 以上来自于百度翻译 以下为原文 Thank you, but I have looked at the attached link, it's where I obtained the initialization code. I do not have the UART terminals showing, and I am using the 100MHz clock as my Clk_HF0 on the CM4 processor. I just checked my clocks and UART settings against the example project, from what I can tell they are the same. |
|
|
|
|
werywer 发表于 2018-9-29 13:27 你把销钉分配到正确的端口了吗? 如果您使用PSoC 6 PosiNER工具包,则应该使用P5(1)的TX。 以上来自于百度翻译 以下为原文 Have you assigned the pins to the correct port? If you are using the PSoC 6 Pionner kit, you should use the TX at P5[1]. |
|
|
|
|
|
我在我的PSoC 6先锋套件上试用了这个程序。我不认为你的代码对于PSoC 6是正确的。尝试我的程序,然后改变你的工作。在尝试之前,不要忘记在目录中解压缩这个程序。
UARTHOUSEION HyLeLealAppIS01.CyWrk.CaseV01.Zip 1.7兆字节 以上来自于百度翻译 以下为原文 I tried this program on my PSOC 6 Pioneer kit and it works. I don't think your code is correct for the PSOC 6. Try my program and then change yours to make it work. Don't forget to unzip this program in a directory before you try it. |
|
|
|
|
蔡R2016 发表于 2018-9-29 13:41 你使用的是什么终端程序?通讯端口什么设备经理说你的板连接吗? 以上来自于百度翻译 以下为原文 What terminal program are you using? What Comm port does device manager say your board is connected too? |
|
|
|
|
只有小组成员才能发言,加入小组>>
786个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7088 浏览 0 评论
2474 浏览 1 评论
2166 浏览 1 评论
4031 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2073 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7566浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6114浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
742浏览 2评论
710浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
7962浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 23:44 , Processed in 0.746427 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
875