ESP32 DoIt Dev Board

1st BOOT

lsusb

Bus 002 Device 006: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

sudo screen /dev/ttyUSB0 115200

 ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0x00
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0008,len:8
load:0x3fff0010,len:2488
load:0x40078000,len:7128
load:0x40080000,len:252
entry 0x40080034
II (1100) cpu_start: Pro cpu up.
I (1101) cpu_start: Single core mode
I (1102) heap_alloc_caps: Initializing. RAM available for dynamic allocation:
I (1115) heap_alloc_caps: At 3FFAE2A0 len 00001D60 (7 KiB): DRAM
I (1135) heap_alloc_caps: At 3FFB8160 len 00027EA0 (159 KiB): DRAM
I (1156) heap_alloc_caps: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (1178) heap_alloc_caps: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (1199) heap_alloc_caps: At 40093EA4 len 0000C15C (48 KiB): IRAM
I (1220) cpu_start: Pro cpu start user code
I (1279) cpu_start: Starting scheduler on PRO CPU.
Mounting flash filesystem...
mount res: 0, 0

=======================================
LuaNode: https://github.com/Nicholas3388/LuaNode
Version: 1.2.2
=======================================

load lib: base
load lib: package
load lib: table
load lib: string
load lib: gpio
load lib: pwm
load lib: node
load lib: wifi
I (1590) wifi: wifi firmware version: 224c254
I (1594) wifi: config NVS flash: enabled
I (1598) wifi: config nano formating: disabled
I (1606) wifi: Init dynamic tx buffer num: 32
I (1606) wifi: Init dynamic rx buffer num: 64
I (1610) wifi: wifi driver task: 3ffc0668, prio:23, stack:3584
I (1616) wifi: Init static rx buffer num: 10
I (1620) wifi: Init dynamic rx buffer num: 0
I (1624) wifi: Init rx ampdu len mblock:7
I (1627) wifi: Init lldesc rx ampdu entry mblock:4
I (1632) wifi: wifi power manager task: 0x3ffc5a20 prio: 21 stack: 2560
load lib: file
load lib: tmr
load lib: i2c
load lib: uart
load lib: utils
load lib: lpeg
load lib: net
load lib: thread
load lib: mqtt
load lib: nvs
other libs:
lua: cannot open init.lua

LUA Shell

We have a LuA shell

> node.restart();
(... will reboot)

> node.heap()
230540
> node.flashsize()
4MB
> node.chipid()
0
> file.fsinfo();
total: 420425, used:0
> file.list()
> gpio.mode(2, gpio.OUTPUT) 
I (372312) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0 
> gpio.write(2,1); tmr.delay(10); gpio.write(2,0);
# turn on blue lest on above usb on right, sleep 10 and off

Learn how to upload to device:

./luatool.py --port /dev/ttyUSB0 -b 115200 --src init.lua --dest init.lua -l

MORE

MISC

MORE

@TaG: EsP

lua.txt · Last modified: 2022/04/16 12:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki