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

ESP32D0WDQ6 (revision 1) not flashing correctly since release 2.01 #1804

Closed
stefanodellavalle opened this issue Apr 23, 2020 · 13 comments
Closed
Labels
ESP32 This is only a problem on ESP32-based devices

Comments

@stefanodellavalle
Copy link

I've tested every combination of cables, esptool parameters and options, but I can't flash a ESP32 dev board correctly with higher versions than the 2.0

Version 2.0 works perfectly.

Flashing younger versions produce a boot loop. Attached a screen capture.

945a260ab6c1da94e3cc3431f8e6331c1ba43153 1

@MaBecker MaBecker added the ESP32 This is only a problem on ESP32-based devices label Apr 23, 2020
@MaBecker
Copy link
Contributor

Erase flash and try again.

Please share information about to board you use:

esptool.py --port $COMPORT flash_id

output should look similar to this one

esptool.py v2.8
Serial port /dev/cu.SLAB_USBtoUART
Connecting........___
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: a4:cf:12:76:64:b4
Uploading stub...
Running stub...
Stub running...
Manufacturer: c8
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...

@MaBecker
Copy link
Contributor

ESP32-S0WD and ESP32-D2WD can only run with 160 MHZ

@stefanodellavalle
Copy link
Author

Yes, every test on every version has been done erasing the flash and then flashing the code.

Here is the output.

esptool.py --port COM4 flash_id
esptool.py v2.8
Serial port COM4
Connecting........_____....._
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 160MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 84:0d:8e:11:2f:94
Uploading stub...
Running stub...
Stub running...
Manufacturer: 20
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...

@stefanodellavalle
Copy link
Author

ESP32-S0WD and ESP32-D2WD can only run with 160 MHZ

I've tried flashing the release 2.05 using the --flash_freq keep option, but nothing changed.

@MaBecker
Copy link
Contributor

The cpu frequency is part of the esp-idf configuration and is set to 240 MHz.

40MHz/80MHz is the SPI flash frequency setting.
It is not related to CPU frequency setting.
CPU frequency is set at the time this library is compiled,
and can not be changed afterwards.

If you want espruino on your board you have to go through the esp-idf setup process and create libs for 160 MHz. With those libs you can build a ESP32 160 MHz Espruino version.

@MaBecker
Copy link
Contributor

Chip is ESP32D0WDQ6 (revision 1)
Crystal is 40MHz

same

Features: WiFi, BT, Dual Core, 160MHz, VRef calibration in efuse, Coding Scheme None

different

Is there a way to change 160 to 240 MHz device wise?

@MaBecker
Copy link
Contributor

Version 2.0 works perfectly.

I guess after that there where a switch from 160 to 240 MHz.

@sdellava
Copy link

sdellava commented Apr 24, 2020

Ok. So I've to consider that this device will be not supported from higher release?

In the board there is no way to set the frequency.

@MaBecker
Copy link
Contributor

Ok. So I've to consider that this device will be not supported from higher release?

Or build by your own, as mentioned above. To be honest not easy but not impossible.;-)

@sdellava
Copy link

Ok. well, it seems very much easier to buy a newer board :)

Thanks for your support. To me this issues can be closed.

@MaBecker
Copy link
Contributor

Ok, yes it is very difficult to pick a proper ESP32 board, there are to many.

Maybe you like to post a forum conversation and ask other users to name a recommendation for a board they use or tried with or without success.

@AkosLukacs
Copy link
Contributor

Oh, wouldn't it be nice to gather the working or not-working boards "somewhere"? With date, board revision/version. Ok, might be asking too much...

@MaBecker
Copy link
Contributor

Oh, wouldn't it be nice to gather the working or not-working boards "somewhere"? With date, board revision/version. Ok, might be asking too much...

Sure, just go and updare that source on githup

maybe in section Limitation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ESP32 This is only a problem on ESP32-based devices
Projects
None yet
Development

No branches or pull requests

4 participants