2025-09-12 9:58 AM - last edited on 2025-09-12 10:04 AM by Andrew Neil
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.
2025-09-12 4:15 PM
If the file stm32f7xx_it.c is already open in the IDE, will it add more new tabs with this file?
2025-09-13 2:12 AM
2025-09-13 2:14 AM
This is what I was trying to describe before. I'm not sure if it is issue in my code or in IDE configuration
2025-09-15 4:14 PM
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.