"NameError: name not defined" with micropython on esp-01

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
electronicsguy
Posts: 7
Joined: Thu Oct 22, 2015 1:22 am
Contact:

"NameError: name not defined" with micropython on esp-01

Post by electronicsguy » Sun Apr 17, 2016 4:04 pm

Hello all,
I just started using micropython. I used the pre-compiled firmware from Adafruit (available here: https://learn.adafruit.com/building-and ... d-firmware) and flashed it onto a ESP-01 board using ESP8266Flasher.exe for Windows. This worked fine.

I use Coolterm to connect to the board. However, I am getting problems. This is what I get on boot-up:

Code: Select all

l`.prn`....rb`l.b.nb|.lll...brnnn...l`...nn..l..nrn..b.l.rn..b.l
.C MEM CHECK FAIL!!!
drlS
>>> 
Micro Python v1.4.2-99-g6738c1d on 2015-05-12; ESP module with ESP8266
Type "help()" for more information.
>>> help()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name not defined
>>> 
What am I doing wrong? It doesn't accept any commands, even

Code: Select all

help()
or

Code: Select all

quit()
Is 512KB memory too small for micropython?

User avatar
deshipu
Posts: 1388
Joined: Thu May 28, 2015 5:54 pm

Re: "NameError: name not defined" with micropython on esp-01

Post by deshipu » Tue Apr 19, 2016 9:40 pm

That firmware is from last year and doesn't include any of the huge work that has been done since, especially the kickstarter stuff.
I would strongly suggest to visit the ESP8266 section of this forum and see how to compile your own firmware, and use that.

Having said that, "help()" is not implemented yet, that's why it's not found. Also, what would "quit()" do on a microcontroller? There is no underlying operating system to quit to.

electronicsguy
Posts: 7
Joined: Thu Oct 22, 2015 1:22 am
Contact:

Re: "NameError: name not defined" with micropython on esp-01

Post by electronicsguy » Wed Apr 20, 2016 11:15 pm

deshipu wrote:That firmware is from last year and doesn't include any of the huge work that has been done since, especially the kickstarter stuff.
I would strongly suggest to visit the ESP8266 section of this forum and see how to compile your own firmware, and use that.

Having said that, "help()" is not implemented yet, that's why it's not found. Also, what would "quit()" do on a microcontroller? There is no underlying operating system to quit to.
Sure I'll go the compile route. I didn't mean quit() should do anything on the MCU. However, it should be programmed to gracefully degrade and give some kind of message saying "nothing to be done". It'd be better, IMO, to implement it as a no-op rather than have it give an error.

Post Reply