Skip to main content
rolandsobczak
Associate
Sep 12, 2025 4:58 PM UTC
Question

Debugger switch context to ISRs under FreeRTOS

Good morning everyone,

I’ve encountered some unexpected behavior while debugging my application. I’m trying to connect to an MQTT server and publish a message using the embedded Ethernet port, LwIP, and FreeRTOS. I’m developing with CLion IDE and CMake.

Issue description:
Every time I set a breakpoint somewhere in the MQTT-related code (located in freertos.c) and click the “Step Over” button, the debugger opens a new tab with stm32f7xx_it.c and jumps into the global Ethernet interrupt handler. Before I added FreeRTOS to the project, debugging worked as expected. As a result, I’m no longer able to debug my application properly.

Do you have any idea how I can change this behavior?

PS: I’m not sure if this issue is related to my IDE, OpenOCD, or another part of the toolchain, which is why I decided to post here.

This topic has been closed for replies.

4 replies

Pavel A.
Sep 12, 2025 11:15 PM UTC

If the file stm32f7xx_it.c is already open in the IDE, will it add more new tabs with this file?

rolandsobczak
Associate
Sep 13, 2025 9:12 AM UTC

rolandsobczak
Associate
Sep 13, 2025 9:14 AM UTC

This is what I was trying to describe before. I'm not sure if it is issue in my code or in IDE configuration

Pavel A.
Sep 15, 2025 11:14 PM UTC

I'm afraid I could not fully understand your video. ST has their own branch (or fork?) of OpenOCD. Is this the version you're using? What Clion support or community says on this? Clion is not a ST software.