-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Better support for 1 MB modules #518
Comments
Most changes you need to do can be done in ext_def.h . There are the defaults for all config settings and also the pin definitions i.e. for I2C or the connection of the PM sensors. |
I do understand that you rely on modern 4MB modules as a "mainstream", however there are lots of enthusiasts who may want to try older ESPs. I'm not asking you to keep building and providing binary firmware for generic platform. I'm just suggesting to make minor changes to the code in this repository to enable the project to compile for other ESP boards. As far as I discovered, there are very few changes needed to establish such a compatibility:
Actually, I can prepare a PR with such changes if you agree to it. P.S. Addressing possible API changes – I hope you will keep the old API as long as possible for compatibility. You're not assuming all the devices worldwide have OTA enabled, are you? And there are devices not using code from this repo (Raspberry Pi-based, for instance) that uses the same API. |
At first: please use the beta branch for changes. This is the latest code. There should be a part with definitionsf for D0 .. D10 for the Arduino boards. If you remove the #ifdef or change it in a way that all non-NodeMCU will use this these definitions will be used. The actual master is using the axTLS implementation as the BearSSL needs too much flash space. With that an OTA wont be able. And also your board with less or equal than 1MByte may be have bot enough flash space for the firmware. We will keep the "old" API, but we may add additional endpoints for data input. |
Thanks @ricki-z. I have no problem amending the code to make it work for me, I was just thinking about other possible users and cleanliness of the project code. Glad to hear you're moving to latest Arduino core. I do not want to make your development process harder in in any way, so I think we should close this issue. |
We moved all module dependent definitions to ext_def.h. so an adoption for other boards should be really easy. |
I was trying to build an airsensor based on ESP-201 module recently. It is a esp8266 with 1 Mb of flash.
Pre-compiled firmware binaries fail to boot on such device, because it tries to initialize SPIFFS beyond the flash size. I was able to recompile and successfully flash firmware by changing board setting. However, current code relies on NodeMCU board in many ways, so I had to change minor things here and there in sources.
My suggestion is to adapt the code so it can be easily compiled for various esp8266 boards other than NodeMCU, in particular 1 Mb boards. I understand that OTA will be unavailable for 1 Mb devices, however manual flashing might be enough for some enthusiasts.
The text was updated successfully, but these errors were encountered: