Forum Discussion
Altera_Forum
Honored Contributor
21 years agowriting to a uart
I've got a uart in my SOPC builder system called uart_0 that I'm trying to write to using the serial example, but slightly modified. However the cyg_io_lookup function does not find this uar...
Altera_Forum
Honored Contributor
21 years agoIf you are using the 5.0 release, then you will need to enable "hardware serial device drivers" to access the full UART serial driver. You'll find this option in the "Serial device drivers" folder in configtool.
Alternatively you can just use the simple console driver, which you can open as "/dev/haldiag". This assumes that you've set the diagnostic console device to be the UART. This is set in the "Nios2 architecture" package, which is beneath "eCos HAL".