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

MicroC/OS-II Problems

Altera_Forum
Honored Contributor II
2,239 Views

I have a Nios II project that is using MicroC/OS-II. This is the one that comes with the Nios II, not the Microtronix port for the Nios 1. So far I have just been using the default settings, but I would like to streamline it for my specific needs. Whenever I try to remove something or change a setting I get all kinds of errors complaining about not recognizing the '0' token or the '1' token. Has anyone else seen this? Thanks

0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
844 Views

What specfic options are you trying to remove/setup?

0 Kudos
Altera_Forum
Honored Contributor II
844 Views

I'm trying to remove mutexes, memory managemnet, mailboxes, etc. Basically all I need is message queues and tasks. I have also tried removed specific functions (ie. OSTaskCreate because I only used OSTaskCreateExt) but this causes similar problems.

0 Kudos
Altera_Forum
Honored Contributor II
844 Views

This is a rather embarrassing mistake which will be fixed in a soon to be released service pack. The problem is that if you look in system.h you will see a bunch of MicroC/OS-II# defines and these have the# define BLA "1" instead of# define BLA 1 

 

It's easily fixed by removing the quotes in this file.
0 Kudos
Altera_Forum
Honored Contributor II
844 Views

Rudy, 

 

 

Excellent, thanks. Is there an ETA on the service pack?
0 Kudos
Altera_Forum
Honored Contributor II
844 Views

Dave, 

 

I'm one of the development team. I know the service pack is due for release in early september, not sure when that gets to customers though. 

 

Hope that helps, 

 

Paul
0 Kudos
Altera_Forum
Honored Contributor II
844 Views

Yes, it does. Thanks.

0 Kudos
Altera_Forum
Honored Contributor II
844 Views

OK, I'm just bumping this topic up. I guess I assumed that the September release you were speaking of was the recent Nios II 1.1 release. Maybe you meant September 2005. because the problem is still there. Come on guys. It's stuff like this that drives me crazy.

0 Kudos
Altera_Forum
Honored Contributor II
844 Views

Dave, 

 

Actually the problem I described was fixed in the 1.01 release. 

 

It's sad that you still have a problem, however we'll need a more precise description. For example I have just built a hello MicroC/OS-II with no mutexes, mailboxes, queues or memory management code and got no errors at all. 

 

It's just a guess, but you may be being hit by the fact that the sempahores are required by the HAL, and code for Event Flags is required by the UART/JTAG_UART driver. 

 

If that's not the explanation then please supply more information
0 Kudos
Altera_Forum
Honored Contributor II
844 Views

The problem is that in system.h, the# defines for the OS bits still get generated with the "s around them. I just installed Quartus 4.2 and NiosII 1.1 yesterday and it still does it. I completely removed the older versions of Quartus and Nios and I removed the Release and Debug directories. Any ideas? The fix is to just remove the "s like you stated months ago. You now say that it should be fixed. Hmmm.

0 Kudos
Altera_Forum
Honored Contributor II
844 Views

Dave, 

 

Well this is either an installation problem or a dependancy problem is this problem was definately fixed in the 1.01 release and hence 1.1. It's been tested on different machines. 

 

So first and foremost create a new project Hello MicroC/OS-II and then try disabling a few options MUTEX etc. if this builds it will tell us whether this is a dependancy problem. If it does not you have an installation problem. 

 

If it does work go back to your original project and try making changes to the MicroC options apply them, rebuild and then look at your system.h file. Have the "" gone away?
0 Kudos
Altera_Forum
Honored Contributor II
844 Views

Well, creating a new Hello MicroC/OS worked. I tried changing some values in my options but that didn't seem to work. So I opened up system.stf in my text editor, deleted the existing syslib and re-created it. This works. So I guess the problem is solved.

0 Kudos
Reply