esp32 -S2 usb
Posted: Mon May 11, 2020 7:00 pm
This is my first day with S2 saola, so please dont take this as complaining or even bug report, not yet.
My board is with installed wroom module and i wanted to try different thigs, so after mdns and ws2812 led strip i decided to test USB component. I started with dfu and flashes slowly but without bigger issues.
Next is USB component with enabled MSC. After adding necessary function with simplest code borrowed from example code flashed, but i dont see it as new mass storage. Then i had thought its maybe because it is simulating FAT12 device, so i should try with windows.
Here i encountered first bigger problem. At first i didnt realized it is related, but here may be something i dont understand. My wires are connected according to this diagram:
https://docs.espressif.com/projects/esp ... hrough-usb
which is PIN19 to white and PIN20 to green and it works on linux. The problem is that esp32 wired like this is causing my BIOS does not want to start, and when i unplug esp32 it starts. Then i let windows 10 to finish booting procedure and connect esp32 back to USB. Again, system cant find esp32 whatsoever if i revert PIN 19 and 20 windows can find unknown device.
When i tested wires in USB cable i can see that wires are like on this picture:
https://i.stack.imgur.com/I0GVI.jpg
- RED (+)
- WHITE (D-)
- GREEN (D+)
- BLACK (-)
which is not consistent with espressif docs:
My board is with installed wroom module and i wanted to try different thigs, so after mdns and ws2812 led strip i decided to test USB component. I started with dfu and flashes slowly but without bigger issues.
Next is USB component with enabled MSC. After adding necessary function with simplest code borrowed from example code flashed, but i dont see it as new mass storage. Then i had thought its maybe because it is simulating FAT12 device, so i should try with windows.
Here i encountered first bigger problem. At first i didnt realized it is related, but here may be something i dont understand. My wires are connected according to this diagram:
https://docs.espressif.com/projects/esp ... hrough-usb
which is PIN19 to white and PIN20 to green and it works on linux. The problem is that esp32 wired like this is causing my BIOS does not want to start, and when i unplug esp32 it starts. Then i let windows 10 to finish booting procedure and connect esp32 back to USB. Again, system cant find esp32 whatsoever if i revert PIN 19 and 20 windows can find unknown device.
When i tested wires in USB cable i can see that wires are like on this picture:
https://i.stack.imgur.com/I0GVI.jpg
- RED (+)
- WHITE (D-)
- GREEN (D+)
- BLACK (-)
which is not consistent with espressif docs:
At the end of testing i rebooted to linux and here is surprise, wit reverted pins 19 and 20 linux cant find esp32 USB.20 D- (green)
19 D+ (white)