Announcements

Register now for the most anticipated Asia Pacific Power Seminar 2022

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB EZ-PD™ Type-C Forum Discussions

Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

我使用型号是:CYUSB3013,现在通过GPIO53~56作为串口,使用官方的例程,不能输出信息。官方工程连接:https://www.cypress.com/documentation/application-notes/an75779-how-implement-image-sensor-interface...

0 Likes
1 Solution
JiangJing
Moderator
Moderator First like received 25 replies posted 25 sign-ins
Moderator

Hi,

    您可以参考一下链接的说明:

https://community.infineon.com/t5/Knowledge-Base-Articles/Using-CyU3PDebugPrint-API-to-Send-Debug-Me...

将CDC接口添加到FX3:https://community.infineon.com/t5/Knowledge-Base-Articles/Adding-Communication-Device-Class-Interfac...

您也可以参考使用附件,该项目正确枚举了CDC口和UVC。

 

 

View solution in original post

0 Likes
15 Replies
JiangJing
Moderator
Moderator First like received 25 replies posted 25 sign-ins
Moderator

Hi,

如果启用了流控制,那么只有激活 CTS 输入时,FX3 的 UART 才会发送数据。此外,当它就绪接收数据时,
FX3 的 UART 将激活 RTS 输出信号。

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

Chenjun_0-1656481666467.png

如上图,使用CYUSB3013,GPIO53~56作为串口。

Chenjun_2-1656481850106.png

这块使能串口。

Chenjun_1-1656481783052.png

如上图,是串口配置,

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

Chenjun_3-1656481989075.png

依据手册,GPIO53~56可以作为串口使用,这块需要特殊配置吗?

0 Likes
JiangJing
Moderator
Moderator First like received 25 replies posted 25 sign-ins
Moderator

Hi,

   看您第一张图,您使用的是SPI?另外,CYUSB3013仅支持16 - bit Data Bus,32位推荐使用CYUSB3014。您贴出的引脚描述为3012跟3014的,CYUSB3013的相关信息可以参考附件。

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

是单色的。

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

Chenjun_0-1656497771576.png

CYUSB3013这块引脚一会是SPI,一会是串口。这个需要配置吗?看文档没有说明哈。

0 Likes
JiangJing
Moderator
Moderator First like received 25 replies posted 25 sign-ins
Moderator

Hi,

     引脚的配置可以使用固件API 里的CyU3PDeviceConfigureIOMatrix () 来进行配置。另外,您这里是不是配置了32bit?InkedChenjun_2-1656481850106_LI.jpg

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

Chenjun_0-1656580047137.pngChenjun_1-1656580122728.png

按照您说的,串口部分配置如上面代码。使用CyU3PDebugPrint()这个函数打印。还是不行,我哪块还没注意到?

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

io_cfg.isDQ32Bit = CyFalse;如果改为这样,我的工程不能正常执行功能,不知道处于啥状态。

0 Likes
JiangJing
Moderator
Moderator First like received 25 replies posted 25 sign-ins
Moderator

Hi,

    您有使能16bit  Data Bus 吗?

    

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

CYUSB3013,GPIO53~56作为串口,这个问题可否详细说明下我哪块还未考虑到?给一个这个串口示例最好了。

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

Chenjun_0-1656637802232.png

 

0 Likes
JiangJing
Moderator
Moderator First like received 25 replies posted 25 sign-ins
Moderator

Hi,

    您可以参考一下链接的说明:

https://community.infineon.com/t5/Knowledge-Base-Articles/Using-CyU3PDebugPrint-API-to-Send-Debug-Me...

将CDC接口添加到FX3:https://community.infineon.com/t5/Knowledge-Base-Articles/Adding-Communication-Device-Class-Interfac...

您也可以参考使用附件,该项目正确枚举了CDC口和UVC。

 

 

0 Likes
Chenjun
Level 1
5 sign-ins 5 replies posted First reply posted
Level 1

Chenjun_2-1657089338751.png

 

我按照您给的文档操作成功。但是如下图,一打开这个串口上位机就卡死。不知道啥原因。

Chenjun_1-1657089303121.png

 

0 Likes
JiangJing
Moderator
Moderator First like received 25 replies posted 25 sign-ins
Moderator

Hi,

     请问您CyU3PDebugPrint调试打印是否成功?可以看到消息提示 在teraterm terminal吗? 您可以换一个串口调试助手试试

0 Likes