cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE only running code from one project

dj-b
Visitor

Hello all, I am currently working with the STM32CubeIDE. I wrote a program that didn't end up working but concluded the code was fine after reviewing it. I tried copy and pasting the code into a different project within the IDE, and it works just fine. Does anyone know why this might be?

The code does not work when pasted into existing projects, or new projects, except for the one particular existing project. There are no error codes thrown when it doesn't work; it builds and downloads to the board just fine but then doesn't run.

The program is attached.

1 REPLY 1
Pavel A.
Evangelist III

It is a perfect puzzle : ) Not possible to tell is you code fine or not. It may be fine under certain conditions and not fine under other conditions  - so called 'contract'. Consider that even a broken watch shows the correct time twice in a day. Debugger is your friend.