- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I need some help. My Matlab code is as follows: fopen(s); fwrite(s,127,'int8'); A=fscanf(s,'%i'); B=fscanf(s,'%i'); B=fscanf(s,'%i'); fwrite(s,127,'int8'); fclose(s); However, when I try to perform a printf from Nios2, all I recieved was the the value from the first fwrite(...). The data from the second fwrite(...) seems to be missing. Why this is so? Thanks.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, with only those elements, hard to help you.
To be clear : { PC -------------to, via serial interface (RS232...),----------------> your NIOS II board } Here you posted the Matlab "program" that sends data from your PC. { your NIOS II board ---------- to, via JTAG--------------> your PC or another PC } Your NIOS II receive data and you use "printf" to print, via JTAG, to your Nios II terminal Right ? How does your NIOS II program look like ? With NIOS II, You use interrupts or simply read RS232 time to time ?
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