I want to communicate with an Arty board implemented with FE310 from my PC via USB serial (UART). Sending data to the PC, e.g., printf(), works but reading data, e.g., getc() and scanf(), from my PC does not work.
To send data from my PC while JTAG debugging, I tried both of FreedomStudio’s Terminal and pySerial (serial communication library for Python). But neither of them works.
How can I read data via UART? Or is there any other way to exchange data between an Arty board and a PC?
I tried following SiFive’s examples, but neither of them works.
In main(), simple_out() works but simple_in() does not. None of fprintf(), getchar(), fgets(), and scanf() can receive data from my PC.
In main(), metal_uart_get_device() is undeclared. I cannot find the function even in the latest freedom-metal library (v201908-branch).