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

Restore fails on define USE_SCRIPT firmware #142

Closed
Subnum12 opened this issue Feb 11, 2024 · 1 comment
Closed

Restore fails on define USE_SCRIPT firmware #142

Subnum12 opened this issue Feb 11, 2024 · 1 comment

Comments

@Subnum12
Copy link

I did create 2 firmware files based on tasmota-4M (13.3.0)
Firmware A was done with no modification except some sensors removals (to reduce firmware size - just in case)
Firmware B was done with same settings as firmware A with additional define

#ifndef USE_SCRIPT
#define USE_SCRIPT
  #ifdef USE_RULES
    #undef USE_RULES
  #endif
#endif

I can create backup dump on both versions.
I can restore both dump files on Firmware A.
I cannot restore both dump files on Firmware B.
I'm getting "Not enough space" while I guess in fact real issue belongs on parsing dump file

console output (level 4)

[10:57:40]10:57:39.802 HTP: Restore Configuration
[10:57:52]10:57:51.704 CFG: Saved to flash at 3FB, Count 202, Bytes 4096
[10:57:52]10:57:51.704 UPL: File Config_tasmota.dmp
[10:57:52]10:57:51.725 APP: Not enough space
[10:57:52]10:57:51.734 UPP: Multicast (re)joined
[10:57:52]10:57:51.737 HTP: Upload done

I did compare dumps with decode-config and noticed on firmware B parameter rules got removed while script where added beside I guess not relevant changes on crc and save_flag modification.

As the script itself it not part of the backup (saved in script.txt on UFS) I do not understand the behavior.

Going back to older versions it looks like behavior did occur on Tasmota 12.1 until now.

memory on Firmware A

Flash Size	4096 KB
Program Flash Size	4096 KB
Program Size	611 KB
Free Program Space	1436 KB
Free Memory	26.6 KB
File System Size	2024 KB

memory on Firmware B

Flash Size	4096 KB
Program Flash Size	4096 KB
Program Size	625 KB
Free Program Space	1420 KB
Free Memory	17.9 KB 
File System Size	2024 KB
@Subnum12
Copy link
Author

sorry, wrong repository..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant