- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using the Cyclone III Edition NIOS II Embedded Evaluation Kit and I can't get the OSTimeDLYHMSM function to work. I wanted to use it to delay refreshing of the LCD screen, but it seems that the program's execution stops after encountering this function. My application was written in the NIOS II IDE and I'm using the same hardware file as Altera. I've analyzed their projects and they're using the same function -- OSTimeDlyHMSM -- with one exception -- fr them, it works.
What I do in my simple application is: 1. Initialize devices -> this code is copied from Altera's Picture Viewer 2. Call OSInit() 3. Call OSTaskCreateEx -> this is based on how Altera creates tasks 4. Call OSStart() Then, in the display task, I put: (...) OSTimeDlyHMSM(0, 0, 1, 0); //for debugging purposes while (1) { //here I draw something OSTimeDlyHMSM(0, 0, 0, 100); } ...and the result is... black screen meaning that the execution never gets beyond the first OSTimeDly, even after several minutes (it should start drawing after 1 second). If I remove the first OSTimeDly the screen is drawn once, but never refreshes. I use the SD card supplied with the kit to load my application. I create the _sw.flash file from the .elf file in the NIOS Command Shell and use it with Altera's _hw.flash file. The question is: what am I doing wrong? Does anybody have a clue why this function isn't working?Link Copied
0 Replies

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