Quality RTOS & Embedded Software

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


Loading

HardFault and UsageFault detected by IAR Interrupt Log

Posted by biloy on September 11, 2015

Hello,

I am using FreeRTOS on LPC1833. I'm using IAR and I-Jet debug probe. My program run well.

By curiosity I found the Interrupt Log window and Interrupt Log Summary while debugging. It shows in which interrupt the software enters and leaves.

The thing is that I'm surprise to see that, according to the Interrupt Log Summary, my program enters/leaves in/from the HardFault and UsageFault interrupt ! and a lot of times! But when i set breakpoints in the respective IRQ handler, the debugger never stops.

I'm wondering if is this just a debugging/display problem from IAR.

It happens after the FreeRTOS scheduler starts. I try to not create my freeRTOS task and let only the Idle task but i have the same strange issue. If i just initialize by board, peripheral, and do a while(1) I don't see HardFault and UsageFault.

Do I have to consider that as a problem from de debugger?

Regards,

Arnaud


HardFault and UsageFault detected by IAR Interrupt Log

Posted by rtel on September 11, 2015

FreeRTOS does not expect to enter a hard or usage fault handler. If the fault handler is just a null loop, then if it did enter it, it would never exit again.

I suspect this is either just an error or misinterpretation in the log file, or that the IAR tools themselves are using these exception handlers.

Regards.


[ 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