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
ESP8266 'save()' issue #773
Comments
@tve looks like the amount of flash pages dedicated to saving needs to be increased now that the RAM dedicated to variables has gone up. Probablye just something in I guess moving to 16 byte vars from 12 has meant that some code takes more space. Currently it's only RLE compression, which isn't ideal. |
yup, which means moving some other stuff around and reducing the space available for code. |
There is the LZ4_COMPRESS branch, which will do a much better job of compression - it does however use more flash for the compression algorithm. I was really hoping to find a very small compressor, but I haven't seen anything... Everyone seems more obsessed with speed than code size :) |
Have you looked at heatshrink? http://spin.atomicobject.com/2013/03/14/heatshrink-embedded-data-compression/ |
Yes, that looks good... I'd seen that before, I'm not sure why I didn't use it in the branch :( |
Ok, just added it (under LZ4_COMPRESS). It adds 1.5kB to the flash on ARM compiles. Do you reckon it's worth including it by default? edit: Just tested with |
sounds like it pays for itself! :-) |
Ok, just added - Also it has a neat hack now that will go back, delete the command history and try again if it runs out of space in Flash. |
Hi Guys, thanks for attention on this issue, I'm reading this as circa 30% better compression, so code in my original post (15805) would fit in the 12284 space with no tweaking to flash pages or impact on code space as mentioned, when @tve merges from upsteam ? Or is there more to it? |
Build: 1v84.tve_master_c8c854e
Originally reported in Gitter, there is an error which occurs on
save()
. I have the above build.When connected over serial, the error message gets chops so there is not much to help, but when connected via IDE and wifi, concole gives me the following error information.
I had an earlier build to hand (1v84.tve_master_9bf51d3) on another ESP8266 and this issue does not occur with the same program/sketch.
The text was updated successfully, but these errors were encountered: