I have a project with nios II where I use it to control a few SPI slaves. However, my issue is that when I try to use usleep(), it doesn't work, when I try to use alt_nticks, alt_ticks_per_second they both return zeroes. Meanwhile the SPI itself works fine. I tried to manually invoke alt_sysclk_init(), but it did not change anything.
Is there somehow I have to configure the clock inside the EDS? Currently I just have a 50 MHz clock running into the FPGA and it also defined as such with Quartus.
Have any of you had the same issue and how would I solve it?
Thanks in advance!