Closed usuyuki closed 11 months ago
999875,
999875,
❯ m r-core2
pio run -t upload -e m5stack-core2
Processing m5stack-core2 (platform: espressif32; board: m5stack-core2; framework: arduino)
---------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html
PLATFORM: Espressif 32 (6.4.0+sha.6186d2c) > M5Stack Core2
HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 @ 3.20011.230801 (2.0.11)
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- tool-mkfatfs @ 2.0.1
- tool-mklittlefs @ 1.203.210628 (2.3)
- tool-mkspiffs @ 2.230.0 (2.30)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Wasm3 @ 0.5.0
Building in release mode
Compiling .pio/build/m5stack-core2/src/lib/roader/wasm-roader.cpp.o
Compiling .pio/build/m5stack-core2/src/lib/wasm-functions/arduino/arduino.cpp.o
Compiling .pio/build/m5stack-core2/src/lib/wasm-functions/arduino/serial.cpp.o
Linking .pio/build/m5stack-core2/firmware.elf
Retrieving maximum program size .pio/build/m5stack-core2/firmware.elf
Checking size .pio/build/m5stack-core2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.5% (used 22528 bytes from 4521984 bytes)
Flash: [= ] 5.6% (used 368545 bytes from 6553600 bytes)
Building .pio/build/m5stack-core2/firmware.bin
esptool.py v4.5.1
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/ttyUSB0
Uploading .pio/build/m5stack-core2/firmware.bin
esptool.py v4.5.1
Serial port /dev/ttyUSB0
Connecting.......
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:f9:a4:cc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0006afff...
Compressed 17536 bytes to 12202...
Writing at 0x00001000... (100 %)
Wrote 17536 bytes (12202 compressed) at 0x00001000 in 0.7 seconds (effective 193.2 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 255.7 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.2 seconds (effective 378.5 kbit/s)...
Hash of data verified.
Compressed 368912 bytes to 200004...
Writing at 0x00010000... (7 %)
Writing at 0x0001c6ef... (15 %)
Writing at 0x0002a0d6... (23 %)
Writing at 0x000312de... (30 %)
Writing at 0x00036504... (38 %)
Writing at 0x0003bd83... (46 %)
Writing at 0x00041198... (53 %)
Writing at 0x00046732... (61 %)
Writing at 0x0004bf1a... (69 %)
Writing at 0x0005472d... (76 %)
Writing at 0x0005c799... (84 %)
Writing at 0x000634f0... (92 %)
Writing at 0x00068e3e... (100 %)
Wrote 368912 bytes (200004 compressed) at 0x00010000 in 4.8 seconds (effective 621.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
=============================================================================================== [SUCCESS] Took 15.24 seconds ===============================================================================================
Environment Status Duration
------------- -------- ------------
m5stack-core2 SUCCESS 00:00:15.237
=============================================================================================== 1 succeeded in 00:00:15.237 ===============================================================================================
make[1]: ディレクトリ '/opt/usuyuki/mahiwa_space/mahiwa-backend' に入ります
pio device monitor -b 115200
--- Terminal on /dev/ttyUSB0 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
[ 455][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
Project Mahiwa started🎉
ESP32 Mode
CPU Frequency:240 MHz
Project Mahiwa : WebAssembly launch
Rust mahiwa | check_1s
delay 1 second
time(micro): 999875
Project Mahiwa : WebAssembly done
✨ 概要
なぜ必要
備考