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
-1
votes
1 answer

Read data from serial port in FreeRTOS

We have a issue during reading data from serial port. The C function which is used to read data have a argument for the data size in bytes. In order to read data we need to know in advance the size of the incoming data. We use RFID reader via…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
-1
votes
1 answer

How to use this API "xTaskCreate" to create multiple tasks?

I have read in link, This xTaskCreate FreeRTOS API is used to create a task. Using this API we can create more number of tasks: /* Task to be created. */ /* Task to be created. */ void vTaskCode( void * pvParameters ) { /* The parameter value…
abhimanyu143
  • 11
  • 1
  • 2
  • 4
-1
votes
1 answer

vTaskDelay never return

My application run on stm32F4 with FreeRTOS V9.0.0 and port files Source\portable\RVDS\ARM_CM4F (imported via RTE Keil). The main, call some initialization functions, create the task and then call the vTaskStartScheduler. The task simply call…
Mattia S.
  • 1
  • 4
-1
votes
1 answer

stack overflow in freertos

I'm reading some data on ADC channels on dsPIC30F6014A. For that I have implemented a separate task for each ADC(say 7 channels-7 tasks). I have created all the tasks at the start only, My heap size is 5120, I'm using heap_4.c and I have allocated…
-1
votes
1 answer

I can't run more then two task in ported freeRtos for AtMega328p controller for custom board

i have use Atmega328p controller and programming by eclipse AVR gcc tool chain setup.. now, i was make my Rtos code by change source file of freeRTOS.org websites.. now i can't run more then two task.. so, give me proper solution for that.. i was…
-1
votes
1 answer

Add FreeRTOS Kernel to an existing project in AtmelStudio

I want add FreeRTOS Kernel to an existing project, the references I consult shows that this can be done using ASF Wizard. However in the ASF 3.30.1 (the version i have in my PC) I cannot find FreeRTOS module I am not sure I undrestand why the…
fedi
  • 368
  • 3
  • 7
  • 18
-1
votes
1 answer

How restart task in FreeRTOS

I have got two task (task1 and task2). And I need restart second task, when I receive message from CAN. Any idea how? Ok. I solved the problem. volatile uint8_t restart = 0; extern void task1(void *pvParameters) { UNUSED(pvParameters); const…
Jirka
  • 63
  • 1
  • 15
-1
votes
2 answers

FreeRTOS fat cycle issues, is there any chance I can write 512bytes with 50hz?

I raise this question during use freertos fat. The development environment using iar compiler and MCU is using the cortex-m4. I use the hal library and the contents of FreeRTOS FAT Config.h are as follows: #define BUS_4BITS 1 #define…
JMS
  • 1
-1
votes
3 answers

How does freeRTOS maintain function variables while switching threads?

Recently I have been developing my own RTOS for ARM and PIC devices so I am analysing current RTOS concepts. I am having some doubts while studying FreeRTOS, How is it handling function variables? How we can manage the variable inside a…
Anand g
  • 9
  • 4
-1
votes
1 answer

STM32f4-Discovery board FreeRTOS

I'm new to RTOS and I'm trying to get freertos working with stm32f4 discovery board to get a better grip with embedded RTOS. I have searched all that I can to find a working version of freertos with the discovery board but I haven't found any that…
sa213
  • 1
-2
votes
2 answers

Runtime error in bf561 COREB FreeRTOS implementation when pointing to structure data

I've a runtime error in several function when it try to access structure data generally pass as a parameter to the function. the first instance of the problem is: signed portBASE_TYPE xQueueGenericReceive( xQueueHandle pxQueue, void * const…
william pagnon
  • 335
  • 3
  • 16
-2
votes
1 answer

Esp32 sn65hvd230: I can't get it to read in real time

I am working on a project based on the ESP32 processor and Arduino framework, which communicates with another board via CANBUS protocol. The bitrate is 125k so it is presumably "fast". I am using the Sandeep Mistry library or also known as…
WikiLift
  • 11
  • 5
-2
votes
1 answer

FreeRTOS watchdog timeout

Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1). Core 1 register dump: PC : 0x4008c936 PS : 0x00060735 A0 : 0x8008b8ae A1 : 0x3ffbf25c A2 : 0x3ffba74c A3 : 0x3ffb97b8 A4 :…
-2
votes
1 answer

When should I define task handles/

I'm using FreeRTOS with an arduino UNO. I'm going through some of the examples from the FreeRTOS handbook and I've noticed that in a lot of the examples they dont define the Task handles. But in a lot of online examples i see people defining Task…
Averean
  • 5
  • 1
-2
votes
1 answer

Guru Meditation Error: Core 1 panic'ed when using sprintf

I am using Ardunio/ESP32 and I am very new to FreeRTOS. I am trying to convert an int value to std::string, since I don't have to_string, so I used sprintf to do so. I noticed that when I call sprintf in the task function as follows ESP32 crashes…
Reza
  • 43
  • 7