Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

system clock not working?

Joossss
Novice
190 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
141 Views

you can put usleep(50).


Reply