-->
Page 1 of 2

I’m very new to this board (coming from arduino mainly) and

PostPosted: Tue Nov 05, 2019 3:23 am
by MonilGomes
The board is a nodeMCU esp8266

I got one of these boards from amazon and I wanted to start messing around with it. The problem is that I always get the same error: “timeout waiting for packet header”. I’m running Linux and haven’t actually downloaded any CH340G driver since it said mostly everywhere that Ubuntu already came with one. The error first appeared while trying to upload code from the Arduino IDE and later while trying to flash the nodeMCU firmware from the terminal into it. The serial port is ttyS0 if it is of any help. Any advice?

Re: I’m very new to this board (coming from arduino mainly)

PostPosted: Wed Nov 06, 2019 3:51 pm
by btidey
To get the board into download flash mode GPIO00 has to be low during a reset. This can be done automatically when the Arduino IDE tries to download but it does rely on the DTR and RTS signals on the serial interface on the board working.

To verify whether this might be the problem try putting the board into download mode manually using the 2 buttons on the board. Hold down the FLASH (GPIO00 button and press and release the RESET button. You can then release the FLASH utton and start the download from the IDE.

If that works then maybe you need to use a different driver for the USB that supports DTR and RTS.

Re: I’m very new to this board (coming from arduino mainly)

PostPosted: Fri Nov 08, 2019 6:18 am
by schufti
you are sure it is ttyS0?
unplug the board and do "lsusb", then reconnect the board, wait some time and look at "lsusb" again.
If there is no change, do a "dmesg" and look at lines close to the end...
I'd say ttyS0 is the serial on your mobo and no wonder it is not responding to flash commands.

Re: I’m very new to this board (coming from arduino mainly)

PostPosted: Fri Nov 08, 2019 11:43 am
by martinayotte
It should be something like /dev/ttyUSB0 ...