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

cross mob
Anonymous
Not applicable

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;    

0 Likes
1 Solution
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

CX3的UART使用很简单,只要有相应的UART初始化和配置,就可以从接口打印出需要的debug信息。这个不需要创建DMA通道。

你现在遇到的问题,原因应该很简单。我这边没有打开看你附的工程,以Cypress网站上提供的AN75779的example 为例,UARTblock 的功能是肯定没有问题的,至于你说的把这个工程烧录到CX3板子上的操作,我并没有实验过。但是你要知道这样做引入了其他因素。

总的来说,你需要确认:

1. 你的测试环境下,固件到底有没有正确run起来?

2. 你的测试环境下,没有看到UART log信息是不是你的测试有误?

3. 你的测试环境下,是不是固件运行都成功了,没有fail,所以没有打印log信息。

问题本身应该很简单,建议你不要搞的这么杂。

View solution in original post

0 Likes
16 Replies