General area when it fits no where else

Moderator: Mmiscool

User avatar
By PhilTilson
#52482 Hi!

I would appreciate some advice on trying to get these modules up and running.

I have followed the instructions for flashing the chip, but without success. When first connected, I need to set a baud rate of 76800 in order to read the response from the module. On power on/reset, I get the message:
ets Jan 8 2013,rst cause:2, boot mode:(1,7)
, which seems reasonable.

I then follow instructions for flashing the BASIC interpreter. The program finds the module and downloads over a period of around 39 seconds. At the end, I get a warning message which looks like this:
Image - I have had more helpful warning messages!

However, the 386 dots would, if each dot represented 1024 bytes, suggest that something less than 395,264 bytes have been downloaded, which corresponds well with the 394,560 stated in the message.

When I remove the ground on Port 0 and reset, I still need to be on 76800 bauds and receive the message:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1264, room 16
tail 0
chksum 0xef
csum 0xef
csum err
ets_main.c


And that's as far as I can get! Any advice would be much appreciated.
User avatar
By Mmiscool
#52506 Esp basic defaults to 9600 baud. It looks like you are using an older version of esp basic. What size is the flash on your module? It it is a meg or more you can use the 3.0 branch.

EDIT: The esp8285 is a 1 meg module. Should work with version 3.0 branch

Also let it sit for a minuet after loading a fresh esp basic flash. Some times it just needs a few extra seconds to take.
User avatar
By PhilTilson
#52544 Thanks for the info. I did choose the 2.0 branch as, from the data on the download page, it seemed that this was the more stable and that all the examples were designed for it. However...

I subsequently downloaded the 3.0 branch and followed the procedure as outlined. Unfortunately, although the interface is a little different, as were the error messages, the result was the same!

After 30 seconds, the flasher.exe finds my available COM ports. I select the appropriate one, plus the 1MB option, and click Firmware Flash. After about 50 seconds, I get the 'dot' display in six rows (plus one dot), telling me that 100% has been downloaded, a total of 491680 bytes. The warning message is still an exclamation mark in a yellow triangle, with no other information.

I then leave things for a minute or two, as suggested, remove the link to Port0 and reset.

I still have to set 76800 bauds on my terminal in order to get anything intelligible, and the reset message is:
ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0xef
csum 0xef
csum err
ets_main.c


There are no indicators lit on the module - and never have been throughout the procedure.

Any further thoughts?

Phil
User avatar
By PhilTilson
#52941 Further information on this subject!

After many, many attempts at downloading the firmware (without success) I tried a different tack. Using the NodeMCU firmware programmer I eventually managed to download the Lau package.

Initially this, too, failed, but I finally got it to work when I set the download speed to 74880 bauds. This, I presume, is why I couldn't get the Flasher software to work - because these modules seem to insist on this baud rate for downloads.

Anyway, having managed to get that working - and a wifi connection established (though I couldn't connect to the 192.168.4.1 URL even though I could ping the IP address) - I decided to have another go at my original download, but this time using the NodeMCU programmer, as this allows the odd baud rate that seems to be required.

I located a copy of ESP8266Basic.cpp.bin and successfully downloaded this to the module. However, during downloading, three messages were cyclically displayed:
require("wifi")
require("gpio")
connect.world()


On rebooting at 9600 bauds, I received the following data:
Server listening Port: 80
ESP Basic 2.0.Alpha 24
1
2
3
4
5
6
7
8
9
10
11
12

Failed Wifi Connect
Creating WIFI access point
ESP
APname
file open failed
APpass
file open failed
file open failed


Presumably I need other modules in addition to the original .bin file.

Can anybody enlighten me as to a) where I can find the modules and b) to what address they need to be downloaded. I might then be able - finally - to run this amazing looking BASIC!

If I succeed, I will write up a note in the hope that others struggling with the same problem may be assisted!

Phil