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 for your reply again. I have solved the problem. there is a file call user_stdio.c, which I dont know when I have brought to the project. inside, there is function stdout_putchar(), which has conflict with the same function in retarget.c. I have removed the user_stdio.c, then the program runs well in target. But I still dont understand why the issue can not be found in compiling and debugging.

Reply
  • Thank you for your reply again. I have solved the problem. there is a file call user_stdio.c, which I dont know when I have brought to the project. inside, there is function stdout_putchar(), which has conflict with the same function in retarget.c. I have removed the user_stdio.c, then the program runs well in target. But I still dont understand why the issue can not be found in compiling and debugging.

Children