Skip to main content
YBAYR.1
Associate III
Feb 24, 2023 10:00 PM UTC
Question

Why do I need to debug my project every time to make it stm32 work?

Why do I need to debug my project every time to make it stm32 work?

What is the reason why the system does not work when I turn it off after disconnecting it from the computer?

For the system to work, I need to connect it to the computer, then when I debug, it works without any problems.

This topic has been closed for replies.

8 replies

Tesla DeLorean
Guru
Feb 24, 2023 10:24 PM UTC

You've built a board that floats BOOT0 pin?

You've coded something with a dependency, perhaps speed, and clock, or reliant on something the debugger sets or configures, and you don't?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
YBAYR.1
YBAYR.1Author
Associate III
Feb 24, 2023 10:35 PM UTC
YBAYR.1
YBAYR.1Author
Associate III
Feb 24, 2023 10:37 PM UTC

I am using nucleo board (302re) my codes are like this

S.Ma
Principal
Feb 25, 2023 8:33 PM UTC

Issues sometime come from the floating pins for the STLink VCP RX/TX, or -if used- the MCO clock gen of STLink to target chip under debug.

YBAYR.1
YBAYR.1Author
Associate III
Feb 25, 2023 8:58 PM UTC

Thank you very much for your comments.How to arrange for a commercial product. how to get debug? @S.Ma​ @Community member​ 

YBAYR.1
YBAYR.1Author
Associate III
Feb 25, 2023 8:56 PM UTC

Yes. It could be because of that point. I'm trying to fix. Do you have any suggestions on how to debug the project to make it a product?