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.