cancel
Showing results for 
Search instead for 
Did you mean: 

FreeRtos error in STM32H7

sazzad07
Associate II

 

Hello,

I am working with stm32H755 and FreeRTOS. After setting up debugger, I start debugging the program. the code is built fine, then get this error msg(attached picture) only if i enable FreeRTOS from the setup window(attached picture) . But i need to use freeRTOS. How can i solved this issue? 

Any support is welcome.

Thanks

1. in the freertos.c file, The code is

void MX_FREERTOS_Init(void) {

     osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 8192);
     defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);

}

2. debug msg

STMicroelectronics ST-LINK GDB server. Version 7.3.0
Copyright (c) 2023, STMicroelectronics. All rights reserved.

Starting server with the following options:
Persistent Mode : Disabled
Logging Level : 1
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Disabled
SWD Debug : Enabled

Waiting for debugger connection...
Debugger connected
Waiting for debugger connection...
Shutting down...
Exit.

```

Settings in STM32CubeIDE1.12.0Settings in STM32CubeIDE1.12.0error messageerror message 

5 REPLIES 5
SofLit
ST Employee

Hello @sazzad07 and welcome to the community,

As you are using stm32H755 , be sure your power config is correct SMPS versus LDO which should be inline with your hardware.

What board are you using: custom or ST board?

PS: when sharing a code please use </> button.

Thank you.

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.
sazzad07
Associate II

Hello @SofLit  Thank you, I am using custom board with LDO as supply.I used Power Regulator Voltage Scale 0.

Hello @sazzad07 ,

Did you mistakenly mark my comment as solution?

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.

yes

OK since it's a custom board you need to check your HW/Schematics based on the HW getting started in this AN: https://www.st.com/resource/en/application_note/an4938-getting-started-with-stm32h74xig-and-stm32h75xig-mcu-hardware-development-stmicroelectronics.pdf

Check mainly the power part and VCAP pins.

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.