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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

a problem with UC/OSII

Altera_Forum
Honored Contributor II
1,361 Views

hello all, 

 

I have a problem here with UC/OSII.. 

I used the demo of the altera NEEK (NIOS-DEVELOPMENTKIT) the PIC-VIEWR demo, I used it as a starting point of my own design application, the system includes touch-screen LCD, sdram, and sram, we changed the LCD to 480x272 one and changed the VGA controller to work with this new LCD. 

 

when we wrote the code and began with a NIOS II application and BSP from template we we choose the hello_world template every thing is ok the LCD views IMAGES fast enough that we can not notice any problem, but when we choose the hello UC/OSII template to convert to an operating system the LCD views the IMAGES slowly we can notice the frame drawn slowly it takes 2 seconds to fill the area of the LCD!!!! 

 

and this is before starting the operating system, before OSSTART(); 

and before creating any TASK!!! 

 

the software application is the sameand the hardware is also the same, so we believe the problem is in the OPERATING system... 

 

can any one help please??
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
547 Views

Are you saying that just the fact that you link a big chunk of code - that is never used - to your system makes it several magnitudes slower? 

What project properties did you change besides selecting Micro-OSII instead one none (single threaded) in the system library settings? 

Can it be that you moved your code and/or data to a significant slower memory? 

Did you set for some reason the system clock timer to a very short time so a huger interrupt load might be generated?
0 Kudos
Altera_Forum
Honored Contributor II
547 Views

yes, this additional code that i never used makes the system slower. 

I did not change any project properties. 

and the timer tick is 10 ms so it is 100 ticks per second and i tried 100 ms so it is 10 ticks only per second and the strange thing is that the case it was 100 ticks/sec did not differ from the one which was 10 ticks/sec!!!!!
0 Kudos
Altera_Forum
Honored Contributor II
547 Views

I am thinking there would be an interrupt (from the sys_clk_timer) this interrupt is comming many many times which makes the CPU slower.. 

 

how can I disable the interrupt of the sys_clk_timer and keeping the files of the operating system as they are???
0 Kudos
Altera_Forum
Honored Contributor II
547 Views

If the timer time does not change this behavior you can exclude it as a the source of the problem. That's the good new.

0 Kudos
Reply