2023-02-24 02:00 PM
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.
2023-02-24 02:24 PM
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?
2023-02-24 02:35 PM
2023-02-24 02:37 PM
I am using nucleo board (302re) my codes are like this
2023-02-24 02:55 PM
Unless it is held in reset, the MCU likely runs.
If powered from a charger cable the ST-LINK/V2-1 might hold the device in reset, depending on the version of firmware. Remove related jumpers or solder-bridges for NRST pin.
Add instrumentation, especially the Error_Handler(), and HardFault_Handler() so you can determine if it gets stuck there.
2023-02-24 03:01 PM
ok i will try. Can I reach you on LinkedIn!
2023-02-25 12:33 PM
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.
2023-02-25 12:56 PM
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?
2023-02-25 12:58 PM
Thank you very much for your comments.How to arrange for a commercial product. how to get debug? @S.Ma @Community member