- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I create a new project, but the uart is no output, i have set useUart = CyTrue, and useSpi = CyFalse, but still no uart log, is there something wrong about it?
io_cfg.isDQ32Bit = CyFalse;
io_cfg.useUart = CyTrue;
io_cfg.useI2C = CyTrue;
io_cfg.useI2S = CyFalse;
io_cfg.useSpi = CyFalse;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CX3的UART使用很简单,只要有相应的UART初始化和配置,就可以从接口打印出需要的debug信息。这个不需要创建DMA通道。
你现在遇到的问题,原因应该很简单。我这边没有打开看你附的工程,以Cypress网站上提供的AN75779的example 为例,UARTblock 的功能是肯定没有问题的,至于你说的把这个工程烧录到CX3板子上的操作,我并没有实验过。但是你要知道这样做引入了其他因素。
总的来说,你需要确认:
1. 你的测试环境下,固件到底有没有正确run起来?
2. 你的测试环境下,没有看到UART log信息是不是你的测试有误?
3. 你的测试环境下,是不是固件运行都成功了,没有fail,所以没有打印log信息。
问题本身应该很简单,建议你不要搞的这么杂。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Michael,
-are you using UART Configuration. If yes, please set to UART Configuration only and remaining configurations are disabled.
Regards,
Anil Srinivas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Anil,
I still can't reply on the website, it is always loading, like this. I didn't use the UART Configuration, can you tell me how to use it?
Michael Song| 宋琪
Senior System Engineer | 高级系统工程师
Mantis Vision China | 螳螂慧视科技有限公司
M | +86 131 6610 2886 E | michael.song@mantis-vision.com.cn
Sender: aani
Send Time: 2018-09-11 12:38
Receiver: michael song
Subject: Re: - The new project UART can't work
Cypress Developer Community
The new project UART can't work
reply from aani in USB Superspeed Peripherals - View the full discussion
Hello Michael,
-are you using UART Configuration. If yes, please set to UART Configuration only and remaining configurations are disabled.
Regards,
Anil Srinivas.
Reply to this message by replying to this email, or go to the message on Cypress Developer Community
Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community
Following The new project UART can't work in these streams: Inbox
This email was sent by Cypress Developer Community because you are a registered user.
You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, Anil,
I still can't reply on the website, it is always loading, like this. I didn't use the UART Configuration, can you tell me how to use it?
Michael Song| 宋琪
Senior System Engineer | 高级系统工程师
Mantis Vision China | 螳螂慧视科技有限公司
M | +86 131 6610 2886 E | michael.song@mantis-vision.com.cn
Sender: aani
Send Time: 2018-09-11 12:38
Receiver: michael song
Subject: Re: - The new project UART can't work
Cypress Developer Community
The new project UART can't work
reply from aani in USB Superspeed Peripherals - View the full discussion
Hello Michael,
-are you using UART Configuration. If yes, please set to UART Configuration only and remaining configurations are disabled.
Regards,
Anil Srinivas.
Reply to this message by replying to this email, or go to the message on Cypress Developer Community
Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community
Following The new project UART can't work in these streams: Inbox
This email was sent by Cypress Developer Community because you are a registered user.
You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
串口需要配置的,你都没配置,怎么会有输出呢?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have configured the UART before, like this. Is ther any problem?
static void
CyFxUVCApplnDebugInit (
void)
{
CyU3PUartConfig_t uartConfig;
CyU3PReturnStatus_t apiRetStatus;
/* Initialize the UART for printing debug messages */
apiRetStatus = CyU3PUartInit ();
if (apiRetStatus != CY_U3P_SUCCESS)
{
CyU3PDebugPrint (4, "UART initialization failed!\n");
CyFxAppErrorHandler (apiRetStatus);
}
/* Set UART Configuration */
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 = CyFalse;
uartConfig.isDma = CyTrue;
/* Set the UART configuration */
apiRetStatus = CyU3PUartSetConfig (&uartConfig, NULL);
if (apiRetStatus != CY_U3P_SUCCESS)
{
CyFxAppErrorHandler (apiRetStatus);
}
/* Set the UART transfer */
apiRetStatus = CyU3PUartTxSetBlockXfer (0xFFFFFFFF);
if (apiRetStatus != CY_U3P_SUCCESS)
{
CyFxAppErrorHandler (apiRetStatus);
}
/* Initialize the Debug logger module. */
apiRetStatus = CyU3PDebugInit (CY_U3P_LPP_SOCKET_UART_CONS, 8);
if (apiRetStatus != CY_U3P_SUCCESS)
{
CyFxAppErrorHandler (apiRetStatus);
}
/* Disable log message headers. */
CyU3PDebugPreamble (CyFalse);
}
Michael Song| 宋琪
Senior System Engineer | 高级系统工程师
Mantis Vision China | 螳螂慧视科技有限公司
M | +86 131 6610 2886 E | michael.song@mantis-vision.com.cn
Sender: lk960825_3660966
Send Time: 2018-09-12 10:41
Receiver: michael song
Subject: Re: - The new project UART can't work
Cypress Developer Community
The new project UART can't work
reply from lk960825_3660966 in USB Superspeed Peripherals - View the full discussion
串口需要配置的,你都没配置,怎么会有输出呢?
Reply to this message by replying to this email, or go to the message on Cypress Developer Community
Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community
Following The new project UART can't work in these streams: Inbox
This email was sent by Cypress Developer Community because you are a registered user.
You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Your UART set configurations are fine.
Please you can modify io_cfg.useI2C = CyFalse.
Regards,
Anil Srinivas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Modify io_cfg.useI2C = CyFalse, it is still no output of the UART.
I wonder that should i configure the GPIO pin of UART manually? Or it is used the default configuration.
Michael Song| 宋琪
Senior System Engineer | 高级系统工程师
Mantis Vision China | 螳螂慧视科技有限公司
M | +86 131 6610 2886 E | michael.song@mantis-vision.com.cn
Sender: aani
Send Time: 2018-09-12 20:37
Receiver: michael song
Subject: Re: - The new project UART can't work
Cypress Developer Community
The new project UART can't work
reply from aani in USB Superspeed Peripherals - View the full discussion
Hi,
Your UART set configurations are fine.
Please you can modify io_cfg.useI2C = CyFalse.
Regards,
Anil Srinivas.
Reply to this message by replying to this email, or go to the message on Cypress Developer Community
Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community
Following The new project UART can't work in these streams: Inbox
This email was sent by Cypress Developer Community because you are a registered user.
You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
不仅仅是串口配置,因为你串口用的DMA模式,因此还需要DMA通道配置,如果你是想用debug模式配置串口的话,建议看一下AN75779给的例程。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
你好,
我看AN75779也是没有串口log输出的,MDA配置如下。
/* Create a DMA Manual channel for sending the video data to the USB host. */
dmaMultiConfig.size = CY_FX_UVC_STREAM_BUF_SIZE;
dmaMultiConfig.count = CY_FX_UVC_STREAM_BUF_COUNT;
dmaMultiConfig.validSckCount = 2;
dmaMultiConfig.prodSckId = (CyU3PDmaSocketId_t)CY_U3P_PIB_SOCKET_0;
dmaMultiConfig.prodSckId = (CyU3PDmaSocketId_t)CY_U3P_PIB_SOCKET_1;
dmaMultiConfig.consSckId = (CyU3PDmaSocketId_t)(CY_U3P_UIB_SOCKET_CONS_0 | CY_FX_EP_VIDEO_CONS_SOCKET);
dmaMultiConfig.prodAvailCount = 0;
dmaMultiConfig.prodHeader = 12; /* 12 byte UVC header to be added. */
dmaMultiConfig.prodFooter = 4; /* 4 byte footer to compensate for the 12 byte header. */
dmaMultiConfig.consHeader = 0;
dmaMultiConfig.dmaMode = CY_U3P_DMA_MODE_BYTE;
dmaMultiConfig.notification = CY_U3P_DMA_CB_PROD_EVENT | CY_U3P_DMA_CB_CONS_EVENT;
dmaMultiConfig.cb = CyFxUvcApplnDmaCallback;
apiRetStatus = CyU3PDmaMultiChannelCreate (&glChHandleUVCStream, CY_U3P_DMA_TYPE_MANUAL_MANY_TO_ONE,
&dmaMultiConfig);
Michael Song| 宋琪
Senior System Engineer | 高级系统工程师
Mantis Vision China | 螳螂慧视科技有限公司
M | +86 131 6610 2886 E | michael.song@mantis-vision.com.cn
Sender: lk960825_3660966
Send Time: 2018-09-13 14:30
Receiver: michael song
Subject: Re: - The new project UART can't work
Cypress Developer Community
The new project UART can't work
reply from lk960825_3660966 in USB Superspeed Peripherals - View the full discussion
不仅仅是串口配置,因为你串口用的DMA模式,因此还需要DMA通道配置,如果你是想用debug模式配置串口的话,建议看一下AN75779给的例程。
Reply to this message by replying to this email, or go to the message on Cypress Developer Community
Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community
Following The new project UART can't work in these streams: Inbox
This email was sent by Cypress Developer Community because you are a registered user.
You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't know what project you created. The example of how to use UART port locate at the install path of SDK(almost every example project).
UART port in AN75779 could work normally.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, anni
Attachment is my local AN75779 source code, it is certain no uart log, is it same to yours?
I test it base on CX3 board, is there anythig to configure?
Michael Song| 宋琪
Senior System Engineer | 高级系统工程师
Mantis Vision China | 螳螂慧视科技有限公司
M | +86 131 6610 2886 E | michael.song@mantis-vision.com.cn
Sender: yyca
Send Time: 2018-09-14 14:10
Receiver: michael song
Subject: Re: - The new project UART can't work
Cypress Developer Community
The new project UART can't work
reply from yyca in USB Superspeed Peripherals - View the full discussion
I don't know what project you created. The example of how to use UART port locate at the install path of SDK(almost every example project).
UART port in AN75779 could work normally.
Reply to this message by replying to this email, or go to the message on Cypress Developer Community
Start a new discussion in USB Superspeed Peripherals by email or at Cypress Developer Community
Following The new project UART can't work in these streams: Inbox
This email was sent by Cypress Developer Community because you are a registered user.
You may unsubscribe instantly from Cypress Developer Community, or adjust email frequency in your email preferences
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have also same firmware.
Please refer to section 4.4 of EzUsbSuite_UG.pdf "C:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\doc\firmware"
Regards,
Anil Srinivas.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,Anil
This document is for mipi configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
AN75779是FX3的UVC工程,你拿这个工程烧录到CX3板子上本身就是错误的。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
我看文档里说基本是一样的,另外我对比了下两个uart、dma配置也都一样。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
CX3的UART使用很简单,只要有相应的UART初始化和配置,就可以从接口打印出需要的debug信息。这个不需要创建DMA通道。
你现在遇到的问题,原因应该很简单。我这边没有打开看你附的工程,以Cypress网站上提供的AN75779的example 为例,UARTblock 的功能是肯定没有问题的,至于你说的把这个工程烧录到CX3板子上的操作,我并没有实验过。但是你要知道这样做引入了其他因素。
总的来说,你需要确认:
1. 你的测试环境下,固件到底有没有正确run起来?
2. 你的测试环境下,没有看到UART log信息是不是你的测试有误?
3. 你的测试环境下,是不是固件运行都成功了,没有fail,所以没有打印log信息。
问题本身应该很简单,建议你不要搞的这么杂。