cancel
Showing results for 
Search instead for 
Did you mean: 

Debugger switch context to ISRs under FreeRTOS

rolandsobczak
Associate II

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.

3 REPLIES 3
Pavel A.
Super User

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

rolandsobczak
Associate II

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