cancel
Showing results for 
Search instead for 
Did you mean: 

Board disconnected

Repka123_
Associate

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?


Screenshot 2024-11-02 091902.png

4 REPLIES 4

Pulling too much power or reseting. Perhaps scope supply vs NRST

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
liaifat85
Senior III

Check the output of the  AMS1117-3.3 voltage regulator. If the regulator overheats or becomes unstable, the microcontroller could reset or disconnect.

Hi,

There are 1002 possible reasons why this is happening -

  1. bad hardware
    ...

     1002. memory leak.

I hope this helps.

Kind regards
Pedro

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.

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.

My STM32 stuff on github - compact USB device stack and more: https://github.com/gbm-ii/gbmUSBdevice