Go Down

Topic: ESP8266 Huzzah and IDE (Read 242 times) previous topic - next topic

Observatus

I hope someone can help. I am suddenly unable to load sketches to my ESP8266 Huzzah breakout board. I have at least 7 of these devices working throughout the house, programmed with the same Surface Pro I've been using. (Windows 10). I've installed the new Arduino IDE hoping it would fix the issue but it did not. Might be something simple, but I have not been able to resolve. Thanks in advance for any help someone can provide.

It was showing the error "Error downloading http://arduino.esp8266.com/stable/package_esp8266com_index.json".

So I copied that URL to the Preferences Additional Boards Manager URLs: That now seems to be ok.


This is the data in the window at the bottom........
 
Sketch uses 294512 bytes (30%) of program storage space. Maximum is 958448 bytes.
Global variables use 30980 bytes (37%) of dynamic memory, leaving 50940 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 84:f3:eb:70:16:bf
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0340
Compressed 298672 bytes to 213916...

Writing at 0x00000000... (7 %)
Writing at 0x00004000... (14 %)
Writing at 0x00008000... (21 %)
Writing at 0x0000c000... (28 %)
Writing at 0x00010000... (35 %)
Writing at 0x00014000... (42 %)
Writing at 0x00018000... (50 %)
Writing at 0x0001c000... (57 %)
Writing at 0x00020000... (64 %)
Writing at 0x00024000... (71 %)
Writing at 0x00028000... (78 %)
Writing at 0x0002c000... (85 %)
Writing at 0x00030000... (92 %)
Writing at 0x00034000... (100 %)
Wrote 298672 bytes (213916 compressed) at 0x00000000 in 19.2 seconds (effective 124.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Juraj

I see a successful upload.
do you have io 0 pulled LOW all the time? then the esp8266 returns to flashing mode

Observatus

Really? It stayed in program mode so I was thinking it failed. Ok I'll try it. Thanks!

Juraj

Really? It stayed in program mode so I was thinking it failed. Ok I'll try it. Thanks!
the reset options in esp8266 Arduino  2.6.1 should have some new reset option for generic module

Observatus

#4
Nov 17, 2019, 09:07 pm Last Edit: Nov 17, 2019, 09:13 pm by Observatus
I uploaded blink just to test and its not loading. Seems to end without error, but the sketch is not running... I loaded standard, then changed the delays to 250. Just to be sure. The blue light dimly flashes. Highly unlikely....but I wonder if the ESP is bad?. Arduino IDE is 1.8.10 Sorry, one last thing, the devices is Adafruit Huzzah breakout. I buy those instead of the feather because I don;t need the USB as the interface.

Juraj

I uploaded blink just to test and its not loading. Seems to end without error, but the sketch is not running... I loaded standard, then changed the delays to 250. Just to be sure. The blue light dimly flashes. Highly unlikely....but I wonder if the ESP is bad?. Arduino IDE is 1.8.10 Sorry, one last thing, the devices is Adafruit Huzzah breakout. I buy those instead of the feather because I don;t need the USB as the interface.
it doesn't blink after pulling io 0 HIGH and reset?

Observatus

No, Sketch not loading. I added serial.begin, and a simple message. And that is not showing on the serial monitor. The Arduino IDE used to show progress loading the Sketch in segments. Its as if the ESPtool.py is not bypassing the IDE progress I used to see and does the new sequence. When I read about ESPtool it looks like its for the Arduino board with ESP WiFi. I dont have that. I have the Adafruit board. How do I get rid of the ESPtool, the python utility. I think that might be the issue.

Observatus

By the way.... Thanks for trying to help Juraj. I appreciate you taking the time.

Juraj

#8
Nov 17, 2019, 09:52 pm Last Edit: Nov 17, 2019, 09:53 pm by Juraj
No, Sketch not loading. I added serial.begin, and a simple message. And that is not showing on the serial monitor. The Arduino IDE used to show progress loading the Sketch in segments. Its as if the ESPtool.py is not bypassing the IDE progress I used to see and does the new sequence. When I read about ESPtool it looks like its for the Arduino board with ESP WiFi. I dont have that. I have the Adafruit board. How do I get rid of the ESPtool, the python utility. I think that might be the issue.
in 2.5.1 esp8266 Arduino boards package the esptool-ck was replaced by esptool.py. the same esptool.py which was always used to flash the esp8266 without the Arduino IDE 

Observatus

ok, I have more units. I'll swap out with another and see if the interface loads the sketch to a different one.

Observatus

This is what I see on the serial monitor. Anyone able to explain what this data is telling me?


 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v482516e3
~ld
⸮rr⸮n#⸮
Exception (0):
epc1=0x40238380 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffe790 end: 3fffffb0 offset: 01a0
3fffe930:  00000138 00000000 3fffc228 0000096c 
3fffe940:  40464a4e 0001383c 00000002 40006784 
3fffe950:  00000001 00000001 3ffef014 00000002 
3fffe960:  400061cc 3fffe9a0 00000000 00000bf0 
3fffe970:  3ffef014 00000001 3ffef7e8 40239e12 
3fffe980:  00000000 00000000 24221f1c 120f2927 
3fffe990:  374e1816 40235be0 00000d26 00000004 
3fffe9a0:  3ffef7e8 00000002 00000002 40236508 

Observatus

This is what I see when it compiles and loads. It seems to work. Couple other observations...

The red light for prg mode lights but is somewhat dim. I think when I've seen that in the past it is not actually in the prg mode. But I am not sure now.

When the sketch is loading, the blue light used to flash quickly. Now it does not. It flashes maybe once every second, but very dimly.

Again, there do not seem to be any errors below, but the sketch does not seem to be loading.

Sketch uses 294512 bytes (28%) of program storage space. Maximum is 1044464 bytes.
Global variables use 30980 bytes (37%) of dynamic memory, leaving 50940 bytes for local variables. Maximum is 81920 bytes.
esptool.py v2.8
Serial port COM7
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 84:f3:eb:70:16:bf
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 298672 bytes to 213917...

Writing at 0x00000000... (7 %)
Writing at 0x00004000... (14 %)
Writing at 0x00008000... (21 %)
Writing at 0x0000c000... (28 %)
Writing at 0x00010000... (35 %)
Writing at 0x00014000... (42 %)
Writing at 0x00018000... (50 %)
Writing at 0x0001c000... (57 %)
Writing at 0x00020000... (64 %)
Writing at 0x00024000... (71 %)
Writing at 0x00028000... (78 %)
Writing at 0x0002c000... (85 %)
Writing at 0x00030000... (92 %)
Writing at 0x00034000... (100 %)
Wrote 298672 bytes (213917 compressed) at 0x00000000 in 19.0 seconds (effective 125.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

Observatus

Its working. I changed the FTDI USB to TTL Serial Converter Adapter Module. The old one is apparently bad....I think.

The new adapter loaded the sketch and the WiFi connected and received an IP. Pointed the browser and my page came up. Unbelievable.

Juraj

#13
Nov 21, 2019, 07:36 pm Last Edit: Nov 21, 2019, 07:37 pm by Juraj
Its working. I changed the FTDI USB to TTL Serial Converter Adapter Module. The old one is apparently bad....I think.

The new adapter loaded the sketch and the WiFi connected and received an IP. Pointed the browser and my page came up. Unbelievable.
the old one can't supply enough current for WiFi operations

Go Up