micropython / micropython-esp32

Old port of MicroPython to the ESP32 -- new port is at https://github.com/micropython/micropython
MIT License
678 stars 218 forks source link

flash read error with latest firmware #130

Closed eugenio closed 7 years ago

eugenio commented 7 years ago

Hello all, I am using a doit devkit one board with esp-wroom32 and latest firmware downloaded fromthe mp website but once I flash the firmware and connect via putty on windows it throws a continuos stream of flash read error and reset until I press enter and at that moment it gives me a basic interpreter prompt but i canno import any modules or do any operation because it trows a bunch of what? or how? in the console Is it only me or someone else had this issue with the latest firmware from the site?

robert-hh commented 7 years ago

I never have seen this behavior, but I never tried the build from the site. I have placed my own build here: https://github.com/robert-hh/Shared-Stuff. You might give it a try.

dpgeorge commented 7 years ago

The WROOM module may use QIO mode for the flash, while the firmware on the download site is configured for DIO flash, and this can lead to the issue you describe. Please see the esp32/README.md file on how to configure and build the yourself.

eugenio commented 7 years ago

Thanks @dpgeorge, I'll do so and report the results here.

rdagger commented 7 years ago

I'm having trouble with today's daily build 7-25. I upgraded from the 7-20 version which was working great. I get the follow error on the 7-25 when I try to connect via serial:

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 Falling back to built-in command interpreter. OK >ets Jun 8 2016 00:22:57

I reverted back to 7-20 and everything works again.

dpgeorge commented 7 years ago

There was a recent change which means you now need to flash the firmware starting at offset 0x1000. See #109.

rdagger commented 7 years ago

@dpgeorge Thanks for the quick reply. It's working great now.