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 agoThat should work if you capture binary data. But if you convert to ASCII (printf("%x")) you need 10 times the binary generation rate, which will exceed 115200 (I don't know what your actual UART rate is).
In order to use fopen and fwrite your system must have some kind of storage and a driver interface to the storage.