-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Wemos Lolin32 unable to connect to upload a sketch #2516
Comments
Open a terminal and run |
put a wire between gpio0 and ground while programming. Sounds like you have a defective unit. |
Thank you for your answers, I have done both of this, its written in my issue up, did not help. I will have another cable after 2 days, that was working for sure with esp8266 programming, but the cable seems not to be the problem, because it works with my phone for data transfer. Is there a way to confirm that the chip is broken? As a last resort, I'm planing to disconnect it from the board and wire it directly, but maybe there is a better way. |
@verbessern Sounds like a coms issue. What bit/baud rates have you tried? Are there other ports present? (Is it actually USB0?) |
I have tried all of them, including 40/80 Mhz. Sometimes when I'm testing (plugging/unplugging) it changes from usb0 to usb1 and back, i always choose what ever is present. "dmesg | grep tty" shows it properly on plug/unplug of the cable, and cp210x is detected correctly. |
@verbessern Just for testing, make sure the port settings are correct. Try manually assigning the device to USB3 and rebooting. EDIT: Switching from USB1 to USB0 is normal. USB0 is a default com that your computer switches to when no other device is found or selected. Your device should be USB1 in this case. Interrogate the ports using: then $ cd /mnt/usb1 |
While using the serial monitor at 115200 baud, hold down boot and press reset. Does "waiting for download" show in serial monitor? |
@1TekPro I don't have /mnt/usb0(1), inside are 5 folders with uuid names, all empty. I get '/dev/ttyUSB0' that is not a directory. I don't have a boot button. WEMOS Lolin32 CP2104 have only a reset button. I have however tried the "popular" solution to ground GPIO 0 and 2, but did not help. |
Can you share a pic of the board you are using? |
I'd say it is not an "official" wemos board if it doesn't have the silk screened lolin32 V1.0.0 (which your blurry pic doesn't appear to show). Can you open a serial terminal with the board attached at 9600 baud and see if you can capture the boot loader messages? remove the wires from GND to 0, 2 for this test just to see that it is booting up at all. If you don't get at least some garbage characters on the serial terminal (ie: wrong baud rate) you may have a bad board. If you do get some output then try adding GND to 0,2 and press the reset button with the serial terminal still open. Check the output from the boot loader for "waiting for download" which is what it should say with GND to 0,2. |
Can you take a clearer pic of the wifi chip? |
@1TekPro here they are. In the board the Lolin32 v1.0.0 is over painted as slightly visible on one of the photos. |
@atanisoft PuTTY connects to the /dev/ttyUSB0 at 9600, but when i click 'reset' button on the MC nothing happens, but if i unplug the device the terminal closes. The LED 5 lights a little when i touch with my hand the GPIO 5 (discovered by accident). CHG is always blinking 2 times per second or so. |
in your updated pics above it looks like the WROOM-32 IC is not soldered for a few pins and some pads seem out of alignment. Since you didn't get anything from PuTTY that doesn't sound hopeful that the board is functional. |
@atanisoft i have seen other pictures on the internet for the same board, and this "middle" pins look the same as on my version. See here from the original website: https://wiki.wemos.cc/products:lolin32:lolin32 |
The middle pins are not the ones I'm referring to, the ones on the left and right sides of the chip do not look connected. |
@atanisoft Yes the chip is alittle to the right, and the right pins and middle pins look well connected, but on the left its hard to tell. Good catch! I have slowly tested and its also slightly visible that half of the pins on the left side are not connected! |
The second pad from the top left side does not look connected. This should be the 3.3v input on that esp module. If you have a multimeter, check for power from the top 2 left pins and check continuity between the board pads and the module "pins". If you don't have a meter, an led would work for checking power. |
Nice solder work there. :) Haha and I was like... "if you have a meter". |
Thank you, Its my first board to solder, but i was watching videos in youtube for a month, till i was waiting the controller to arrive. I did that by putting very little solder on the top of my iron and just touch the pad. The solder just go sucked into its place, then i repeated on all pins. The beginners luck i guess :). |
I don't want to reopen this issue since I am only posting this here just so others know - to flash one of these 'clone' boards that do not have the EN button like mine didn't, the flashing process looks like this:
|
Thanks! That helped me with mine. |
Hmm I'm having a similar issue with a "Lolin" d3 with built in OLED - the device is functional since the display goes through a demo loop when powered - however I have trouble even finding the device port under macOS. |
Hardware:
Board: Wemos Lolin32 (maybe fake because the lolin32 v1.0.0 is overpainted black)
Core Installation/update date: 26.02.2019
IDE name: Arduino IDE 1.8.8
Flash Frequency: 40/80Mhz
Upload Speed: 115200 and others
Computer OS: Ubuntu 18.04
Description:
Hi community, I'm trying to upload a program to my new wemos lolin 32, but I can't connect to the micro controller. My usb cable works well with my phone for data transfer, so it should not be the problem. I have tried to ground the GPIO0/2 and upload, but with no success. When i hold the reset button i see a small 0.03v voltage drop in the 3.3v and 5v pins. "dmesg | grep tty" gives "usb 1-3: cp210x converter now attached to ttyUSB0" so it seems recognizes the device. Arduino IDE also shows in the menu "ports". Around the board 3.3v and 5v are present relative to the ground, also the CHG diode is blinking like 2 times per second, but as i read around, its 'normal', because some boards don't recognize the missing battery (I write this to be explicit, in case its important). I have measured that the 2 pins of the chip entry supply have 3.3v difference, so to the chip arrives electricity. PuTTY connects to the serial port, but stays blank (probably because no program is uploaded yet or worse). Terminal command "esptool.py chip_id" detects the port, but also can't connect. "cu -l /dev/ttyUSB0 -s 9600" connects, but any button freezes the terminal, except "~." for quit. I have tested in other computer with windows 7 older Arduino (don't have exact data), but also no connection is made. How can i detect if the chip is broken? I'm new in hardware. Please help.
Debug Messages:
Sketch uses 190944 bytes (14%) of program storage space. Maximum is 1310720 bytes.
Global variables use 12632 bytes (3%) of dynamic memory, leaving 315048 bytes for local variables. Maximum is 327680 bytes.
esptool.py v2.6-beta1
Serial port /dev/ttyUSB0
Connecting......................................____An error occurred while uploading the sketch
_
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
The text was updated successfully, but these errors were encountered: