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++
12747 Diskussionen

Problems with DE1 board and MicroC/OS-II RTOS

Altera_Forum
Geehrter Beitragender II
2.611Aufrufe

Hi, I'm having some problems because I want to implement an operating system, the MicroC/OS-II, on the DE1 board. 

 

First, I followed the tutorial "Introduction to the SOPC Builder" on Altera's site to create a SOPC project. 

 

After this, I followed the tutorial "Using MicroC/OS-II RTOS with the Nios II Processor Tutorial" on Altera's site too 

 

But, when I try to build the project, I receive the following errors: 

 

 

make: *** [../ucosii_bsp/-recurs-make-lib] Error 2 

 

make[1]: *** [obj/HAL/src/alt_close.o] Error 1 

 

# error "OS_CFG.H, Missing OS_TICKS_PER_SEC: Sets the number of ticks in one second" ucos_ii.h /ucosii_bsp/UCOSII/inc line 1708 C/C++ Problem 

 

 

I don't know how to solve it. I don't know if it is a problem from the SOPC I created, if I need something more. Or if it is a problem with the application on NIOS II SBT for Eclipse. 

 

Thank you.
0 Kudos
4 Antworten
Altera_Forum
Geehrter Beitragender II
1.595Aufrufe

Do you have a system timer in your SOPC project?

Altera_Forum
Geehrter Beitragender II
1.595Aufrufe

I don't think so. Can you explain me how to do this?? 

 

Sorry because I'm starting working with this board and I only studied the tutorials from the Altera's site. 

 

Thanks for the answer!!
Altera_Forum
Geehrter Beitragender II
1.595Aufrufe

In SOPC builder, you'll find the timer in the library: Peripherals > Microcontroller Peripherals > Interval timer 

Set a timeout period of 10 ms and select the Simple periodic interrupt preset. 

Then regenerate your SOPC system and recompile Quartus project. 

I don't remember if the bsp settings are automatically adjusted. If not you may need to update them and select the timer you just created as system timer before recompiling the software.
Altera_Forum
Geehrter Beitragender II
1.595Aufrufe

Thank you. It's impossible for me to try it now, but as soon as I can I will try to do it and I will return to say if it works with me. 

 

Thanks a lot!!!
Antworten