ESP12 - something very wrong #5657
Replies: 1 comment
-
Posted at 2017-04-10 by Spocki Please read this first. Posted at 2017-04-10 by Scargill Hi Spocki - I've read that - not sure of the relevance of it to the issues I've mentioned above. Posted at 2017-04-10 by Scargill Also - this - in the docs - is unrecognised. ESP8266.getFreeFlash() Mentioned here.. https://www.espruino.com/EspruinoESP8266 Posted at 2017-04-10 by Ollie
Are you certain? The code you specified should echo 1 on the console.
115200 baud rate. Probably info refers to AT commands to ESP8266-12*.
No onboard LEDs that you are intended to control on ESP8266-12*. You can control the Wifi light. Pin varies from board to board. D2 from memory on the NodeMCU, which uses ESP8266-12E
You need to require the module.
Posted at 2017-04-10 by Robin Mon 2017.04.10 @user75617
and
After a quick review, I'm with @spocki and @ollie that everything is as it should be. Ollie has pointed out the coding omission. Spocki may have been referring to https://www.espruino.com/FAQ for the explanation of 'undefined' See heading: "When I type a command, why does Espruino print '=undefined'?" 9600 is the default when connecting over USB-TTL prior to flashing 115200 is the rate after initial flashing The WebIDE also has this statement under heading 'Baud Rate' within the settings option.
Beneath Heading "ESP8266 Library" https://www.espruino.com/Reference#software getFreeFlash() At times I thought there were mysterious errors creeping in. I discovered that taking a bit of extra time to comprehend the reading material was all that it took. The above links should be re-visited. Posted at 2017-04-11 by Scargill HI there Thanks to all for the feedback - I'm sure someone will see that it is entirely possible to get this wrong as a first time user. I noted that despite using a 4MB ESP12, there's only, what, 12K to store programs? That's what I read in the docs - is there a way around that now ? Seems to me there is around 3MB spare (now I have that getFreeFlash() working - thanks Ollie. This looks like it might be fun. Posted at 2017-04-11 by Ollie Check out the Flash EEPROM module here https://www.espruino.com/FlashEEPROM Posted at 2017-04-11 by Scargill Hi Ollie - that looks good - but before I investigate further - should I expect this to work on an ESP12? It says something about STM32? Posted at 2017-04-11 by Ollie It works. Posted at 2017-04-11 by Scargill I've been playing with the IDE and it does seem to have issues talking to a board from power up - if I go to my serial terminal, reboot the ESP8266 and talk to the Espruino THEN switch to the IDE all is well, but if I reboot the board in the IDE - I get nothing... any ideas? Posted at 2017-04-11 by Scargill Thanks Ollie. Your help with someone very new to this particular setup is much appreciated. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-04-10 by Scargill
Something very wrong here or there are two ESPRUINOS...
So I flashed a 4MB ESP12 - no problem pops up and says V1.91
So firstly - the terminal keeps throwing back "undefined" when entering perfectly valid Javascript like "var a=1;" for no reason - how do you turn that off.
Secondly - the manual refers to the default speed being 9600. Well, either I'm going blind or mine is defaulting to 115k.
Thirdly the first examples you see relate to LED1 - but mine knows nothing about LED1. I can use "0" and get a flashing light working but if I use LED1 - I get errors
Secondly, above error message repeat several times.
Ideas anyone?
Beta Was this translation helpful? Give feedback.
All reactions