-
Notifications
You must be signed in to change notification settings - Fork 13.3k
SOLVED — Add Support for nodemcu — Use esptool.py #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I use the Arduino environment from this github on my Mac. My ESP-01 is connected to my Mac via a PL2303 or FTDI board. For the USB-to-to-serial boards you will have to install the Mac OS drivers separately, this is not part of the supplied environment. Or do I misunderstand? |
We're talking about different products. I'm using a FTDI board for a plain ESP8266-01 and everything goes fine. But the noceMCU board has its own programming chip, CH341, and comes pre-loaded with Lua. |
I believe that the Arduino firmware uses/requires the AT firmware from the official SDK and will overwrite the nodemcu firmware. Drivers are irrelevant, that's down to the user (and aren't even required on Linux). If the nodemcu board cannot run non-nodemcu firmware then you should report that as a bug to them. |
i use nodemcu it different form esp8266 + usb2serial onboard can auto reset i will ready experiment on that only config auto upload key on board.txt form none to ck it work http://www.ayarafun.com/2015/04/arduino-ide-for-esp8266/
|
ch341 is a serial to USB adapter chipset, not a programmer, if that helps explain... no special support needed for it. |
Flashing an Arduino sketch to the NodeMcu board does work, I think you are just getting confused because you think that flashing an Arduino sketch is the same thing as uploading a NodeMcu .lua program. Uploading an Arduino sketch to the ESP8266 is actually equivalent to flashing a different version of the NodeMcu firmware, NOT uploading a .lua program. So, to upload an Arduino sketch you need to use the "Flash" button on the board not the "User" button. Once you have uploaded the sketch then yes, use the "User" button to run it. |
Thank you for the answers and pointers. Installing Please refer to #3 Got an error when flashing. Adding So I close this ticket. |
Hi Guys Just had some headaches on my new NodeMcu, first I had a bad USB cable (which was working fine on Leonardo board), and the 2nd problem is that I was not able to upload any sketch until I realized looking at the board schematics that the 2nd board button named user (1st is named flash) was not a reset one. Schematic show me that there is an autoreset feature so I should be able to use it. Sorry @prasertsakd just saw your answer now (should I have won time looking here before), but the idea is the same than the one in your anwser, yes !!
If this board could be added to the repo it could be very cool. Anyone can confirm that "just" adding this new board definition on Mac is making things working fine ? For information it's an official NodeMCU (claimed as) board with CH340 chip on it |
Could On Mac OS X, See #100. |
i changed the default baudrate to 230400 and it worked quite fine. With the 0x40 and 0x180 modification made earlier / i'm using FTDI /YP05) , with a powersupply aside. |
@vicriedemann, thanks so much. Wasn't able to get work with my ESP8266 on OSX, even after trying esptools.py, but lowering the lowering the baudrate from what works on Windows (921600 -> 230400) did the trick |
Good to know! Maybe that baudrate 230400 is the one. Are tou using Lua too? I was able to upload too using luatool at 230400 El Saturday, March 26, 2016, ADeeds [email protected] escribió:
Enviado desde el celu. |
The nodemcu is an ESP8266-based 30-pin DIP form-factor board with USB connector and programmer. By default, it comes with Lua but I'd like to use the Wiring / Arduino framework.
On Mac OS X, it requires the installation of the driver CH341SER_MAC_ZIP and then launch on Terminal
sudo nvram boot-args="kext-dev-mode=1"
.Thanks!
The text was updated successfully, but these errors were encountered: