orca/src/ext/wasm3/platforms/embedded/fomu
Ben Visness 29cb9f50e4 Add commands to deal with Orca source code:
- Add a vendor commands
- Add a command that helps you set up a C compiler
- Move ext into the src folder
- Update Mac build scripts for consistency
- Update Windows batch scripts
2023-09-16 17:54:56 +02:00
..
include Add commands to deal with Orca source code: 2023-09-16 17:54:56 +02:00
ld Add commands to deal with Orca source code: 2023-09-16 17:54:56 +02:00
src Add commands to deal with Orca source code: 2023-09-16 17:54:56 +02:00
.env Add commands to deal with Orca source code: 2023-09-16 17:54:56 +02:00
.gitignore Add commands to deal with Orca source code: 2023-09-16 17:54:56 +02:00
Makefile Add commands to deal with Orca source code: 2023-09-16 17:54:56 +02:00
README.md Add commands to deal with Orca source code: 2023-09-16 17:54:56 +02:00
gdb_init Add commands to deal with Orca source code: 2023-09-16 17:54:56 +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