mirror of https://github.com/arendst/Tasmota.git
Dont use Arduino IDE for Tasmota
parent
a8ee9f263f
commit
b4fa67156e
|
@ -1,8 +1,8 @@
|
||||||
### How to setup and configure Arduino IDE for Tasmota compilation and upload.
|
## **How to setup and configure Arduino IDE for Tasmota compilation and upload.**
|
||||||
|
|
||||||
|
**It is not recommended to use Arduino IDE for compiling Tasmota firmware, use gitpod or VSC to build.**
|
||||||
If you did not use Arduino IDE until now, use Platformio or VSC to build Tasmota fimware.
|
**For these IDEs, setup is much easier and Tasmota project is already configured for.**
|
||||||
For these IDEs, setup is much easier and Tasmota project is already configured for.
|
**At the moment it is _**NOT**_ possible to build Tasmota with Arduino IDE and the recommended core pre 2.6.!**
|
||||||
|
|
||||||
## Download Arduino IDE
|
## Download Arduino IDE
|
||||||
- Download Arduino IDE from https://www.arduino.cc/en/main/software
|
- Download Arduino IDE from https://www.arduino.cc/en/main/software
|
||||||
|
@ -24,18 +24,15 @@ IMPORTANT: For Windows users, before executing *arduino.exe* add an empty folder
|
||||||
|
|
||||||
### Copy files
|
### Copy files
|
||||||
#### ESP8266 Board version 2.3.0 (2.3.x)
|
#### ESP8266 Board version 2.3.0 (2.3.x)
|
||||||
|
**Core is NOT recommended to use (Many security issues), not supported anymore**
|
||||||
- If not available copy from the Tasmota release Source code folder *arduino\version 2.3.0\tools\sdk\ld* file *eagle.flash.1m0.ld* to Arduino IDE folder *portable\packages\esp8266\hardware\esp8266\2.3.0\tools\sdk\ld*.
|
- If not available copy from the Tasmota release Source code folder *arduino\version 2.3.0\tools\sdk\ld* file *eagle.flash.1m0.ld* to Arduino IDE folder *portable\packages\esp8266\hardware\esp8266\2.3.0\tools\sdk\ld*.
|
||||||
- Replace in Arduino IDE folder *portable\packages\esp8266\hardware\esp8266\2.3.0* file *boards.txt* with the Tasmota Source code file *arduino\version 2.3.0\boards.txt*.
|
- Replace in Arduino IDE folder *portable\packages\esp8266\hardware\esp8266\2.3.0* file *boards.txt* with the Tasmota Source code file *arduino\version 2.3.0\boards.txt*.
|
||||||
|
|
||||||
#### ESP8266 Board version 2.4.2 (2.4.x)
|
#### ESP8266 Board version 2.4.2 (2.4.x)
|
||||||
Remove default compile options for floating point ``printf`` and ``scanf`` which are not being used by Tasmota and save 15k code space.
|
**Core is NOT recommended to use (Security issues), not supported anymore**
|
||||||
|
- Remove default compile options for floating point ``printf`` and ``scanf`` which are not being used by Tasmota and save 15k code space.
|
||||||
- Replace in Arduino IDE folder *portable\packages\esp8266\hardware\esp8266\2.4.2* file *platform.txt* with the Tasmota Source code file *arduino\version 2.4.2\platform.txt*.
|
- Replace in Arduino IDE folder *portable\packages\esp8266\hardware\esp8266\2.4.2* file *platform.txt* with the Tasmota Source code file *arduino\version 2.4.2\platform.txt*.
|
||||||
|
|
||||||
#### ESP8266 Board version 2.5.2 (2.5.x)
|
|
||||||
Remove default compile options for floating point ``printf`` and ``scanf`` which are not being used by Tasmota and save 15k code space.
|
|
||||||
- Use Setting Disable Exceptions in Arduino IDE / ``Tools``
|
|
||||||
- Replace in Arduino IDE folder *portable\packages\esp8266\hardware\esp8266\2.5.2* file *platform.txt* with the Tasmota Source code file *arduino\version 2.5.1\platform.txt*.
|
|
||||||
|
|
||||||
#### For all versions
|
#### For all versions
|
||||||
- Copy all files from the Tasmota release Source code folder *lib* into your *sketchbook\libraries* folder.
|
- Copy all files from the Tasmota release Source code folder *lib* into your *sketchbook\libraries* folder.
|
||||||
- About the issue of missing header files and/or libraries while compiling that users had, it is possible that the library folder is in the wrong place. That issue can be happen if you installed your Arduino IDE in a virtual environment. This came up after some tests (6) of an installation in `VM-Ware Workstation 14 Pro - 14.1.1 build-7528167` with not all current updates from VM-Ware. The library folder was placed in **/portable/libraries** and not in **/portable/sketchbook/libraries**. We can't say why that happens but there is the possibilty. So please check it when you get compile errors with missing header files and/or libaries. After updating VM-Ware and a new installation of Arduino IDE 1.8.8 the issue was gone. The installation of Arduino IDE 1.8.8 on windows 7 pro were 100% ok without any issue. Right now the newer version of Arduino IDE is avaiable. Version 1.8.9
|
- About the issue of missing header files and/or libraries while compiling that users had, it is possible that the library folder is in the wrong place. That issue can be happen if you installed your Arduino IDE in a virtual environment. This came up after some tests (6) of an installation in `VM-Ware Workstation 14 Pro - 14.1.1 build-7528167` with not all current updates from VM-Ware. The library folder was placed in **/portable/libraries** and not in **/portable/sketchbook/libraries**. We can't say why that happens but there is the possibilty. So please check it when you get compile errors with missing header files and/or libaries. After updating VM-Ware and a new installation of Arduino IDE 1.8.8 the issue was gone. The installation of Arduino IDE 1.8.8 on windows 7 pro were 100% ok without any issue. Right now the newer version of Arduino IDE is avaiable. Version 1.8.9
|
||||||
|
@ -54,10 +51,6 @@ Remove default compile options for floating point ``printf`` and ``scanf`` which
|
||||||
|
|
||||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/arduinoide242b.png" width="300" />
|
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/arduinoide242b.png" width="300" />
|
||||||
|
|
||||||
#### ESP8266 Board version 2.5.2 (2.5.x):
|
|
||||||
|
|
||||||
<img src="https://github.com/arendst/arendst.github.io/blob/master/media/arduinoide250b.png" width="300" />
|
|
||||||
|
|
||||||
### Optional: Prepare for OTA upload
|
### Optional: Prepare for OTA upload
|
||||||
Tasmota release Source code provides scripts to be installed in the Arduino IDE and your webserver to copy the compiled binary to your webserver. This webserver can then provide the firmware via OTA to the device.
|
Tasmota release Source code provides scripts to be installed in the Arduino IDE and your webserver to copy the compiled binary to your webserver. This webserver can then provide the firmware via OTA to the device.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue