Questions tagged [hard-fault]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
3answers
13k views

Finding the source of a Hard Fault using extended HardFault_Handler

I have been hitting some hard-faults on the firmware I have created with FreeRTOS on a SAMD21 (ARM Cortex-M0) MCU. So I took a further action to find out the cause and eventually bumped into this ...
2
votes
1answer
66 views

How are the bitflip and row hammering effects taken care of by micro controllers in critical systems?

Bitflips/random hardware faults and row hammering are some of the things which could damage the memory. Do the current breed of latest microcontrollers, used in embedded systems, have any mechanism ...
0
votes
1answer
98 views

HardFault with FreeRTOS at STM32 - New Project

Is this a bug. First I created a new project and enabled FreeRTOS and then I set the Time Base Source to TIM3. Then I got hard ...
2
votes
0answers
50 views

Bus Fault Handler when writing to a memory provided by a linker script

I have to work with code written by someone else for the Cortex M3-based board. I know that this code is supposed to work and it used to pass its integration test: the code is flashed to the board ...
0
votes
0answers
40 views

Why do I get Hard Fault error when I use RTOS with STM32?

I have created a library for ILI ILI9341 LCD that can do lot's of stuffs. It's made for STM32 and it can do: Plots Number pad Icons 16 bit Windows 3.11 Question dialog Frames But when I try to load ...
1
vote
3answers
215 views

How to debug this I2C hard fault?

I am using an STM32F103C8T6, STM32CubeIDE with HAL. During accessing an LCD (1602), with I2C, I get a hard fault. I try to debug it, but somehow I don't see the stack. See the following screenshot: ...
3
votes
0answers
69 views

Hard fault on only one of two identical STM32F405 boards

So I've made two prototypes of a new custom board with a STM32F405RG microcontroller at heart and while one of them works totally fine, after a few seconds or more I'm getting a hard fault on the ...
0
votes
1answer
155 views

How to build (from scratch) a GFCI Circuit? [closed]

I am looking to understand what is the circuit inside a Ground Fault Current Indicator (GFCi). What does the circuit look like? Simple google search is not yielding good results about the guts of it.
1
vote
0answers
191 views

HardFault_Handler on STM32F407ZET6

I am currently facing some problems with STM32F4, the process "hangs" and I am not able to understand at what point it "locked". When this happened, I collected the following values for the following ...
0
votes
1answer
350 views

STM32F105 - USB OTG - BusFault at 0x1fff7a10

I try to implement a VCP on a STM32F105RB with the STM32_USB-Host-Device_Lib_V2.2.0 I was able to compile the Code sucessfully. My Hardwareconfiguration is the following: Mini USB directly (without ...
6
votes
2answers
966 views

Mysterious hard-fault when I step over

This question was rewritten to remove several updates and improve clarity. I have a Cortex M3 based (and rather obscure) MCU. I have a rather big project, written in C++, in Keil MDK5 with armcc ...
0
votes
1answer
835 views

FreeRTOS causes SYSTICKACT (HardFault) exception

I generated a basic project with CubeMX for STM32F4. After compiling and having successful run, I added FreeRTOS manually. Unfortunately, all the time I'm getting HardFault exception with SYSTICKACT ...
1
vote
0answers
196 views

Can Hardfault Exception be triggered by hardware?

I have an Cortex-M7 project that sometimes goes in the Hardfault exception interrupt, sometimes not. With the same code. When it happens it append all the time. My system is made of two board ...