cancel
Showing results for 
Search instead for 
Did you mean: 

HardFault error in using CubeIDE 1.4.2, code generated CubeMX 6.0.1 FreeRTOS SEGGER SystemView

naser moravej
Associate III

Hi everyone.

I want to use SystemView to log data from stm32f429I-disc1. I generated code by CubeMX 6.0.1 to run FreeRTOS on my boad. FreeRTOS Interface is CMSISv2, and it has two simple tasks which both of them run os_delay(1). I went step by step according to a tutorial on youtube and added necessary changes to my project.

The problem is when microcontroller wants to execute os_delay from second task, it goes to HardFault_Handler. I increased stack size of each task, even increased Minimum Heap Size and Stack Size but nothing is changed.

target board: STM32F429I-DISC1

CubeMX version: 6.0.1

CubeIDE version: 1.4.2

CMSIS package version: 5.6

SystemView source version: 312

tutorial which I followed:

https://www.youtube.com/watch?v=1YiWFV_YbsM&list=PLvy7FusYCoHYvHstE1fGjehMLhaJBbiKk

.ioc file is attached.

TNX

1 ACCEPTED SOLUTION

Accepted Solutions
naser moravej
Associate III

Suddenly I disabled USB_OTG_HS and it woks:|

View solution in original post

1 REPLY 1
naser moravej
Associate III

Suddenly I disabled USB_OTG_HS and it woks:|