Hello,
I am using Adafruit's Huzzah and the CP2104 breakout board to communicate with my computer.
I have hooked up DTR -> GPIO0 and RTS->RST to upload code to the ESP8266 automatically. I was able to flash the Micropython firmware, but I was unable to get a prompt on screen. Only when I disconnected the RST and GPIO0 connections I was able to get a python prompt. I would prefer not to do this as I want to integrate these two chips onto a PCB eventually. Is there something wrong with my connections?
Edit: I was able to upload python code via ampy while the both lines are disconnected.
I still can't upload firmware via the esptool while these two lines are disconnected, however, in case I wish to upload code through flashing the firmware.
Thanks!
Micropython ESP8266
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: Micropython ESP8266
Are you using the Huzzah breakout or the Feather and are you using MicroPython or CircuitPython?
I have been struggling with a Huzzah breakout and CircutPython and wonder if your experience is related.
I have been struggling with a Huzzah breakout and CircutPython and wonder if your experience is related.
- tock
- Posts: 24
- Joined: Thu Aug 18, 2016 4:20 pm
Re: Micropython ESP8266
I am using Micropython and I am using the Huzzah breakout.
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: Micropython ESP8266
Are you entering a Control-D after the upload?
If I recall my setup, I have to do this to get to the prompt after flashing the image. I am using the Huzzah breakout and "FTDI Friend",
I have all of the pins connected and have not had any problems with MicroPython.
I'll poke around with it this evening to see if I can reproduce your situation.
If I recall my setup, I have to do this to get to the prompt after flashing the image. I am using the Huzzah breakout and "FTDI Friend",
I have all of the pins connected and have not had any problems with MicroPython.
I'll poke around with it this evening to see if I can reproduce your situation.
- jerryn
- Posts: 1868
- Joined: Sat Sep 14, 2013 9:05 am
Re: Micropython ESP8266
sorry - I misunderstood and I don't have the same setup. I don't have the DTR connect to GPIO- - I still do the manual two-button process to upload.
- tock
- Posts: 24
- Joined: Thu Aug 18, 2016 4:20 pm
Re: Micropython ESP8266
umhmm! I don't want to do the two button press to upload new code that was why I went with the CP2104.
I tried the Ctrl-D when I screened in but there was still no response. The red LED on the Huzzah was lit up however.
The problem still remains.
I tried the Ctrl-D when I screened in but there was still no response. The red LED on the Huzzah was lit up however.
The problem still remains.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Micropython ESP8266
[moved to the MicroPython forum]
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Micropython ESP8266
tock, did you provide screen with the 115200 baud rate?
I'm going to pick up a huzzah breakout and will grab a cp2104 too. I should be able to test it this weekend or early next week.
I'm going to pick up a huzzah breakout and will grab a cp2104 too. I should be able to test it this weekend or early next week.
- tock
- Posts: 24
- Joined: Thu Aug 18, 2016 4:20 pm
Re: Micropython ESP8266
I did. I ran the same command four times. Once with both lines plugged in, once with DTR plugged in, and once with RST plugged in and once with both lines unplugged. Only when I unplugged both lines was I able to screen onto the esp8266
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Micropython ESP8266
Could you please post a picture of your setup? I get my boards tomorrow and will try and replicate it.
- tannewt
- Posts: 3304
- Joined: Thu Oct 06, 2016 8:48 pm
Re: Micropython ESP8266
Theres a trick circuit on the Feather Huzzah to auto enter the bootloader. Its not as simple as RTS and DTR AFAIK. The schematic is here: https://cdn-learn.adafruit.com/assets/a ... 1458433763
Note I just fixed CircuitPython on the Huzzah breakout. I'll release 0.9.5 shortly with the fix.
Note I just fixed CircuitPython on the Huzzah breakout. I'll release 0.9.5 shortly with the fix.
- tock
- Posts: 24
- Joined: Thu Aug 18, 2016 4:20 pm
Re: Micropython ESP8266
Ah I see!
Thank you so much, I think I missed it when I was looking to wire up the CP2102.
Thank you so much, I think I missed it when I was looking to wire up the CP2102.
Please be positive and constructive with your questions and comments.