GithubHelp home page GithubHelp logo

nodemcu-flasher's Introduction

NodeMCU Flasher

NodeMCU flasher is a firmware programmer for NodeMCU DEVKIT V0.9.

You can use it to program NodeMCU DEVKIT or your own ESP8266 board.

You MUST set GPIO0 to LOW before programming, and NodeMCU DEVKIT V0.9 will do it automatically.

This is demo version.

We are working on next version and will use QT framework.

It will be cross platform and open source.

Usage

Just click flash and you can burn firmware to ESP8266. Before you doing it, GPIO0 MUST LOW.

Begin program

And wait a moment.

Programming

Program success.

Program success

Setting your own firmware.

Setting

When the path have some error(e.g. file not exist), the line will become red.

Tips: You could use some special path to do something interesting.

The blank.bin file:

INTERNAL://BLANK

The esp_init_data_default.bin file(for 26MHz crystal):

INTERNAL://DEFAULT

nodemcu-flasher's People

Contributors

ghx111111 avatar vowstar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodemcu-flasher's Issues

NodeMcu 8266 Clone not detecting on PC

I have being trying to plug in my NodeMcu 8266 Clone from China but it's not being detected by my PC
I have tried numerous different cords (including data transfer cables) and installed all the CH340G Drivers, ESP8266 Drivers and had no luck!

If anyone has a solution please help me.
I appreciate your help.

Regards,
TrapFather

Linux support

could you support Linux OS? This operating system is popular in DIY comunity ... (arduino developement is perfectly supported on linux platform).

Node MCU FLASH ISSUE

Hello, i recently used your nodemcu firmware program and it did not work. When it first downloaded i put in my nodemcu and it came up as COM4 for a com port operation which was a good thing, then I went to config and put in the file I downloaded from spacehuhn, after that every thing was going how it needs to be. BUT THEN... shit hit the fan and the flash didnt work when I press flash.. sofar since i hit flash (1 hour ago) it still has not found my AP Mac and STA Mac but it says its ready. also my node mcu is not damaged as its led light still works like usual.

GPIO low

how to make nodemcu esp8266 GPIO LOW

Flasher not detecting my device

The flasher doesn't detect my device. I have tried 3 different cables to connect to it, and nothing is working. Here are the logs:
`
Note:Detect serial port changed.
Note:Auto MAP serial port.Port-->COM3

Note:Serial port connected.
Note:Begin find ESP8266.
`

Unresponsive modules after successful flash

I can't identify the reason.
Steps I take:

  1. Launch /Win64/Release/ESP8266Flasher.exe (2015-09-30) on Windows 8
  2. Leave default settings (just INTERNAL://NODEMCU)
  3. GPIO0 low, click FLASH, wait till done

Known symptoms afterwards:
Module is connectable (COM3 or 4), but does not respond after reboot - e.g. trying to flash again doesn't even obtain MAC; LuaLoader (GPIO0 disconnected) shows no responses.

This has already affected: 1xESP-01, 4xESP-07, 1xESP-12 via 3.3(actually 3.6)V FT232RL I use for Arduino Pro Minis, and (tried just to be sure) a verified working nodemcu devkit via USB.

The devkit and ESP-01 could still be flashed with the original firmware via 8266 flasher, and accepted NodeMCU afterwards. 2xESP-07 show "failed to connect", possibly due to the resoldering I did later. Don't have the other two.

Please instruct me on what to do to obtain additional information.
I still have: 1xESP-07, 1xESP-03, 2xESP-05(not flashable).

What version of Delphi this is ?

My Delphi is very old. What version of Delphi this project is compiled with ? (16. 17.2 ..)
Can you offer the URL link to downloading it ?
Thank you
-Nissim

ESP8266 Fatal exception (0) using NodeMCU

Hardware

Hardware: ESP8266-1

Description

When i boot ESP8266 i'm getting on my arduino MEGA serial monitor. Fatal exception (0): e2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c e 0xp0= 0e)02,0d00a 0e00c00Fic00= 0p0e 0xp0= 0e)02. I used NodeMcu flasher nodemcu_integer_0.9.5_20150318.bin and NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4. I'm using arduino UART (serial monitor) to talk to ESP8266. Module is powered with apt power (separate power supply)

It is flashed properly.

Settings in IDE

Module: ESP8266-1
Flash Size: 4MB
CPU Frequency: ?80Mhz?
Flash Mode: DIO
Flash Frequency: 40Mhz
Upload Using: Arduino FTDI Serial

Sketch

#include <Arduino.h>

#define esp8266 Serial2
#define CH_PD 4 // but needs a narrow low pulse
#define speed8266 115200 // This is the speed that worked with my ESP8266
void setup()
{
 esp8266.begin (speed8266);
 Serial.begin(9600);
 reset8266(); // Pin CH_PD need a reset before start communication
}
void loop()
{
 while(esp8266.available())
 { Serial.write(esp8266.read()); }
 while(Serial.available())
 { esp8266.write(Serial.read()); }
}
/*************************************************/
// Reset funtion to accept communication
void reset8266 ()
{
 pinMode(CH_PD, OUTPUT);
digitalWrite(CH_PD, LOW);
 delay(300);
 digitalWrite(CH_PD, HIGH);
}

Debug Messages

Fatal exception (0): e2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c pe80c00d0x:2= 0d00l(xp00v0xao1,00e0c e 0xp0= 0e)02,0d00a 0e00c00Fic00= 0p0e 0xp0= 0e)02

Trying to flash two files one after the other

I have a solution that needs to upload two binaries into flash. I have configured the tool as shown in the image:

2015-09-25_21-56-00

However, when I flash, only ONE file is uploaded. It appears I can only select ONE file at a time ... I had assumed that I could select all files and they would process. Is this not correct?

Workaround for ESP bootloader flash erase bug?

There is a bug in the ESP bootloader that may cause it to erase more flash than requested. If running esptool.py and flashing the 0x40000 binary AND this binary is larger than 0x30000 bytes, the first page at 0x00000 will be erased also. Historically, esptool.py flashes the 0x00000 binary first and then the 0x40000 binary. The workaround is to revert the flashing order, until esptiil.py gets patched (espressif/esptool#51)

I have never tried the nodemeu-flasher but thought I'd give you a heads up. When using the latest version of the ESP IOT SDK the 0x40000 image grew significantly and this bug manifistated itself.

password reset

Hey,
i've recently changed the password on the device, but now accidently forgot it.... How do i reset it though ?

AP and STA MAC addresses shown are wrong

The last byte of the MAC addresses shown is wrong. In my case it should be 0x48 and it shows 0x12.
If I modify line 884 in the UnitFormMain.pas from
MACAddr[5] := ((MACReg0 shr 24) And $FF);
to
MACAddr[5] := ((MACReg0 shr 22) And $FF);
it will work.
Please confirm if that indeed is correct.
Thanks.

Command line parameters

I have been improving LuaLoader to talk to your firmware. I want to make it as easy as possible for the user to update the firmware when a new release is available.

I already give a warning on every restart if there is a later release available.

To facilitate easy download of the firmware and flashing, I would like to execute nodemcu-flasher with the correct filename in place, so all that is required is to press Flash[E]

ESP8266flasher [filename] [-comm COM4] [-offset 0x40000]

all parameters are optional

filename is a full path to the file c:\esp8266\firmware\nodemcu14-12-12.bin
or just the filename if it is in the same directroy as esp8266flasher

Thank you for considering this feature.

Peter
http://benlo.com/esp8266

Flash over wifi

Hello, can I somehow flush nodemcu over wifi without wires ? If not it would be a good enhancement :)

Windows 10

This tool stopped working after my latest Win10 update. This is written in the log file:
Error:Serial port connect failed, please check it.

Full log:
Note:Detect serial port changed.
Note:Auto MAP serial port.Port-->COM4

Error:Serial port connect failed, please check it.

Baud rate issue

The program seems to ignore the user baud rate setting..

Shouldn't the line in UnitFormMain.pas (around line 1004)

if (ComboBoxFlashBaudrate.Text = '') then

be

if (ComboBoxFlashBaudrate.Text <> '') then

Thanks for your great work

The 64 bit version posted on 2014-12-30 doesn't work for me

flashing with the default configuration goes OK but then the ESP module won't reboot to the prompt. Changing the configuration to internal://NODEMCU @ 0x00000 causes the 20141209 version to be flashed.
Has anyone gotten the 20141230 flasher to work?

Firefox on Android giving lot of timeouts...

i installed the "deauther_2.1.0_1mb" on a ESP.

it works fine when accessed from a Windows Desktop using Firefox but when i try using it from an Android phone Firefox browser all commands selected give "time-out" error.

tried debugging through serial but just don't know how to increase the "time" for e.g. in Scan option.

No COM showing up in ESP8266Flasher

Hello
I'm trying to flash but no COM is showing up in the app.
here's what I've done :

Can you help with the issue? Any tips on how to flash?
thanks for the help

Don't ship with an outdated firmware binary

I don't have much hope this is fixed because this project seems to have stalled but for what it's worth...

The NodeMCU binary this tool ships with is hopelessly outdated. Using that binary causes all sorts of problems. It gives newcomers a false sense of comfort because they don't realize they should get their own firmware.

You could really help the NodeMCU community if you didn't ship a firmware binary at all but pointed users to http://nodemcu.readthedocs.io/en/latest/en/build/ instead.

Can't flash Wifi Bee ESP8266 with your tool

  • It is in flash ("UART") mode instead of "BOOT", which should be right

  • The USB-RS232 adapter is a "Bee Adapter v1.4", based on a FTDI chip. Win 10 provides the most current driver, same version as on their homepage. So it's can't be a driver issue

  • I also restarted Windows and disconnected the Wifi Bee adapter cable many times - does not solve my issue

  • dfrobot.com says we have to use your tool for flashing their ESP8266-based Wifi Bees: https://wiki.dfrobot.com/SKU_TEL0092_WiFi_Bee-ESP8266_Wirelss_module

after flashing NodeMCU is not recognize by Windows anymore

Hi Dears,
I flashed my NodeMCU with the tool. I connected my NodeMCU to Windows and COM6 was recognized.
After flash the NodeMCU to appli the new firmware (by default), the NodeMCU is not working anymore, so Windows does not recognize the USB devise, so cannot be linked to COM6.

Any suggestion to flash or recover the NodeMCU?

Thanks.
Marcos.

It doesn't work

It doesn't work in windows 10, no matter if 32 bits or 64 bits.

It is of no use at all

actual EXE-Files are small (and corrupted) files!!

Hi,

an earlier Version of ESP8266Flasher.exe has 7044 kBytes.

The EXE-Files that are downloadable are just 33kB. It is obvious that a 33kB-exe-file CANNOT be
a software with a graphical-user-interface (GUI).

Is there anybody who feels responsible for this error and would take some time to upload working versions of the actual ESP8266Flasher.exe?

In the meantime use this version.
ESP8266Flasher.zip

GitHUB is pretty complicated. I don't know how it works in detail. Maybe somebody can post a link to an introduction to GitHUB that explaines in EASY to understand words how all these branches, releases etc. are working

best regards

Stefan

command line version

I managed to modify your code to allow it to be used from a script (i copied the same syntax as used by esptool.py)
if you want my changes let me know and i will fork your repo and do a pull request

main reason i did it was i found the esptool.py has an issue in it's stub code which messes up the EEPROM library read write code (seems to zero out the storage space on each boot) the same image file burnt with your code does not have these issues.

There are only prebuild binaries avaiable

You are using github but don't supply any source code but only prebuild binaries. This is NOT how version control with git works. It doesn't matter how bad the source code looks and/or is. Just publish it. It will help other people to get their own stuff for the modules up and running.

Mac support

Can't say Macs are common in the DIY landscape (maybe they are maybe no, I don't know) but I'm on one so I'm opening this ticket to propose adding OS X support, in addition to Windows, and the already I guess planned Linux support.

Is this something one could hope for? Or completely out of the scope of this project?

COM port not showing up

So the COM part wasnt showing up for me neither in the nodemcu app nor device manager so i downloaded some drivers and it showed up in device manager but nothing in the nodemcu app. I also watched this video and followed his steps https://www.youtube.com/watch?v=8wZFCINl440&t=129s i dont really know if it is outdated or something. Anyways, thanks for any help :)

Nodemcu isn't detected (COM)

the program doesn't see the com and in device manager it's the same. Nothing is connected. I do have an arduino nano which works perfectly and is detected by device manager. I tried 2 different cables and pressing the flash and reset buttons on the esp8266.

Thanks for helping!

Needs some kind of improved progress indicator

I have used a prior version named nodemcu_flasher with success, it had a progress bar that seemed to work fine.

Today, with the latest version, with a new name, for some reason... I don't see a progress bar, have been watching the little icon thing turning slowly as can see serial traffic is occurring but no progress. Its not done, so maybe something strange is going on. Has been 10 minutes of TX and RX LED flashing with no indication of progress...

The flash did work, after some amount of time, not sure how long, I left it alone.

it's not an issue, it's a request

i like this tool an the possibility of the INTERNAL://... stuff :-)
is there a possibility (in the future so far) to embed the 0x00000.bin and the 0x10000.bin this way ?
maybe INTERNAL://0x00000 (or ...0x0) and INTERNAL://0x10000 (or ...0x1) ?

would help me ...

many thanks in advance
keep corona away !
so long

Wemos NodeMCU v3 Lua clone dev usb board won't flash

Hi I am trying to flash a wemos nodemcu esp12 dev board via usb and the nodemcu-flasher but I just get stuck on the log at: Note:Begin find ESP8266.

The blue com light just keeps flashing and nothing happens...

On the Operation tab there is a rotating message saying require("gpio") and require("wifi") that just flash round over and over.

Any help to be able to flash a firmware on this board would be good, I have tried 3 of the same dev boards and none will flash but I know they work as I can flash them via Arduino IDE and connect to them ok and upload blink demo etc

Please make an actual release

Can you please make an actual release or link to the release in the README? I've literally just spent 45 minutes with my father trying to help him find the EXE on his computer because we couldn't figure out how to just redownload it from the Internet.

Not able to flash after changing ISP modem

First of all I have been working with ESP8266 for about 12 months and used the Nodemcu-flasher to get them started on their way. I use Tasmota, another great tool for ESP8266. I did the original flash with Nodemcu-flasher(great tool) and then did Arduino IDE to get Tasmota on the Mcu. My problem started when I changed ISP Provider modems. Adruint upgrade did not help and I am now using ESPeasy flash to get things working. My Sonoff basic works fine but I can not get any of the Mcu to boot to 192.168.4.1?? (I have 5 )
Any help would be great, I have exhausted everything I can think of and have research long and hard.

Flashing NodeMCU on Windows 10 only gets to 5%

Hey guys, I have an ESP8266 EX.
I installed the driver CP201X for Windows 10.
After that I wanted to flash the firmware (from here: https://nodemcu-build.com/) with:

  • file
  • net
  • node
  • GPIO
  • timer
  • UART
  • WIFI
  • http
    as float firmware.

The flash process hangs at 5%.
Here is the output:

Command: esptool.py --port COM3 --baud 9600 --after no_reset write_flash --flash_mode dio 0x00000 C:\Users\Aorus\Downloads\nodemcu-master-8-modules-2020-01-09-11-23-23-float.bin --erase-all

esptool.py v2.6
Serial port COM3
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 80:7d:3a:78:b3:ad
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 0.5s
Flash params set to 0x0240
Compressed 454656 bytes to 296687...
Writing at 0x00000000... (5 %)

Could someone help me please?

DTR signal issue with Arduino boards and in-circuit flashing

Hello!

I have run into a bit of an issue: I'm using the ESP module together with an Arduino (which, I am sure, a lot of other people are..) I figured I could hook up the Arduino to the ESP, then use software to pull GPIO0 low to put it in a mode in which flashing the ESP Firmware was possible. That didn't work for two reasons:

  • The Arduino guys seem to use the DTR signal to reset the uC (so that whenever you start the SerialConsole from the IDE, the program would reset).. don't ask me why. Its fucking stupid. But that's the way it is...
  • You guys seem to use the DTR signal to put an ESP (connected specifically to any UART chip like an FTDI) into flashing mode by connecting DTR to GPIO0. right?

Now. Please excuse me if i'm wrong about the latter part. If I am not wrong, then sorry: but thats fucking stupid too! UART specification reserves use of that pin for specific purposes....

just because nobody (seriously NOBODY) uses flow control anymore, that doesnt mean you can use that signal for whatever you want.

Why not? Because the very fact that two different parties (Arduino & you guys) thought that the DTR signal was a convenient PC->embedded GPIO, those two things now seized to work well together.

Basically, when your software tries to flash the device (and pulls DTR low), it resets the Arduino making any "UART forwarding" and thus flashing of the device in-circuit impossible.

Please, tell me if i am wrong here...but the problem i just pointed out makes sense and matches what i observe at my end... so..

can you maybe make use of the DTR signal optional in the settings? That'd be awesome. (and the RTS signal as well. Your code seems to be pulling that low too, for whatever reason)

I'd issue a pull request, but .. i'm not quite comfortable with the language, let alone that i have no idea how to compile that into working binaries. (seriously: give me a few hints on how to do that, and i'll issue a pull request ASAP!)

Broken image links in ReadMe

Please fix the broken image links in the ReadMe document for new comers like me to get better instructions from the document. Thanks a lot!
broken-image-link

FLASH DOES NOT WORK!

When i press flash it does no download anything the bar does not even come up please help me

set GPIO0 to LOW

Hi
I have from aliexpress clone nodeMCU V3. But i can not programming it under arduino IDE

Szkic używa 243 785 bajtów z (23%) pamięci programu. Maksimum to 1 044 464 bajtów.
Globalne zmienne używają 34 468 bajtów z (42%) dynamicznej pamięci, pozostawiając 47 452 bajtów dla lokalnych zmiennch. Maksimum to 81 920 bajtów.
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

and also can not flash firmware by this flsher...
I dont know how set GPIO0 to LOW and where i can found latest firmware 1.5.4.1-master_20160802 in bin file ? https://github.com/nodemcu/nodemcu-firmware/releases
In bin file is only available version 0.9.6-dev_20150704: Fix documents.

Please help me...

Issues in flashing firmware

Hi guys, I am having a problem with flashing the firmware in ESP8266. I am using NODEMCU FIRMWARE PROGRAMMER. GPIO0 -> LOW when I upload the firmware. I have done this couple of times but from past few days I am unable to flash the firmware. I get the this message at serial monitor if I restart the chip

"ets Jan 8 2013,rst cause:2, boot mode:(5,7)

waiting for host"

I have tried different ESP8266 but they all are behaving in the same manner. Actually ESP8266 doesn't connects to flasher. USB to Serial converter blink while flashing but nothing happens. ESP8266 does connects when I do the following while flashing

GPIO0 -> LOW
GPIO2 -> HIGH
GPIO15 -> LOW

By doing this flasher shows the successful firmware ( .bin file ) upload sign but when I try to upload the code from ESPlorer to ESP8266 I get this message

"
PORT OPEN 230400

Communication with MCU..................................Got answer! AutoDetect firmware...

Can't autodetect firmware, because proper answer not received."

Can anyone please help me out or identify that the mistake.
Thankyou

Get these running on a mac?

Any releases for mac, or some instructions for how to build them?

I've never done that so directions would be required!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.