You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wasm3/platforms/fomu
Volodymyr Shymanskyy b8fffa0c5c
Update examples
5 years ago
..
include Add Fomu platform 5 years ago
ld Add Fomu platform 5 years ago
src Update examples 5 years ago
.env Moved things around 5 years ago
.gitignore Add Fomu platform 5 years ago
Makefile Update examples 5 years ago
README.md Add Fomu platform 5 years ago
gdb_init Add Fomu platform 5 years ago

README.md

Build for Fomu

export PATH=/opt/fomu-toolchain-linux_x86_64-v1.5.1/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