Forum Discussion
Altera_Forum
Honored Contributor
8 years agoNios II and Python
I am trying to send char bytes from my fpga to a python program, the data bytes are hexadecimal data, and those values will be plotted in a GUI table. The nios code is unsigned char temp =0x...
Altera_Forum
Honored Contributor
8 years agoYour Nios code doesn't show whether you setup your Baudrate correctly - or at all. (Depending on your FPGA design you may not need to. However, it will need setting up somewhere.)
Refer to chapter 7 - UART Core - of the "embedded peripherals ip user guide (https://www.altera.com/en_us/pdfs/literature/ug/ug_embedded_ip.pdf)". This has some code you can crib from too. Python looks adequate. Lookup the "Serial.inWaiting()". I think you'll find it helpful. Cheers, Alex