Skip to content

h1romas4/maixduino-wasm3-testing

Repository files navigation

maixduino-wasm3-testing

WebAssembly interpreter Wasm3 on Maixduino.

https://www.youtube.com/watch?v=Hc2sbhGMrig

https://www.youtube.com/watch?v=FSZE7P-SMDc

Require

$ pwd
/opt/kendryte-toolchain/bin
$ ./riscv64-unknown-elf-gcc -v
gcc version 8.2.0 (GCC)
$ kflash -h
...
positional arguments:
  firmware              firmware bin path
...

Build

git clone --recursive https://github.com/h1romas4/maixduino-wasm3-testing.git
cd maixduino-wasm3-testing

maixduino-wasm3-bitblt

cd maixduino-wasm3-bitblt
mkdir build && cd build
# set -DTOOLCHAIN to directory Kendryte GNU Toolchain bin path
cmake .. -DPROJ=bitblt -DSDK_ROOT=./kendryte-standalone-sdk -DTOOLCHAIN=/opt/kendryte-toolchain/bin
make
kflash -p /dev/ttyUSB0 -b 1500000 -B goE -s -t bitblt.bin

maixduino-wasm3-lifegame

cd maixduino-wasm3-lifegame
mkdir build && cd build
# set -DTOOLCHAIN to directory Kendryte GNU Toolchain bin path
cmake .. -DPROJ=lifegame -DSDK_ROOT=./kendryte-standalone-sdk -DTOOLCHAIN=/opt/kendryte-toolchain/bin
make
kflash -p /dev/ttyUSB0 -b 1500000 -B goE -s -t lifegame.bin

Dependencies

name version
Wasm3 0.4.6
AssemblyScript 0.9.1
kendryte-standalone-sdk V0.5.6