Page 1 of 1

About the PUYA version

Posted: 22 Apr 2018, 10:09
by bi4wms
I have a problem about the PUYA version, use the ESPEasy_v2.0-20180221, when flash the pre-build ESP_Easy_v2.0-20180221_dev_ESP8266PUYA_1024.bin, it is OK,but when i compile the source myself, flash the PUYA version -with or without VCC, when power on allways reset. could someone give any advices,thanks

Re: About the PUYA version

Posted: 22 Apr 2018, 10:53
by TD-er
When you build it yourself, it is not able to write to SPIFF, the flash filesystem used.
This means the settings cannot be written.

I am not sure if (and if so, in what version) the patch for this has been merged into the core libraries.
Using Platform IO, it is quite hard to build a proper version yourself. (at least in Windows)

Re: About the PUYA version

Posted: 22 Apr 2018, 17:23
by xury
I spent lot of time trying compile for PUYA using platformIO with no success.
So I swap to Arduino on Debian, and now is much better.
I have patched esp.ccp with proper patch.
When I'll come back home I can attach a patch or esp.ccp file for 2.4.1 core
I use it witch ESP-01s and everything sims work well.

Re: About the PUYA version

Posted: 28 Apr 2018, 03:02
by bi4wms
xury wrote: 22 Apr 2018, 17:23 I spent lot of time trying compile for PUYA using platformIO with no success.
So I swap to Arduino on Debian, and now is much better.
I have patched esp.ccp with proper patch.
When I'll come back home I can attach a patch or esp.ccp file for 2.4.1 core
I use it witch ESP-01s and everything sims work well.
OK, thanks. waitting for that ^-^

Re: About the PUYA version

Posted: 28 Apr 2018, 03:04
by bi4wms
TD-er wrote: 22 Apr 2018, 10:53 When you build it yourself, it is not able to write to SPIFF, the flash filesystem used.
This means the settings cannot be written.

I am not sure if (and if so, in what version) the patch for this has been merged into the core libraries.
Using Platform IO, it is quite hard to build a proper version yourself. (at least in Windows)
OK, thanks. linux is OK , I am also a linux fan.

Re: About the PUYA version

Posted: 01 May 2018, 00:04
by xury
Please overwrite your Esp.cpp using following file. And after you can compile binaries for PUYA flash IC.
This file should be in your core path as:
/home/yourname/.arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores (if you use Arduino)
The archive contains two files:
patched and original. So you can simply restore.
Next archive is a patch that I found on github. For me it works well.

Re: About the PUYA version

Posted: 08 May 2018, 12:04
by bi4wms
xury wrote: 01 May 2018, 00:04 Please overwrite your Esp.cpp using following file. And after you can compile binaries for PUYA flash IC.
This file should be in your core path as:
/home/yourname/.arduino15/packages/esp8266/hardware/esp8266/2.4.1/cores (if you use Arduino)
The archive contains two files:
patched and original. So you can simply restore.
Next archive is a patch that I found on github. For me it works well.
@xury
OK, I have finished with your guide, but which board do i select for PUYA 1M, thanks

Image

Re: About the PUYA version

Posted: 08 May 2018, 12:13
by grovkillen
Nighties releases have two bin files for PUYA already.

ESP_Easy_mega-20180507_dev_ESP8266PUYA_1024.bin
ESP_Easy_mega-20180507_dev_ESP8266PUYA_1024_VCC.bin


could you please try these for us?

Re: About the PUYA version

Posted: 09 May 2018, 00:38
by xury
Spiffs size is depending how much plugins you have. I compiled with normal and added only serial mcu controlled relay. I set 128k spiffs.

Re: About the PUYA version

Posted: 09 May 2018, 03:57
by bi4wms
grovkillen wrote: 08 May 2018, 12:13 Nighties releases have two bin files for PUYA already.

ESP_Easy_mega-20180507_dev_ESP8266PUYA_1024.bin
ESP_Easy_mega-20180507_dev_ESP8266PUYA_1024_VCC.bin


could you please try these for us?
@grovkillenyes ,
yes I know, but my project mainly use pcf8574 and pca9685, and i want to set them output low when power up, so I have to compile myself

for pcf8574 , i add the below init code, does it ok?
Image

and also i want to use a ESP8266's gpio to control a power after pcf8574 inital ok, where should i add the code, thanks

Re: About the PUYA version

Posted: 09 May 2018, 03:57
by bi4wms
xury wrote: 09 May 2018, 00:38 Spiffs size is depending how much plugins you have. I compiled with normal and added only serial mcu controlled relay. I set 128k spiffs.
ok, many thanks