Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

Programm ends up in Dummy Handler (Hard Fault)

Posted by petegorba on December 15, 2015

Hi there

After changing only a little in my Code, the Application always ends up in the DummyHandler(); the error occurs after that code: if (xSemaphoreTakeFromISR(uartirq, portMAX_Delay)) (selfwirtten code) ldr r0, [r6] movs r1, #0 mov.w r2, #4294967295 blx r5 cmp ro, #0 beq #250

if(prvISQueueEmpty(pxQueue) != pdFALSE) (out of the FreeRTOS/queue.c) cmp.w r8, #0 bne 42

from here it jumps into the Dummy Handler.

Unfortunately i have no clue what this error is related to? Could there be a memory fault?

Thanks in advance for any help.


Programm ends up in Dummy Handler (Hard Fault)

Posted by rtel on December 15, 2015

When you say the code is self written do you mean you wrote a function that tries to block an ISR to wait for a semaphore? If so then that is not a valid thing to do - interrupts are under the control of the hardware, not the FreeRTOS scheduler. Otherwise you are just misusing the second parameter as it is not a block time. Please refer to the API documentation online.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner