Altera_Forum
Honored Contributor
12 years agoNios II software bugging
I'm working with Nios II processor and quartus 10.1sp1 on the device cyclone III, using the EPCS64 flash memory.
I've some problems when I send several commands of a sudden to the Nios software, for example to read or write. I'm using the following Nios II C code from altera in my software implemented in my flash : alt_epcs_flash_read(p_epcs_fd, (void*)buffer, number_of_datas) -> to read data(s) alt_epcs_flash_write(p_epcs_fd, (void*)buffer, number_of_datas) -> to write data(s) If I send severals commands of a sudden to my Nios software, this one works for few seconds answering to my commands (like read or write bytes in my flash) and after this it bugs and the Nios software is out of service. So I've put usleep(10000) in my C computer programm sending commands to Nios software, sometimes with this timer of 10 ms it works great I've no problem, I can send several commands without problem and receive messages from software without to see this one bugging, and sometimes it doesn't work and after this the Nios software doesn't answer at any of the command I send to him. Do you have any idea how to solve this problem, didn't find a solution in altera datasheets.