Forum Discussion
Altera_Forum
Honored Contributor
11 years agousing open() C command in the Nios II
Hi, can we used open() and printf() C commands to save stream of data in the Nios II? when I used fp=open() Command, it send Null to fp pointer.How can I store my integer data? Thanks
Altera_Forum
Honored Contributor
11 years agoFor open and write/printf to work you need a file system. The NIOS II does not have a file system unless you include some storage device and a device driver for it. You can either log the data on the serial port as suggested. Another alternative is to use the JTAG serial port if your real serial port have issues as you described (or try to lower the serial port speed to see if it helps). Another method would be to include some serial file transfer protocol which includes error check and retry, e.g. kermit or x/y/zmodem.