Questions tagged [freertos]

FreeRTOS is a portable, open source, real-time operating systems for microcontrollers. It also has some support for microprocessors with memory protection units.

FreeRTOS is a portable, open source, real-time operating systems for microcontrollers. It also has some support for microprocessors with memory protection units. It is designed to be small and simple and consists of only 5 C files and a small portability layer per each unique controller/compiler.

Features

  • Portable - supports 18 toolchains
  • Supports many of the commonly used CPU/MCU architectures including x86, ARM, AVR, AVR32, PIC (PIC24, PIC32, dsPIC), 8051, Z80, PowerPC and more

See also

1097 questions
2
votes
1 answer

FreeRTOS STM32 linker stack size vs task stack size

I am running FreeRTOS on STM32F103 and using IAR workbench. I am trying to understand the relationship between 'general stack size set by the linker' and 'stack size for each task in FreeRTOS'. For instance, when the FreeRTOS creates tasks, does it…
Jinsuk
  • 59
  • 1
  • 6
2
votes
2 answers

Why does FreeRTOS use short and long type, but not int type?

From Using the FreeRTOS Real Time Kernel - Standard Edition, p143, I noticed that: int types are never used – only long and short I would like to know why, but I find no answer in its official site and no result after google. Update 08/31: Maybe…
cifer
  • 615
  • 1
  • 9
  • 25
2
votes
2 answers

FreeRTOS : How to measure context switching time?

I want to measure the overhead of context switching time. Here is my idea to do that: There are two task: taskA idle I create a task as below: void calculate_ct(void *pvParameters) { int i = 0; for(; i < 100; i++) { …
Sirius Wang
  • 339
  • 1
  • 5
  • 15
2
votes
1 answer

STM32 external interrupt keeps triggering

I am trying to use a rotary encoder and button with an STM32F103 and FreeRTOS. The external interrupts for a pin0 and pin1 work fine but the button is connected to a Pin13 (EXTI15_10_IRQHandler) which keeps triggering without cause. Of course, I…
RootRaven
  • 395
  • 5
  • 14
2
votes
1 answer

Include problems with FreeRTOS Simple Demo on PIC32MX

I've been trying to get my hands on freeRTOS at work for a few days now. Since I'm done reading the documentation on the website, I'm now trying to work a simple demo on a PIC32 starter kit (with MPLABX. So far it works, the led blinks and the…
2
votes
2 answers

No scheduling with FreeRTOS on CC3200 Launchpad

I'm trying to build a system with multiple tasks on a CC3200 wifi (TI) lauchpad board with freeRTOS. I created three tasks in my main: // Create task1 osi_TaskCreate( task1, ( signed portCHAR * ) "task1", OSI_STACK_SIZE, NULL, 1,…
JOK
  • 135
  • 1
  • 7
2
votes
1 answer

no definition of "mainSW1_INT_BIT" in using freeRTOS real time kernel PIC32

I am following "Using the FreeRTOS real time kernel a practical guide - PIC32 edition". On listing 52 of the page, there is no definition of mainSW1_INT_BIT. I am confused as I don't have any source zip of the book. The code snippet is: void…
Main
  • 1,804
  • 3
  • 20
  • 28
2
votes
1 answer

SO_RCVTIMEO option on LwIP

I'm using LwIP with FreeRTOS. My project is based on the example on this URL FreeRTOS with LwIP project. I'm also using LPC1769 with LPCXpresso version 6. CMSIS version 2. I'm using LwIP to stream MP3 files with a UDP socket. The transfer has a nice…
ag.albachicar
  • 347
  • 1
  • 3
  • 17
2
votes
1 answer

How to change socket's listening port after accept() was called?

I'd like to change the port a socket is listening on. The problem is that I can't do it as long as a call to accept() is still in progress. I tried closing the socket expecting accept() to exit and return negative value. But it doesn't happen on…
grzegorz
  • 331
  • 3
  • 16
2
votes
1 answer

FATFS porting on STM32F103 SPI Flash

I have ported FATFS for Free RTOS on STM32F103 SPI Flash of 32 Mbit. In a demo Application I have successfully created a file, written a file, and read back from the file. My requirement is like I have to store multiple files (images) in SPI flash…
CAK
  • 31
  • 5
2
votes
1 answer

Using FreeRTOS with XC8 compiler

I'm trying to setup FreeRTOS with XC8 compiler with no success. I've searched over internet but there is not much information about it. I am using a PIC18F46K80 so I can't use C18 because it's not supported. I am trying to compile this minimal…
Andres
  • 6,080
  • 13
  • 60
  • 110
2
votes
1 answer

Detect ISR method call in FreeRTOS

Is it possible to determine whether a method in FreeRTOS is being invoked from the context of an ISR (interrupt service request) or a task at runtime? Maybe an existing function already exists for this or maybe it is possible to write a method that…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
2
votes
1 answer

what kind of scheduler does FreeRTOS use?

What kind of scheduler does FreeRTOS Use? I have read somewhere that it is a run to complete scheduler, but on the other hand, I've also seen it being used with parallel tasks, so it wouldn't be a round robin scheduler?
user3712774
  • 69
  • 1
  • 5
2
votes
1 answer

application code for os independent

I am writing C based embedded application code , I want to make it run in any OS which is written in 'C' like , free RTOS or Contiki or unix etc . So I thought below are the module I need to create abstraction if I want to port easily on any of the…
indra
  • 832
  • 4
  • 17
  • 33
2
votes
0 answers

Haphazard code execution flow after function integration in workspace. (Renesas MCU, HEW IDE)

MCU: Renesas RX62N IDE: HEW I am experiencing a strange program execution flow after I integrated a SD Card handler routine in the workspace which was previously running sequentially as it should. For a Function L1 : Void func(unint8_t arg) L2 :…
Osaid
  • 557
  • 1
  • 8
  • 23