Hey guys, I don't know if this is good section,

Hey guys, I don’t know if this is good section, but I have a problem with ESP-01 - I cant program it via Arduino IDE & ubuntu

I connected VCC, GND, TX, RX, CH_PD-3.3V, GPIO-0 - GND, but arduino says that cant connect to port.

when I tried it under root, it worked but when I uploaded blink example and disconnect GPIO0 from ground (float) and reset board, nothing happened.

Please can you help me?

Can’t help on Ubuntu but it works a treat in the Arduino-Esp8266 environment in Windows. What you’ve done sounds right. Tried another board?

Did you change the pin in the Arduino sketch? Change “13” to “0” for GPIO 0 or “2” for GPIO 2. If you want to program the ESP as a normal user you will need permission to access and write to the USB port.

Thank you for response.
I tried another board and that one didnt work too.

I dont think its problem with name of pins because I am trying to upload Blink sketch where led is called by SDK BUILTIN_LED.

and when I enable debugging it says this:

esptool v0.4.5 - © 2014 Ch. Klippel ck@atelier-klippel.de
setting board to ck
setting baudrate from 115200 to 115200
setting port from /dev/ttyUSB0 to /dev/ttyUSB0
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat /tmp/build6263760246942242620.tmp/BlinkWithoutDelay.cpp.bin success
opening port /dev/ttyUSB0 at 115200
tcgetattr
tcsetattr
serial open
opening bootloader
resetting board
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
resetting board
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
resetting board
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
trying to connect
setting character timeout 0
done
setting character timeout 1
done
espcomm_send_command: sending command header
espcomm_send_command: sending command payload
warning: espcomm_sync failed
error: espcomm_open failed

I have just tried it with the standard “Blink” sketch. I will try the “Blink without delay” sketch tomorrow. The ESP normally gets flashed in two parts, and it looks like your set-up looses the connection before it can flash the second part, for some reason.

Ok and how do you do that? Ground gpio0 and power up board, press upload and after upload free gpio0 and power up again?

I tried it this morning. I cannot get the upload to fail like yours does. I keep my GPIO 0 low all the time, during upload and I use an external 3.3V power supply. I don’t rely on the power from the USB. I’m using Opensuse 13.2. I’ll try again with Ubuntu when I get back from work.

@Ralph_Werner thats weird, which IDE you use? I am at 1.6.6 compiled from githubu. and I found that if I run it under root and delete all sketch files (and libraries etc) it upload smthing… but when I connect it back with disconnected gpio0 … nothing

Checked out on Ubuntu tonight with Arduino IDE 1.6.4. Still works. I use 1.6.5 on Opensuse 13.2. I just downloaded the relevant software from the Arduino website. Just added ESP capability via the Arduino IDE preferences, additional boards manager. Let’s troubleshoot your problem privately and get to the bottom of your problem.