Skip to main content
DPrie.1
Associate II
Feb 12, 2021 1:26 PM UTC
Solved

STM32Cube IDE executing commented lines

Hello everyone,

I'm debuging a project with 2 recent commented lines, and the debug is executing this lines:

0693W000008G09WQAS.png 

I previously builded that project, I don't understand what's happening, maybe you can answer me that question.

Thank you in advance!

This topic has been closed for replies.
Mike_ST
Mike_STBest answer
ST Technical Moderator
Feb 12, 2021 2:12 PM UTC

Hello,

These kind of things happens when the optimization is on or when the source code is not what has been compiled.

i.e your compilation has maybe not been succesful and the recently commented lines have not been taken in account.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 

2 replies

Mike_ST
Mike_STBest answer
ST Technical Moderator
Feb 12, 2021 2:12 PM UTC

Hello,

These kind of things happens when the optimization is on or when the source code is not what has been compiled.

i.e your compilation has maybe not been succesful and the recently commented lines have not been taken in account.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
DPrie.1
DPrie.1Author
Associate II
Feb 12, 2021 2:29 PM UTC

Working now, I was modifying the "main.c" code in another project location, instead of doing in the repository!

Thank you a lot,

Regards