- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I'd like to communicate with a nios system using a JTAG uart module, but I don't know which functions and libraries I have to use in nios C-program.. I have designed a system to glow the LED's depending on data sent from console. printf() can be used to send data to the console. But i couldn't find any function which is similar to scanf() which reads data from console. I have built my system using Qsys, now i'am writing a software application in C to read data from console and give it to the display. please help.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It all depends on which OS you are running on the Nios II
If you're running the basic HAL then if I remember right getchar() is the function you should be calling.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I tried using getchar() but it doesn't seem to work.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page