ESP-01 (ESP8266) and programmer incorrectly installed

Thread Starter

Motanache

Joined Mar 2, 2015
540
You have helped me in the past to program an ESP8266.

Now I have another OS Ubuntu 11 on an old laptop but with USB.

I downloaded the latest version of Arduino IDE and installed it.

I have this programmer and this ESP
 

Thread Starter

Motanache

Joined Mar 2, 2015
540
The programmer is with CH340.
About ESP knows nothing about it-whether it has firmware or not.

Sketch uses 219207 bytes (20%) of program storage space. Maximum is 1044464 bytes.
Global variables use 31100 bytes (37%) of dynamic memory, leaving 50820 bytes for local variables. Maximum is 81920 bytes.
warning: espcomm_sync failed
An error occurred while uploading the sketch
error: espcomm_open failed
error: espcomm_upload_mem failed

I do not know how to put the code box.


I have:
Tools-> Board: "Generic ESP8266 module"

Programmer: "USBasp" ????????????????? Here I do not know what to select.

I made the modification with GPIO 0 at GND.

Tools-> Serial monitor - It does not respond to any AT command an 9600 bauds or 115200 with NL+CR end line.
 
Last edited:

philba

Joined Aug 17, 2017
959
Do a loop back test to see if the ch340g is talking to linux. Short the TX and RX pins. They are pins 2 & 3 on the CH340G. You probably can trace them to a connector. Then use a terminal program, it should echo what you type. Recent linux distros should have the driver that works with the ch340g but you never know.

[edit] I see you are on unbuntu 11, that's pretty old. Current version is 17. I bet you don't have the drivers. Can you upgrade? You might be able to get the driver to install but, unless you are a linux whiz, upgrading to 17 is probably easier.[/edit]

Once you've established the usb/serial adaptor is working, make sure that you have the right lines set on the esp8266. It's maddenly quirky and there is a lot of flat-out wrong info out there. This AAC article is a pretty good source of info
Another source of info is here.
 
Last edited:

Thread Starter

Motanache

Joined Mar 2, 2015
540
[edit] I see you are on unbuntu 11, that's pretty old. Current version is 17. I bet you don't have the drivers. Can you upgrade? You might be able to get the driver to install but, unless you are a linux whiz, upgrading to 17 is probably easier.[/edit]
I've tried multiple versions of Ubuntu.
It works all before Ubuntu 11 inclusive, but after Ubuntu 11 no one works.

For example, I tried to install Ubuntu 14. The error was: Ubuntu 14 PAE disassembled for this Pentium M.
I have at Laptop 1.6GHz and 1G RAM.


Which firmware is on the 8266?
I do not know what firmware it has, but I tried in Windows. Respond to AT commands:
AT => AT OK

The problem in Windows is that I do not have a functional network driver(old Laptop).
I tried to install ESP8266 board in Arduino IDE on another computer then to copy the files this Windows, but without success.

I'm trying to install an older Ubuntu - Ubuntu 9.
 
Last edited:

be80be

Joined Jul 5, 2008
2,072
I'm using 17.10 I had no problems with the ch340g It's not like most serial to usb.
It's open code so it's been around a long time LOL
The poster maybe messed up trying to install something he didn't need.
Sounds like he has but hard to say
Screenshot from 2017-11-09 12-33-06.png
Do a modprobe ch341
If you look it loads usbserial and ch341
 

be80be

Joined Jul 5, 2008
2,072
I just seen that you tried to load the mod.
Try this and post don't down grade use a newer Ubuntu the Lubuntu I think thats how it's spelled
would be even better it's made for older laptops.
Don't add no driver don't do nothing too it.
Open the terminal and type dmesg after hooking up your serial usb adapter.
post that.
 

Thread Starter

Motanache

Joined Mar 2, 2015
540
I downloaded Lubuntu latest version but I could not install it.
Error: Does not have PAE (I have Pentium M that makes such problems. It has PAE but does not recognize his operating system)
I used the forcepae command but was useless.

I have not succeeded in installing more Ubuntu variants except for Ubuntu 14.04 that I've managed to install.

Ubuntu 14.04 runs very slow but I do not know how to disable visual effects. If you know, please help me. I want to make him run faster.

The USB device still does not work but I found a temporary solution which I think will work.

Run another operating system in VirtualBox who will be allowed to use the USB port.
That will slow the speed of my computer that until I find the right solution.
 

Thread Starter

Motanache

Joined Mar 2, 2015
540
Sure, I downloaded and Lubuntu 14.04 I thought it was Ubuntu's 14.04 correspondent.
But the installation did not work (PAE error)

With the programmer connected on USB:
 
Last edited:

Thread Starter

Motanache

Joined Mar 2, 2015
540
Yessssssssssssss and many thanks!

I installed the latest version of Lubuntu on a laptop older than 10 years.

Unfortunately with lsusb command does not appear, but I think I took an important step by installing Lubuntu 17
dan@dan-laptop:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
dan@dan-laptop:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
dan@dan-laptop:~$

https://sparks.gogo.co.nz/ch340.html
From link:
" Drivers are almost certainly built into your Linux kernel already and it will probably just work as soon as you plug it in. If not you can download the Linux CH340 Driver (but I’d recommend just upgrading your Linux install so that you get the “built in” one).""
 
Last edited:

be80be

Joined Jul 5, 2008
2,072
The driver should be there for the ch340 I had it in 14 16 and the 17 that's now on my computer.

Try to make sure your on the 2.0 usb hub
 
Last edited:

Thread Starter

Motanache

Joined Mar 2, 2015
540
Arduino IDE gives error no permission for /dev/ttyS0.
I wrote:
sudo chmod 667 /dev/ttyS0

After that do not give this error but it does not work.
I only have two USb ports and I put it each in turn.
 
Top