cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRTOS and USB givers Hard Fault in H743 MCU

RAbdu.1542
Associate
 

Dear Sirs

I am having a problem using FreeRTOS and USB on H7 series MCU. The IDE gives “Hard Fault” when I debug the project. See image below.

RAbdu1542_1-1708960464673.jpeg

 

The environments are :

STM32CubeIDE:  Version: 1.14.0, Build: 19471_20231121_1200 (UTC)

Target: NUCLEO-H743ZI2

Enclosed herewith are the two “ioc” files.

FreeRTOS_USB1.ioc is for the project without initialization to the USB and it is working fine.

FreeRTOS_USB.ioc is for the project with the initialization to the USB and it is giving my Hard Fault.

 

Your help and assistance are highly appreciated.

Best Regards

Dr Reyah Abdula

 

4 REPLIES 4
FBL
ST Employee

Hi @RAbdu.1542 

Do you still have the same issue if yes, please consider attaching your IOC file.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


Hi FBL

Thank you for the reply. Yes, I am still having the problem. I already attached the IOC files above.

Regards

 

zmin
Associate

Increasing the MINIMA_STACK_SIZE can solve the problem.

002421.png

FBL
ST Employee

Hi @RAbdu.1542 

To address the issue you're facing, I recommend the following steps:

  1. Update CubeMX to latest version.
  2. Compare generated code from working and not working IOC file.
  3. This issue might be linked to CMSIS V1 as you may not increase the stack size for USB task.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.