cancel
Showing results for 
Search instead for 
Did you mean: 

How it is possible to use GDB with FreeRTOS support?

ktrofimo
Senior III

Hello!

I need to debug multiple tasks but when I try to enable FreeRTOS support (Debug configurations/Debug/Enable RTOS proxy/FreeRTOS+ARM_CM7) I can't connect to my MCU (STM32H743) with a message box saying "Could not verify ST device" while console says "Failed reading: xList.pxNext Update threads. Failed collecting threads. Lost connection to GDB Client Proxy stopped."

I was able to connect once with OpenOCD but then it fails also with errors in console: "OpenOCD Info : New GDB Connection: 1, Target STM32H743IITx.cm7, state: halted Error: Failed to read memory at 0x79280480 Warn : negative acknowledgment, but no packet pending"

How it is possible to debug multiple tasks?

Regular firmware download and debug without FreeRTOS proxy works perfectly.

STM32CubeIDE Version: 1.9.0 Build: 12015_20220302_0855 (UTC)

1 ACCEPTED SOLUTION

Accepted Solutions

STM32CubeIDE 1.13.1 works. All threads are visible and browsable.

View solution in original post

2 REPLIES 2
ktrofimo
Senior III

Update:

I am able to debug multiple threads using OpenOCD only when:

1) STM32CubeIDE is just started

2) ST-Link is inserted in USB right before debug session

3) board is powered

4) debug started with download binary to the flash (reset MCU & flash firmware)

i.e. it works only once right after IDE, debugger and board started. Second attempt fails (it is necessary to restart whole suite). Connect to the running firmware (without flash reprogramming) is not working also. ST-Link GDB is not working (still same "Could not verify ST device" error message)

STM32CubeIDE 1.13.1 works. All threads are visible and browsable.