mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
Documentation: esp32-devkitc: Improve html rendering
This commit is contained in:
committed by
Petro Karashchenko
parent
3b136771ff
commit
045f8753e2
@@ -326,32 +326,32 @@ This example uses littlefs on ESP32's SPI flash to store wasm modules.
|
|||||||
1. Create a littlefs image which contains wasm modules.
|
1. Create a littlefs image which contains wasm modules.
|
||||||
|
|
||||||
https://github.com/jrast/littlefs-python/blob/master/examples/mkfsimg.py
|
https://github.com/jrast/littlefs-python/blob/master/examples/mkfsimg.py
|
||||||
is used in the following example.
|
is used in the following example::
|
||||||
|
|
||||||
% python3 mkfsimg.py \
|
% python3 mkfsimg.py \
|
||||||
--img-filename ..../littlefs.bin \
|
--img-filename ..../littlefs.bin \
|
||||||
--img-size 3080192 \
|
--img-size 3080192 \
|
||||||
--block-size 4096 \
|
--block-size 4096 \
|
||||||
--prog-size 256 \
|
--prog-size 256 \
|
||||||
--read-size 256 \
|
--read-size 256 \
|
||||||
..../wasm_binary_directory
|
..../wasm_binary_directory
|
||||||
|
|
||||||
2. Write the NuttX image and the filesystem to ESP32.
|
2. Write the NuttX image and the filesystem to ESP32::
|
||||||
|
|
||||||
% esptool.py \
|
% esptool.py \
|
||||||
--chip esp32 \
|
--chip esp32 \
|
||||||
--port /dev/tty.SLAB_USBtoUART \
|
--port /dev/tty.SLAB_USBtoUART \
|
||||||
--baud 921600 \
|
--baud 921600 \
|
||||||
write_flash \
|
write_flash \
|
||||||
0x1000 ..../bootloader-esp32.bin \
|
0x1000 ..../bootloader-esp32.bin \
|
||||||
0x8000 ..../partition-table-esp32.bin \
|
0x8000 ..../partition-table-esp32.bin \
|
||||||
0x10000 nuttx.bin \
|
0x10000 nuttx.bin \
|
||||||
0x180000 ..../littlefs.bin
|
0x180000 ..../littlefs.bin
|
||||||
|
|
||||||
3. Mount the filesystem and run a wasm module on it.
|
3. Mount the filesystem and run a wasm module on it::
|
||||||
|
|
||||||
nsh> mount -t littlefs /dev/esp32flash /mnt
|
nsh> mount -t littlefs /dev/esp32flash /mnt
|
||||||
nsh> iwasm /mnt/....
|
nsh> iwasm /mnt/....
|
||||||
|
|
||||||
efuse
|
efuse
|
||||||
-----
|
-----
|
||||||
|
|||||||
Reference in New Issue
Block a user