Skip to main content
Visitor II
November 2, 2024
Question

Board disconnected

  • November 2, 2024
  • 2 replies
  • 878 views

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

2 replies

Tesla DeLorean
Guru
November 2, 2024

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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Visitor II
November 2, 2024

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

PGump.1
Senior II
November 3, 2024

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.
gbm
Principal
November 3, 2024

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