About the PUYA version

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
bi4wms
Normal user
Posts: 6
Joined: 22 Apr 2018, 09:32

About the PUYA version

#1 Post by bi4wms » 22 Apr 2018, 10:09

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

TD-er
Core team member
Posts: 3532
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: About the PUYA version

#2 Post by TD-er » 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)

xury
Normal user
Posts: 44
Joined: 02 Apr 2018, 12:54

Re: About the PUYA version

#3 Post by xury » 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.

bi4wms
Normal user
Posts: 6
Joined: 22 Apr 2018, 09:32

Re: About the PUYA version

#4 Post by bi4wms » 28 Apr 2018, 03:02

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 ^-^

bi4wms
Normal user
Posts: 6
Joined: 22 Apr 2018, 09:32

Re: About the PUYA version

#5 Post by bi4wms » 28 Apr 2018, 03:04

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.

xury
Normal user
Posts: 44
Joined: 02 Apr 2018, 12:54

Re: About the PUYA version

#6 Post by xury » 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.
Attachments
esp8266.zip
(8.39 KiB) Downloaded 269 times
puya_v2.patch.zip
(668 Bytes) Downloaded 295 times

bi4wms
Normal user
Posts: 6
Joined: 22 Apr 2018, 09:32

Re: About the PUYA version

#7 Post by bi4wms » 08 May 2018, 12:04

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

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: About the PUYA version

#8 Post by grovkillen » 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?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

xury
Normal user
Posts: 44
Joined: 02 Apr 2018, 12:54

Re: About the PUYA version

#9 Post by xury » 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.

bi4wms
Normal user
Posts: 6
Joined: 22 Apr 2018, 09:32

Re: About the PUYA version

#10 Post by bi4wms » 09 May 2018, 03:57

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
Last edited by bi4wms on 09 May 2018, 04:10, edited 1 time in total.

bi4wms
Normal user
Posts: 6
Joined: 22 Apr 2018, 09:32

Re: About the PUYA version

#11 Post by bi4wms » 09 May 2018, 03:57

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

Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests