FX3 Programming FPGA example code - can't see any debug info over UART

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

cross mob
Anonymous
Not applicable

Hi Guys,

   

 

   

Need your help regarding an UART issue I'm having in my custom board design.

   

I've burned the onboard I2C EEPROM with SlaveFifo example (from AN65974), with several

   

CyU3PDebugPrint() of my own. In this case I see my debug info printed on UART on a terminal.

   

However, when I'm burning the FPGA programming example (from AN84868), with

   

 several debug messages of my own, I see no any UART debug info on terminal, even

   

after I have successfully programmed the onboard FPGA.

   

I probably missing something obvious here, but up to this point, can't really understand

   

what might be the reason to absence of debug messages?

   

Please let me know if you need more details to understand the root cause.

   

 

   

Thank you in advance.

0 Likes
2 Replies
Anonymous
Not applicable

Hi,

   

The AN84868 project uses SPI Interface as well in addition to UART. From Table 7 of FX3 Datasheet, when both SPI and UART are used, the UART pins are mapped to GPIOs 46 to 49. But when UART interface alone is used as in An65974 project, the UART pins are mapped to the GPIOs 53 to 56.

   

In your custom board you would have connected the UART pins to 53 to 56. So you did not get the debug prints.

   

However, in the AN84868 project, after you have switched to Slavefifo mode (after finishing configuring the FPGA), the SPI is disabled, and now you can get the UART Debug Prints from 53 to 56.

   

Regards,

   

- Madhu Sudhan

0 Likes
Anonymous
Not applicable

Hi,

   

Thank you for your answer.

   

Well, to my surprise I'm not getting any output on UART after switching.

   

I'm not that greedy, I need the UART to debug the slaveFifo application (after the switch).

   

I was playing around with the code and actually narrowed it down to SPI configuration.

   

As long as SPI is not being configured I'm getting the output as I should, but obviously,

   

in this case I can't configure FPGA.

   

Any additional thoughts why the IO matrix reconfiguration is not working as it should?

   

 

   

Regards.

0 Likes