Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
47 views

Unwinding Stack on Cortex-M with FreeRTOS: Handling Interrupts and Stopping Conditions

I am writing an unwinder for a Cortex-M (an ARM processor) running FreeRTOS. It mostly works, and I can trace the stack in many cases, but I have encountered a few issues that I haven't been able to ...
Theo Bessel's user avatar
0 votes
1 answer
41 views

Taking FreeRTOS as an example, how to separate the kernel from the application? (Physical)

enter image description hereBackground: FreeRTOS, Cortext-M3 Suppose there is a situation where the kernel and application are developed separately, and the .text segment of the kernel and the ...
Rost Zhong's user avatar
2 votes
0 answers
82 views

Embedded C++ - Header-only library optimization level

I mainly develop firmware for ARM Cortex M using gcc and I am migrating from C to C++ and even though I am overall happy with the transition, there are some things that I just can't get right. ...
sblanco's user avatar
  • 31
0 votes
0 answers
55 views

FreeRTOS Faults on Optimization

Environment The dev environment is Microchip (ex-Atmel) Studio. The target processor is a ATSAMC21G18A on a custom PCB. FreeRTOS version 8.0.1 is being used, being provided directly by ASF. How ...
Smith's user avatar
  • 103
0 votes
1 answer
72 views

Implementing Plugin Functionality in Firmware using FreeRTOS, LittleFS, and gcc-arm-none-eabi

I am currently working on a project involving firmware development for Cortex-M microcontrollers (NXP RT1175). My development stack includes FreeRTOS, LittleFS, and the gcc-arm-none-eabi toolchain. I ...
mastupristi's user avatar
  • 1,408
0 votes
1 answer
232 views

Interrupt in TICKLESS_IDLE mode of FreeRTOS

I have some questions about tickless idle mode in FreeRTOS. Does systick work in this mode, or systick just stop working when __WFI() has called and work again right after exiting __WFI() ? Calling ...
ricky rocky's user avatar
0 votes
1 answer
161 views

Cortex M4 invalid frame address during Hardfault

I'm trying to debug a Hardfault I'm getting at my Cortex-m4 MCU (ATSAM4E16). I've been reading https://interrupt.memfault.com/blog/cortex-m-hardfault-debug and https://www.freertos.org/Debugging-Hard-...
andypandy's user avatar
0 votes
1 answer
111 views

On STM32L476, should I still use a mutex to guard a single byte variable if ARMv7-M guarantees single-copy atomicity for byte length variables?

I am using an STM32L476 with CMSIS OS2 which implements FreeRTOS v10.3.1. The L4 is a Cortex-M4 MCU which implements ARMv7E-M architecture: https://en.wikipedia.org/wiki/ARM_Cortex-M The difference ...
tom.nowak's user avatar
0 votes
2 answers
134 views

Rust interop with FreeRTOS causes INVSTATE HardFault

I am working on an STM32F4 project with code generated by STM32CubeMX. In order to add some Rust to my project, I have ported the Makefile to CMake and am then using Corrosion to build and link a Rust ...
Gerharddc's user avatar
  • 4,061
0 votes
1 answer
127 views

Cortex-M0+ (STM32G0B1RETx) sometimes not returnig from function and executing next instructions

I've a strange problem with Cortex-M0+ (STM32G0B1RETx) when running FreeRTOS (10.3.1 heap3) and gui using lvgl (v8.3), toolchain GNU Tools for STM32 9-2020-q2-update, configuration generated from ...
user0x0859's user avatar
0 votes
0 answers
511 views

i have a problem while using FreeRTOS with keil

i am using keil version 5 and i install all the packages that needed to run freeRTOS on it. but it always gives me an error with portmacro.h here is some error lines: C:/Users/Mohamed Radwan/AppData/...
Mohamed Radwan's user avatar
1 vote
1 answer
275 views

FreeRTOS is slow to wake after long processor sleep

(Cross-posted on Electrical Engineering Stack Exchange) I'm using FreeRTOS in an application which requires the processor to sleep in low power mode for a long time (as long as 12 hours), then wake up ...
harry courtice's user avatar
0 votes
0 answers
510 views

UART interrupt on ARM Cortex-M0 not triggering while utilizing FreeRTOS

I am using an STM32F0 with the following std_periph_lib api functions to configure and execute a UART transmit from a FreeRTOS queue. // Initialization { USART_InitTypeDef usart_init; ...
Mitch Ostler's user avatar
0 votes
0 answers
160 views

ARM Cortex-M3 NVIC config with FreeRTOS

I'm working on a legacy projected using FreeRTOS v7.3.0 on an STM32F205 Cortex-M3, built with IAR EWARM v6.70. My system intermittently lands in the hard fault exception handler, and/or watchdog ...
RLepa.1's user avatar
3 votes
0 answers
994 views

xQueueReceive blocks the execution of other tasks

I am developing a FreeRTOS application on a Cortex-M4 (NXP i.MX8MM) that creates 4 tasks. The first task is waiting to receive a character on a UART. As soon as a buffer is received, it is sent to ...
Martin Denion's user avatar

15 30 50 per page