- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Tags:
- nios II EDS
- sysclk
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can put usleep(50).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page