2024-11-01 07:37 PM
I am trying to create a BLDC Controller project based on VESC using the STM32F405RGT6 microcontroller. I have successfully flashed the bootloader and uploaded the firmware using STLink. However, when I connect the IC to my laptop via USB, the IC is detected and can run the firmware only for a few moments (around 2 minutes) before disconnecting. What could be the issue?
2024-11-02 04:52 AM
Pulling too much power or reseting. Perhaps scope supply vs NRST
2024-11-02 05:54 AM
Check the output of the AMS1117-3.3 voltage regulator. If the regulator overheats or becomes unstable, the microcontroller could reset or disconnect.
2024-11-03 05:12 AM
Hi,
There are 1002 possible reasons why this is happening -
1002. memory leak.
I hope this helps.
Kind regards
Pedro
2024-11-03 10:35 AM
Ordinary lockup of USB stack due to calling transmit routine from the main loop?... Just wild guess, not really enough info for a reasonable answer.