This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Compiling and programming are successful, but program does not run at all

Hello all,

I am a electronic developer. Now i have a problem. I am using uvision 5 and ST link for SW development, debugging and programming.

the program can be successfully compiled, and to Flash in target programming. But the program does not run at all, either after programming or power off and on.

But the program can be run in debugging session without any problems, all desired functionalities are realized. I have no idea what the problem is.

Could you please help me?

thank you very much in advance

Ying

Parents
  • thank you very much again for your advice, maybe i can add more information here. I have used the uvision5 to generate the project than i used the STM32CubeMX to configure the pins, timers and so on, I dont know if this could bring some conflict somehow, however the project can be compiled and downloaded without any error, and runs well with debugger. But I have tried my old project, which is made firstly by configuring the pins in CubeMX and then generating projects. in this way, it runs well when power off and on without debugger. the setting of the vector is same in this two circumstances.

Reply
  • thank you very much again for your advice, maybe i can add more information here. I have used the uvision5 to generate the project than i used the STM32CubeMX to configure the pins, timers and so on, I dont know if this could bring some conflict somehow, however the project can be compiled and downloaded without any error, and runs well with debugger. But I have tried my old project, which is made firstly by configuring the pins in CubeMX and then generating projects. in this way, it runs well when power off and on without debugger. the setting of the vector is same in this two circumstances.

Children