Development environments
Arduino IDE (Portable)
INSTALL : arduino-1.8.13-windows.zip + create portable folder
- Installed in : C:\Embedded\arduino-1.8.13\arduino.exe
- ie. C:\Embedded\arduino-1.8.13\examples\...
- ie. C:\Embedded\arduino-1.8.13\libraries\XXX\examples\...
- create portable folder : C:\Embedded\arduino-1.8.13\portable
see: https://www.arduino.cc/en/Guide/PortableIDE
- ie. C:\Embedded\arduino-1.8.13\portable\staging\libraries
- ie. C:\Embedded\arduino-1.8.13\portable\staging\packages
- File >> Preferences >> Additional boards manager URLs : https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json%%
- ie. C:\Embedded\arduino-1.8.13\portable\packages\esp32
- ie. C:\Embedded\arduino-1.8.13\portable\packages\esp8266
- "File >> Examples" ... are shown only when ESP board is selected
- ie. C:\Embedded\arduino-1.8.13\portable\packages\esp32\hardware\esp32\1.0.6\libraries\..
- ie. C:\Embedded\arduino-1.8.13\portable\packages\esp8266\hardware\esp8266\2.7.4\libraries\...
- ie. C:\Embedded\arduino-1.8.13\portable\packages\esp8266\hardware\esp8266\2.7.4\tests\...
- File >> Preferences >> Sketchbook loaction : sketchbook
- ie. C:\Embedded\arduino-1.8.13\portable\sketchbook\*
- ie. C:\Embedded\arduino-1.8.13\portable\sketchbook\libraries\* ... global libraries ?
- ie. C:\Embedded\arduino-1.8.13\portable\sketchbook\libraries\XXXXX\examples
Arduino IDE + ESP Tutorials
Platform IO + Visual Studio Code
INSTALL :
- python-3.9.5-amd64.exe ... (mandatoty for PlatformIO)
- VSCodeUserSetup-x64-1.56.0.exe
- VS Code "PlatformIO" Extension
- GitHubDesktopSetup-x64.exe ... (optional for PlatformIO)
- Installed in :
- C:\Programs\Microsoft VS Code
- C:\Programs\Python3
- DATA : C:\Users\USER\.platformio\packages\toolchain-xtensa32\* .. toto neni dobre ale asi sa s tym neda nic robit
- PROJECTS : C:\Embedded\Projects_IO\*
PATH EnvVars :
- C:\Programs\Microsoft VS Code\bin
- C:\Programs\Python3\Scripts\
- C:\Programs\Python3\
HINTS :
PlatformIO - Frameworks
PlatformIO - Video tutorials
TROUBLESHOOTING
Building .pio\build\ESP32_WEMOS_D1_MINI\bootloader.bin
Traceback (most recent call last):
File "C:\Users\username\.platformio\packages\tool-esptoolpy\esptool.py", line 41, in <module>
import esptool
File "C:\Users\username\.platformio\packages\tool-esptoolpy\esptool\__init__.py", line 42, in <module>
from esptool.bin_image import intel_hex_to_bin
File "C:\Users\username\.platformio\packages\tool-esptoolpy\esptool\bin_image.py", line 16, in <module>
from intelhex import HexRecordError, IntelHex
ModuleNotFoundError: No module named 'intelhex'
*** [.pio\build\ESP32_WEMOS_D1_MINI\bootloader.bin] Error 1
Reason : Upgraded
Espressif 32 framework
Resolution(s) :
- Try Fix python :
pio upgrade then @@pio system prune -f
- If unsucessfull Uninstal and install again Espressif 32 framework/platform
pio platform uninstall espressif32
pio platform install espressif32
- Test if IntelHex is installed :
pio pkg exec -p tool-python -- python -c "import intelhex; print(intelhex.__version__)"
ESP-32 / ESP-8266
HINTS
ESP - Form Factors comparison
All modules : https://www.espressif.com/en/products/modules