Questions tagged [hard-fault]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 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
95 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
64 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
126 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
177 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
322 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
871 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
775 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
191 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 ...
5
votes
3answers
11k 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 ...