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

[question] Running Tasmota on a ESP8266 with 512KB of RAM? #7365

Closed
j4k3 opened this issue Dec 29, 2019 · 3 comments
Closed

[question] Running Tasmota on a ESP8266 with 512KB of RAM? #7365

j4k3 opened this issue Dec 29, 2019 · 3 comments
Labels
template missing/incomplete Action - Template Missing or incomplete (issue will be closed)

Comments

@j4k3
Copy link

j4k3 commented Dec 29, 2019

Sorry for bothering everybody, but I can't find a definitive answer to this question in the docs: Is it possible to run Tasmota on a system with only 512KB of ROM or is at least 1M a requirement?

To be more precise, I've been trying to get Tasmota to run on a Sparkfun Thing dev https://www.sparkfun.com/products/13711, which is an early ESP8266 dev board with only 512KB of RAM.

I've tried the lite and minimal versions of the latest 8.1 doris as well as numerous other releases to run.

I've installed Tasmota on a bunch of other devices, and the Thing Dev itself is working fine, other Arduino sketches run fine, including Wifi communication. I have also successfully uploaded other compiled binaries with esptool.py from the command line. When I upload the lite or minimal binaries of Tasmota, everything in the esptool.py checks out the same way. I've erased the flash before reprogramming and the process ends with the hash matching, everything fine and dandy. But after rebooting, the board doesn't seem to do anything sensible. No wireless network is established, and the serial console just outputs garbled data.

As mentioned, I've just installed the newest release on other devices including a No-name smart bulb, three Blitzwolf SHP6, and I can also get it to work on a ESP01 but, I'd like to fiddle with it on a development board.
Am I just doing something wrong or is impossible to run Tasmota in 512k and I will have to put my smd soldering skills to the test?

@close-issue-app
Copy link

This issue has been automatically closed because the issue template is missing or incomplete.
Filling the template is required so standard questions don't need to be asked again each time. Our ability to provide assistance is greatly hampered if few minutes are not taken to complete the issue template with the requested information. The details requested potentially affect which options to pursue. The small amount of time you will spend completing the template will also help the volunteers, providing assistance to you, to reduce the time required to help you.
Please, could you be so kind on completing the issue template in order to have more information so as to properly help you?
Thank you for taking the time to report, hopefully it can be resolved soon.
Support Information
Wiki for more information.
Chat for more user experience.
Community for forum.
Code of Conduct
Contributing Guideline and Policy

@close-issue-app close-issue-app bot added the template missing/incomplete Action - Template Missing or incomplete (issue will be closed) label Dec 29, 2019
@meingraham
Copy link
Collaborator

meingraham commented Dec 29, 2019

The default memory map for Tasmota is 1MB and the default features compiled cause the binary to be larger than 512K. To use a device with 512K you will have to change the memory parameters for proper compilation AND you will have to disable enough features to get the binary size so it fits in 512K. However, once you flash the device via serial, you will ALWAYS have to flash any updates via serial because OTA flash requires flash to be ~2x the size of the final running binary. With 512K you will never have enough free memory to fit the two binaries concurrently.

Net-net - get yourself an ESP device with 1MB of flash memory or greater (and anything over 1MB is usually a waste).

Please address any further questions to the Tasmota Support Discord Chat. The chat is a better and more dynamic channel for helping you. Github issues are best used for Tasmota software feature requests and bug reporting. Troubleshooting and setup assistance is more effective using an interactive forum.

Please check the Contributing Guideline and Policy and the Support Guide.

Thanks.

Support Information

See Wiki for more information.
See Chat for more user experience.
See Community for forum.
See Code of Conduct

@b0rder
Copy link

b0rder commented May 3, 2020

For those who has 512k devices and want to use Tasmota.
As mentioned before, it is need to build Tasmota firmware with minimal modules. If you still want WEB gui, follow instruction below (to build using platformio).

  1. Create ./src/Tasmota/platformio_override.ini with the follow content:
[common]
build_flags               = ${core_active.build_flags}
                          -DUSE_CONFIG_OVERRIDE
board                     = esp01
board_build.ldscript      = eagle.flash.512k32.ld
  1. Create ./src/Tasmota/tasmota/user_config_override.h with the follow content:
#ifndef _USER_CONFIG_OVERRIDE_H_
#define _USER_CONFIG_OVERRIDE_H_
#undef USE_EMULATION
#undef USE_EMULATION_HUE 
#undef USE_EMULATION_WEMO
#endif
  1. Build firmware:
    pio run -e tasmota-lite
  2. Upload compiled firmware to ESP:
    esptool.py --port $DEV --baud 921600 write_flash -fm dout 0x00000 .pioenvs/tasmota-lite/firmware.bin

Instead of $DEV use your own port name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template missing/incomplete Action - Template Missing or incomplete (issue will be closed)
Projects
None yet
Development

No branches or pull requests

3 participants