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
0
votes
0 answers

Is it possible to call a function from another image on MPC5674F(NXP PPC)?

My question is explained below. Build the main image. Download main image using JTAG. Build the application image. Download app image using RS232. Run main image. Call the func_a in the application image from the main(). Is it possible on this…
0
votes
1 answer

When calling OS_EXIT_CRITICAL(), STM32 runs into HardFault

It is very odd. OSInit(); OSTimeDly(10); OSTaskCreate(start_task,(void *)0,(OS_STK *)&START_TASK_STK[TASK_STK_SIZE-1],START_TASK_PRIO); OSStart(); In OSTimeDly(10),there is OS_Enter_CRITICAL() and OS_Exit_Critical(),and when the code is running…
Edward
  • 13
  • 5
0
votes
1 answer

LDMFD affects R13 oddly

We are using arm9 with ucos. The OS_CPU_ARM_ExceptHndlr_BrkTask common porting function's last instrument has strange behavior in our system. Instrument: LDMFD SP!,{R0-R12,LR,PC}^ Let's suppose the SP is 0x10002000, and the following 15 DWORDs…
shino
  • 1
  • 2
0
votes
2 answers

Changing priority in MicroC/OS II (ucos ii) changes Task ID?

I have experience with several RTOS (pSOS, VxWorks, QNX) however I'm new to MicroC/OS II (ucos ii). I see that something unique about ucos ii is instead of having a unique ID for tasks it uses the priority to uniquely identify tasks and that all…
JonN
  • 2,498
  • 5
  • 33
  • 49
0
votes
1 answer

MicroC OS-II with C++

I wanted to set up a new embedded project using MicroC OS-II and use C++. When I want to create an instance of a class using the new operator, my processor runs into an exception which seems to come from a failing malloc call in the new operator.…
RMK
  • 3
  • 2
0
votes
2 answers

uC/OS-III Systick & Peripheral timer0 for PWM interfere

I'm having trouble in getting a PWM signal for LEDs running smoothly on a NXP LPC1857 running uC/OS-III. Only when I disable the OS systick running at 1ms the flickering which regulary occurs stops. I have set up my timer with 4 match registers, one…
Futience
  • 1
  • 2
0
votes
1 answer

UC/OS III semaphore inside ISR sometimes does not work

I have a problem with a semaphore, it seems that sometime the SemPost called inside the ISR is not effective. My application is base on Micrimum UCOS III and the target platform is based on Microsemi Smartfusion2 SoC (Cortex-M3). My application…
antle
  • 1
  • 1
0
votes
0 answers

SQLite porting to STM32 having issue with memory allocation

I am trying to port SQLite to uCOS RTOS running in STM324xG_EVAL board. I am using micrium File system for making RAM based file system used by SQLite. I have tried with different build configurations and used sqlite3_config API to define different…
0
votes
1 answer

uC/OS-II Array values wont print correct in game

Hi I have been working on a game for my FPGA. I am using message queues here and my problem is that when I want to print the values from an array I always get the same result even when I put different values in them. May be I am printing them out…
Robin M
  • 41
  • 1
  • 8
0
votes
0 answers

having problems understanding typedef declaration for interrupt service routines

could someone explain this typedef is use is for declaring interrupt service routines. #pragma language=extended typedef void (__interrupt *__fp)(); void OSTickISR (void); void OSCtxSw (void); void AdcIsr (void);
0
votes
1 answer

Cisco Unified Call Manager SQL query

I am trying to query call manager 8.5+ directly from the cli (eventually i will put this into axl) currently my query looks like this run sql select dp.name as Site, tm.name as Model, count(tm.name) as Total from Device as d inner join DevicePool as…
driz
  • 455
  • 3
  • 16
0
votes
2 answers

uC/OS II memory management,OSMemPut() return the memory block without memory clear

I am a newbie about uC/os II, and confused with the memory management. In function OSMemGet(), we can see that task require the first block of the memory area's linked list(OSMemFreeList), then in OSMemPut(), return the used block to…
fengzhixun
  • 21
  • 4
0
votes
1 answer

How to make my data types independent of compiler in c

I was studying uC/OS and read this article: Because different microprocessors have different word length, the port of μC/OS-II includes a series of type definitions that ensures portability Specifically, μC/OS-II’s code never makes use of C’s …
Armia Wagdy
  • 567
  • 6
  • 22
0
votes
1 answer

semaphore priority inversion

Why do RTOSes not have any implementation to prevent priority inversion for semaphore even though it exists for mutex. Semaphores do not need to prevent priority inversion? The same situation happens both on uC/OS and GreenHills RTOS. Thanks in…
Leslie Li
  • 407
  • 7
  • 14
0
votes
1 answer

Sleeping barber OSSEMPEND()

I am trying to do the sleeping barber exercise with c and I can´t figure out what is going wrong. Would someone please be so kind as explain me in laymans term what do I need do to fix it. I keep getting this message: app_main.c, line 72: error:…
user1054844
  • 922
  • 5
  • 17
  • 34