orca/ext/wasm3/platforms/embedded/fomu
Martin Fouilleul 17c0f02962 orca runtime initial commit 2023-04-12 16:21:03 +02:00
..
include orca runtime initial commit 2023-04-12 16:21:03 +02:00
ld orca runtime initial commit 2023-04-12 16:21:03 +02:00
src orca runtime initial commit 2023-04-12 16:21:03 +02:00
.env orca runtime initial commit 2023-04-12 16:21:03 +02:00
.gitignore orca runtime initial commit 2023-04-12 16:21:03 +02:00
Makefile orca runtime initial commit 2023-04-12 16:21:03 +02:00
README.md orca runtime initial commit 2023-04-12 16:21:03 +02:00
gdb_init orca runtime initial commit 2023-04-12 16:21:03 +02:00

README.md

Build for Fomu

export PATH=/opt/fomu-toolchain-linux_x86_64-v1.5.6/bin:$PATH
make

Upload:

dfu-util -D wasm3.dfu

Hints

# To reboot fomu:
wishbone-tool 0xe0006000 0xac

# To run previously flashed program on Fomu:
dfu-util -e

Debugging

wishbone-tool -s gdb

On second tab:

riscv64-unknown-elf-gdb wasm3.elf -ex 'target remote localhost:1234'

b m3_CallWithArgs
print *(uint64_t*)env->stack