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

Puya image - where to find or what to use #2233

Closed
sanderlv opened this issue Jan 11, 2019 · 13 comments
Closed

Puya image - where to find or what to use #2233

sanderlv opened this issue Jan 11, 2019 · 13 comments
Labels
Category: Build Related to building/IDE/releases Type: Question Question about how something works with concrete answers

Comments

@sanderlv
Copy link

ESP-01S to be flashed with puya image. Read a lot, but what image to be used? In the releases there is no image name with "puya" in it?

https://github.com/letscontrolit/ESPEasy/releases

@TD-er
Copy link
Member

TD-er commented Jan 11, 2019

All builds we have now, do have the PUYA patch included.
Even if you build them yourself, using PlatformIO, the current latest version of the source will download a patched version of the core libraries.

@TD-er TD-er added Category: Build Related to building/IDE/releases Type: Question Question about how something works with concrete answers labels Jan 11, 2019
@sanderlv
Copy link
Author

sanderlv commented Jan 11, 2019

Thus, downloading the package and using the "ESP_Easy_mega-20190108_normal_ESP8266_1024.bin" firmware should work? It doesn't :-(

flashing is successful however.

@TD-er
Copy link
Member

TD-er commented Jan 11, 2019

What is working and what not?
And are you sure it is an 1 MB flash node? There are also ESP-01 versions with less.

Can you output the log from the serial port?

@sanderlv
Copy link
Author

Hi, I can flash the firmware via the tool succesfully. But no serial response afterwards. I have tried several images (1mb) etc. But nothing works. 1 Image I have found via a forum that worked (puya build) but I accidentally deleted it and I cannot find it anymore.

@TD-er
Copy link
Member

TD-er commented Jan 14, 2019

Do you have any idea on how old this working image could have been? (estimate up-to 2 months is close enough)

Edit:
Also make sure your power supply is good enough.
The power-supply capabilities of most USB to serial sticks is not enough.

@sanderlv
Copy link
Author

I think it was around 4-6 months ago posted, but very unsure. I really spent an hour with all kinds of searches on google to refind it. But with no luck. I was however able to configurethe esp with esp easy to connect to my wifi (via local wifi at first etc.) But was never able to click the esp on the relay board powered with 5v to work there. Only with the usb 3.3v serial converter and gpio0(?) Connected to... ground or (just trying ;-))

@TD-er
Copy link
Member

TD-er commented Jan 14, 2019

When you connect GPIO0 to GND, you will force the unit to boot in flash mode.
So as long as that connection exists, it will never boot to load the flashed firmware.

@sanderlv
Copy link
Author

Yes, and not working with or without...

@TD-er
Copy link
Member

TD-er commented Jan 14, 2019

Have you also tried to explicit pull it to high via a resistor? (4k7 Ohm for example, between 3v3 and GPIO0)

@petefirefox
Copy link

I have quite a lot of experiments recently with ESP8266-01 modules that have PUYA flash on board.
I also face quite some issues flashing them.
The symptoms are that I can flash them the 1st time fine, but if I want to reflash them (as I do some experiments with a custom plugin that I build), then I do get totally unreliable results.

But I found a workaround. Maybe that workaround can also be helpful here and also give some indication on a potential fix/workaround.

If I do flash the following image:
ESPEasy_R147_RC8/ESPEasy_R147_1024.bin 

And then I have to reset and check in the serial monitor that all the sectors get erased.
Once the serial monitor shows something with "deepsleep", then I can again set the device into flash mode.
If I now flash the new image based on 2.50 core, then I get a reliable behaviour.

I was also trying to flash instead of the R147_RC8 image the beta 2.50 image as of 31122018. But that also resulted in none-stable results.

Effect is that actually the old image/configuration is not or only partially overwritten by the new binary.
If that is actually intended, then I have to apologize for my ignorance and misunderstanding.

Could you try if that workaround works for you, too?

@TD-er
Copy link
Member

TD-er commented Jan 19, 2019

The zip file with nightly builds also has "empty" files, which you can flash. These contain all 0xFF and thus effectively erase all sectors of the flash chip.
That may be easier to do as an intermediate step between flashing versions.

@petefirefox
Copy link

I actually tried those. But it also did not work reliable.
For me the only reliable method of clearing the ESP8266-01 and getting new binary on it at the moment is as described above.
I probably have done somewhere around 50 flashing rounds on the same device with the last week. And the above method worked fine every time. The other trials mostly failed.

If someone is only flashing a new ESP8266-01 a single time, then the issue might not pop up. But if you do multiple flashes, then you might run into it. At least I did heavily on multiple parts, as I was taking a new ESP8266-01 if the old device was unusable at some point in time.

@Muller59
Copy link

Muller59 commented May 6, 2019

Using the esptool.py like this
c:\python27\python esptool.py --port COM4 --baud 115200 erase_flash
always works for me in case of failed flashes
download from here -> https://github.com/espressif/esptool

@TD-er TD-er closed this as completed Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Build Related to building/IDE/releases Type: Question Question about how something works with concrete answers
Projects
None yet
Development

No branches or pull requests

4 participants