Skip to content
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

Not flashing on an NodeMcu ESP32 wroom #585

Open
5p0ng3b0b opened this issue Feb 1, 2025 · 8 comments
Open

Not flashing on an NodeMcu ESP32 wroom #585

5p0ng3b0b opened this issue Feb 1, 2025 · 8 comments

Comments

@5p0ng3b0b
Copy link

Hi, I have tried to flash the latest firmware in linux with the following command:
esptool.py --port /dev/ttyUSB0 --baud 921600 --chip esp32 write_flash 0x1000 user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin 0x00000 boot_v1.6.bin

It does not work? Here is the output from running it.

esptool.py v4.8.1
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 94:e6:86:02:a3:50
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Unexpected chip id in image. Expected 0 but value was 2408. Is this image for a different chip model?

A fatal error occurred: boot_v1.6.bin is not an ESP32 image. Use --force to flash anyway.

If I omit the boot_v1.6.bin file, the other files flash OK. Can I use the --force option and if so how do I use it in the supplied command? Is there a working alternative boot image for this device to write instead? I have written this esp-link firmware to the old micro usb NodeMcu devices in the past and I am unable to recall experiencing any issues there.

@5p0ng3b0b
Copy link
Author

I got impatient and added --force to the end of the command (use the force lol). Everything flashed fine and I can still reflash. I do not however see an esp-link ssid in my wifi settings to connect and configure it though.

@uzi18
Copy link
Contributor

uzi18 commented Feb 1, 2025

It is not compatible with esp32

@5p0ng3b0b
Copy link
Author

It is an esp32 afaik. Bought it a year ago but been busy and forgetful. It is an ESP-WROOM-DA MODULE as far as Arduino IDE is concerned and I can flash WiFiTelnetToSerial on it. I tried with the flaky Expressiv windows flash app from the SDK. After flashing and booting, I monitor the com port @115200 and get:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x000004ea
invalid header: 0x000004ea
invalid header: 0x000004ea
invalid header: 0x000004ea
invalid header: 0x000004ea
invalid header: 0x000004ea
invalid header: 0x000004ea
invalid header: 0x000004ea
ets Jul 29 2019 12:21:46

I tried another windows app from here https://github.com/marcelstoer/nodemcu-pyflasher (I had to make a combined fw first). It would not flash due to the following error.
Unexpected chip id in image. Expected 0 but value was 2592. Is this image for a different chip model?

@drencorxeen
Copy link

@5p0ng3b0b
ESP-Link is for the ESP-8266 modules. If you look at the main README is says to prepair your ESP-8266.

Based on this, you will need a ESP-8266 based module not a ESP-32 based module.

@uzi18
Copy link
Contributor

uzi18 commented Feb 3, 2025

@5p0ng3b0b have ignored all the warnings about possible wrong chip...

@5p0ng3b0b
Copy link
Author

Oops, i'm such a bell-end, I gave my brother the 8266 by mistake then. I wondered why I'd flashed before without issue. I'll have to swap it with him. Thank you, I appreciate your help and apologies for my stupidity. I have also learned that not all ESPs are equal. :)

@drencorxeen
Copy link

@5p0ng3b0b

Not a problem. I think at some point we all do things like that. Why there are phrases like, "If it was under your nose it would have bit you." or other type phrases.

I bought a few of the ESP8266-01 modules at Micro Center. I am sure there are other model of dev boards that have more control lines for you to use as well.

Hope you find a model that works for you.

@uzi18
Copy link
Contributor

uzi18 commented Feb 6, 2025

@5p0ng3b0b @drencorxeen In fact there is still demand for esp32 port :)

@5p0ng3b0b what kind of esp-link features You need?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants