ESP-01 (ESP8266) and programmer incorrectly installed

Discussion in 'Embedded Systems and Microcontrollers' started by Motanache, Nov 8, 2017.

  1. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    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.
    [​IMG]
    I have this programmer and this ESP
     
  2. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    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: Nov 8, 2017
  3. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    imag1.png
    Before and after attaching the programmer to the two USB ports in turn. The system does not detect it.
     
  4. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
  5. GopherT

    AAC Fanatic!

    Nov 23, 2012
    8,025
    6,786
    Which firmware is on the 8266?
     
  6. be80be

    AAC Fanatic!

    Jul 5, 2008
    1,689
    332
    That not your problem you got setup dialout you as a user or the ide can't use the serial port.
    To upload
     
    Motanache likes this.
  7. Raymond Genovese

    Active Member

    Mar 5, 2016
    997
    555
    You may find this helpful.​
     
    Motanache likes this.
  8. philba

    Active Member

    Aug 17, 2017
    959
    302
    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: Nov 8, 2017
    Motanache likes this.
  9. be80be

    AAC Fanatic!

    Jul 5, 2008
    1,689
    332
    The ch340g works out of the box i just plunged it in and it shows up Ubuntu
    Screenshot from 2017-11-08 18-54-14.png
     
    Motanache likes this.
  10. philba

    Active Member

    Aug 17, 2017
    959
    302
    what version of ubuntu? TS is on 11.
     
    Motanache likes this.
  11. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    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.


    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: Nov 9, 2017
  12. be80be

    AAC Fanatic!

    Jul 5, 2008
    1,689
    332
    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
     
    Motanache likes this.
  13. be80be

    AAC Fanatic!

    Jul 5, 2008
    1,689
    332
    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.
     
    Motanache likes this.
  14. Nathan Luise

    New Member

    Sep 19, 2017
    3
    0
    not bad at all, that is pretty nice to know, that you have all of this
     
  15. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    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.
     
  16. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    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: Nov 12, 2017
  17. be80be

    AAC Fanatic!

    Jul 5, 2008
    1,689
    332
  18. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    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: Nov 12, 2017
  19. be80be

    AAC Fanatic!

    Jul 5, 2008
    1,689
    332
    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: Nov 12, 2017
    Motanache likes this.
  20. Motanache

    Thread Starter Member

    Mar 2, 2015
    478
    52
    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.
     
Loading...