ESP32 (LUA)
ESP32 (LUA)
This page is to Setup and Config ESP32
Hardware and Software
Hardware : ESP32
Software
Notes
White Car Online IDE : https://whitecatboard.org/the-whitecat-ide/
(Firmware with file system installed, Good but not compactable with ChiliPeppr IDE)
Install Firmware : https://github.com/whitecatboard/Lua-RTOS-ESP32
wcc : Automatic download and install firmware to ESP32
Install White Cat Windows Agent: https://github.com/whitecatboard/whitecat-create-agent/wiki
Run Online IDE : https://ide.whitecatboard.org/
ChiliPeppr Online IDE : http://chilipeppr.com/
Firmware : Everything inside : http://chilipeppr.com/esp32
Dowload the esp32tool.zip from Github release page. ChiliPeppr has a pre-compiled firmware for ESP32 for Lua in this file on the Github repository for this workspace in a file called esp32tool.zip.https://github.com/chilipeppr/workspace-esp32-lua/releases.
You also need to have Python 2.7 installed.
Once you have Python installed and have downloaded esp32tool.zip, extract esp32tool.zip, then open a terminal window or command line to the directory you extracted esp32tool.zip into.
Install esptool.py from pip from your command line by running the command below.
pip install esptool
If you need extra help on installing and running esptool.py then visit https://github.com/espressif/esptool
Then run the command below, but make sure to set your serial port to the correct port your ESP32.
esptool.py --port COM7 write_flash 0x1000 bootloader.bin 0x10000 NodeMCU-esp32-adc-bit-bluetooth-can-dht-i2c-ledc-u8g2-ws2812.bin 0x8000 partitions_singleapp.bin
You should now have a fully programmed ESP32 ready to use in this workspace. Hit refresh in the Serial Port JSON Server widget and open the serial port to your device by clicking on it.
For further help, watch the firmware install video tutorial on Youtube.
IDE : Before RUN IDE install : Download and run Serial Port JSON Server : https://github.com/chilipeppr/serial-port-json-server/releases
you have to run this agent before start IDE
This IDE is work on ESPlorer too !
LUA PROGRAMMING : https://nodemcu.readthedocs.io/en/dev-esp32/en/modules/wifi/#wifistaon
Build Firmware
Source : https://github.com/nodemcu/nodemcu-firmware
How to Build : https://nodemcu.readthedocs.io/en/dev-esp32/en/build/
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
WhiteCat WCC Firmware OTA Boot Display
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:3948
load:0x40078000,len:8336
load:0x40080400,len:5836
entry 0x400806bc
.[0;31mE (29) boot: ota data partition invalid and no factory, will try all partitions.[0m
Booting Lua RTOS...
.[2J.[1;1H /\ /\
/ \_____/ \
/_____________\
W H I T E C A T
Lua RTOS beta 0.1. Copyright (C) 2015 - 2018 whitecatboard.org
build 1544487159
commit 54a2b1b22b0bbfab6f873c561c2d4ae4682f4026
Running from ota_0 partition
board type DOIT-ESP32-DEVKIT-V1
cpu ESP32 rev 1 at 240 Mhz
flash EUI 3837333739084f36
spiffs start address at 0xf000, size 512 Kb
spiffs mounted on /
Lua RTOS beta 0.1 powered by Lua 5.3.4
Executing /system.lua ...
Starting wifi ...
Executing /autorun.lua ...
/ >
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Examples
Examples
EXample