Questions tagged [ucos]

µC/OS is a low-cost 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. It is a scalable, ROMable, pre-emptive kernel that manages a number of tasks. It allows for unlimited tasks, semaphores, mutexes, event flags, message queues, timers and memory partitions. The user allocates all kernel objects at run time.

47 questions
8
votes
2 answers

Unit Testing a project that uses an RTOS

For my next embedded systems project I want to embrace unit testing. It may not technically be test driven development, but I would at least like to instrument unit tests up front and have comprehensive unit testing. I am using the IAR EWARM tool…
Nick
  • 1,361
  • 1
  • 14
  • 42
3
votes
2 answers

Embedded device -> std::thread -> FreeRTOS?

so currently i am investigating the possibility in using a pure C++17 Project for an embedded device (Cortex m4). But based on the fact that it is an embedded device we have port and use an RTOS Such as FreeRTOS or uc-OS and i would highly prefer in…
3
votes
3 answers

Switching from high priority task to low priority task in uCOS II

I'm new to RTOS (uCOS II) and learning it by reading the book written by uCOS author. I have a doubt and I'm unable to find the answer to it. In uCOS the task with highest priority is given CPU as per the scheduling algorithm. So, if I create write…
RHLK
  • 347
  • 3
  • 14
2
votes
3 answers

Context switching in uC/OS (embedded systems)

I'd like to know if its possible to have an interrupt force the scheduler to switch context to a specific task in RTOS. I'm working with microCOS OS Here is the task which performs the keyscan and posts the character into a mailbox, I need to add…
Amanni
  • 1,924
  • 6
  • 31
  • 51
2
votes
1 answer

Message queue in uC/OS-II is not FIFO order?

I'm using kit De10-Nano which has successfully ported uC/OS-II as in the example on the Weston Embedded website. Currently, I'm having a problem with message queue API of the OS. My program contains two tasks: producer task (priority 5) and consumer…
LowK
  • 23
  • 6
2
votes
1 answer

Float-point values doesn't work in uC-OS-III

Float-point variables defined with float doesn't seem to work in µC-OS-III. A simple code like this: float f1; f1 = 3.14f; printf("\nFLOAT:%f", f1); Would produce an output like this: FLOAT:2681561605.... When I test this piece of code in the…
MDR
  • 71
  • 7
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

Allocation and Free in Micriμm μC/OS-III RTOS

We are using the μC/OS-III RTOS of Micrium with a RX62N of Renesas. We built a system where we have to dynamicly alloc and free data. We found out the functions malloc() and free() are not working well with the RTOS. However the RTOS has a custom…
Hendrik
  • 87
  • 10
1
vote
1 answer

Unit test for uC/OS - II

I am a graduate student and I am trying to propose a project for a advanced testing course. Since I am a embedded guy, I do want to test something challenging related to embedded systems. uC/OS-II is an very nice open source light-weighted OS for…
nigong
  • 1,727
  • 3
  • 19
  • 33
1
vote
1 answer

uC/OS-iii Unresponsive Task

Consider the following code: // uCOS-III // Systick - 1ms // ISR Stack Size 128 // All tasks have been created using OSTaskCreate ISR_UART0() { if(on receive) { OSFlagPost(UartRec); // Post Flag to activate TaskA } } TaskA() { …
Arian
  • 65
  • 6
1
vote
1 answer

Why Keil Uvision 5 Does Not Support ARM Compiler Specific __isb() Function

I'm using Keil MDK-ARM Professional Version 5.38.0.0 which is set to ARM compiler version 6.19, and I trying to setup an uC/OS-iii project, everything goes fine until the last part where in the os_cpu.h file is a macro-type function that call…
Arian
  • 65
  • 6
1
vote
0 answers

Linker Error: undefined reference to 'CPU_SR_Save' (function in an Assembly file)

I'm currently trying to port code that was written for the IAR Compiler to GCC and I'm running into an error involving the uC/OS - III RTOS from Micrium. The error: undefined reference to `CPU_SR_Save' This error leads me eventually to this line in…
Scott Madeux
  • 329
  • 3
  • 8
1
vote
0 answers

FIONBIO for ioctl under Fusion

I'm working on a project based on uCOS and the Fusion standard (rather than POSIX) and I want to set my socket into non-blocking mode. The POSIX ioctl command would be ioctl(data,FIONBIO, TRUE); but I can't seem to get it going under Fusion. In the…
Testix
  • 113
  • 1
  • 7
1
vote
1 answer

How to implement hardware interrupts in uCOS II and TM4C123G (ARM M4) MCU?

Background: I am using uCOS II, Keil uVision 5, and a TIVA board with the TM4C123GH6PM MCU on it. I was given a the port for uCOS II as well as a blank project file to get started. I wrote the tasks needed and the program works correctly but now I…
Kevin KZ
  • 43
  • 5
1
2 3 4