Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USB device not regonised, no PORT available, link to patch is broken #19

Open
joej970 opened this issue Aug 21, 2019 · 5 comments
Open

Comments

@joej970
Copy link

joej970 commented Aug 21, 2019

After flashing the bootloader I cannot execute step where the patch has to be applied because the link is broken.
Furthermore when I connect blue pill directly (not via FTDI dongle), computer cannot recognise the device and there are no available ports in Arduino IDE under tools > port.
Arduino IDE return error: Error - [1209:BEBA] device is not found
I am using Arduino_Core_STM32

EDIT:
I forgot to change jumper back to 0 and bootloader got deleted when I disconnected FTDI.
BUT still, after flashing HID bootloader, windows detects the device as HID USB and I can upload a Blink sketch, though tools > port is still grayed out.
But immediately after uploading, Windows notifies me that it cannot recognise the device and blue pill seems to have crashed because led stops blinking. No further uploads are possible until bootloader is re-flashed.

@khyarul
Copy link

khyarul commented Oct 24, 2019

it also happens to me, after first upload, my computer can't recognise the HID device until I flash again the bootloader and so on, I'm using maple mini

@joej970
Copy link
Author

joej970 commented Nov 1, 2019

Try setting USB support to CDC (generic serial supersede USART) before uploading first sketch after fresh flashing.

@toogooda
Copy link

toogooda commented Dec 1, 2019

it also happens to me, after first upload, my computer can't recognise the HID device until I flash again the bootloader and so on, I'm using maple mini

Same issue here, requires reflash of bootloader after every use

@joej970
Copy link
Author

joej970 commented Dec 1, 2019

It happened to me when I was using MPU 9250 DMP library that crashed STM32F1 because code started to execute too fast. My fix was to add delay(5000) before calling init() function of my library. The cause was probably that external sensor (MPU 9250) was not ready quick enough and this hanged STM32F1.

Now I use HID bootloader 2.2 (and delay) and it works fine for most of the time (I still have to unplug and plug stm32f1 some times, but I do not have to reflash it) . I have USB support set to CDC.

@fpistm
Copy link

fpistm commented Dec 2, 2019

Hi,
Just a quick note, to ensure Serial is well initialized before use them add:
while(!Serial);
after Serial.begin();.
See:
https://www.arduino.cc/reference/en/language/functions/communication/serial/ifserial/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants