Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

system clock not working?

Joossss
Novice
679 Views

Hey!

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!

0 Kudos
1 Reply
EricMunYew_C_Intel
Moderator
630 Views

you can put usleep(50).


0 Kudos
Reply