MicroC/OS-II (commonly termed µC/OS-II or uC/OS-II), is the acronym for Micro-Controller Operating Systems Version 2. It is a priority-based pre-emptive real-time multitasking operating system kernel for microprocessors, written mainly in the C programming language. It is intended for use in embedded systems.
Questions tagged [microc]
34 questions
3
votes
3 answers
Measuring the time for a context switch
I am getting acquainted with the MicroC/OS-II kernel and multi-tasking. I have programmed the following two tasks that uses semaphores:
#define TASK1_PRIORITY 6 // highest priority
#define TASK2_PRIORITY 7
void task1(void* pdata)
{
…

Smajjk
- 394
- 3
- 16
2
votes
4 answers
error#29 expected an expression
The following piece of code which is 2 dimensional array throws an error #29 expected an expression.
typedef enum
{
BATTERY_POW = 0,
USB_POW = 1,
END_STATE = 2
} BMTState_e;
typedef enum //event enums
{
NO_EVENT = 0,
…

user1867459
- 423
- 2
- 8
- 27
2
votes
2 answers
RTOS MicroC tasking
I've been working on some RTOS MicroC project and whenever I've implemented some function it works just fine outside the task, but whenever I put in the task it just wouldn't do anything. I know I might not get answer to this, but any tips where to…

Ženia Bogdasic
- 117
- 1
- 17
2
votes
4 answers
what is the stack of a task and what is it used for ? - uC/OS-II
So I am reading from MicroC/OS-II book, but in the section for task stacks I couldn't find exactly what the stack is and most importantly - what is it used for. I know it is not something long and difficult, but I kinda' have to understand it. The…

Milkncookiez
- 6,817
- 10
- 57
- 96
2
votes
1 answer
Please give a suggestion for the below error shown by Tasking Tricore Compiler
I wrote a C program for Tricore controller and after compilation I got the below error message which I am actually unable to figure out. Could you please give some inputs?
I can guess its some thing related to the memory hierarchy but still unable…

san6086
- 459
- 8
- 20
1
vote
2 answers
What should I do for stop the loop at the background when I am not pressing the button?
I am new here ,sooo sorry for the mistakes :P.
So whatever. I am trying to do a simple counter circuit with Arduino UNO, a catot 7-segment display and a button. I just want to when I press the button system circle start and takes one footstep. For…

Alperen
- 21
- 4
1
vote
2 answers
Blueooth HC06 Interfacing with PIC18F
I am currently learning the PIC. I am using PIC18F46K22. I want to send commands from my phone to the PIC using Bluetooth HC06 Module. On Arduino, everything works fine. However, when i switch to PIC, it isnt working. It is connecting but the Rx and…

Fawaz
- 1,253
- 2
- 11
- 9
1
vote
2 answers
Reading input pin of PIC18F
I am connecting a switch to PIC and I want to read that switch. I am using PIC18F4580. If the input pin is Low, then it will turn on an LED connected to another pin, configured as output. However, the LED keeps on the whole time, and the switch…

Fawaz
- 21
- 5
1
vote
1 answer
LED not glowing on off by push button with PIC18f2455 in Proteus
I searched around much to glow the LED on pressing PUSH Button in Proteus . But LED glows on its on and do not turn Off on pressing Push Button in Proteus. I am working on Simulation with PIC18F2455 and here is the MicroC code.
void main() {
…

Nabeel Raza
- 71
- 1
- 8
1
vote
1 answer
Appropriate sample for PIC ADC after converting from analog voltage.
if I'm reading an analog signal from my pressure sensor at 500mSec. my instructor told me that you should make the ADC Timr0 interrupt double what you are reading from analog Oscilloscope (500mSec.).i.e. 2fc. My code is down below.
Should I…

Ahmed A
- 71
- 1
- 9
1
vote
3 answers
How to use timer's OSTmrCreate to implement task scheduling with MicroC/OS II?
I got 2 tasks in MicroC to simulate a moving vehicle: ControlTask and VehicleTask. Now my project should replace the context switch with a timer for more appropriate timing but I can't seem to get it done. The program now uses the statement…

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424
1
vote
0 answers
Utilization test for FPS
The utilization based schedulability test can be used for FPS when rate monotonic scheduling is used. That's what my book says. However, can it be also used under different scheduling schemes (still under FPS)? Why, or why not?
Thanks

leopik
- 2,323
- 2
- 17
- 29
1
vote
1 answer
MicroC rs-485, pic16f887 String sending problems
How can I send the string "MY STRING" from a master pic to a slave?
I'm using MicroC RS-485 library example:
http://www.mikroe.com/download/eng/documents/compilers/mikroc/pro/pic/help/rs-485_library.htm
Im trying to send string from master to slave:…

Vadimas Sizikovas
- 74
- 1
- 11
1
vote
3 answers
How can I resolve this warning?
The code compiles and runs but I want to handle the warning.
#include
#include "includes.h"
#include
#define DEBUG 1
/* Definition of Task Stacks */
/* Stack grows from HIGH to LOW memory */
#define TASK_STACKSIZE …

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424
1
vote
1 answer
What's a good system test for keeping a deadline?
Reading about RTOS, the characteristic of a "hard" RTOS is that it can keep a deadline deterministically but how do we test or prove that the system actually fulfils the requirements?
The MicroC/OS II RTOS is characterized as a hard RTOS but how can…

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424