Bare-metal Rust on the Xilinx Zynq ZC706 devkit
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.

runner.sh 242B

1234567891011
  1. #!/usr/bin/env bash
  2. set -e -m
  3. ELF=$1
  4. IMAGE=$ELF.bin
  5. arm-none-eabihf-objcopy -O binary $ELF $IMAGE
  6. qemu-system-arm -M xilinx-zynq-a9 -s -kernel $IMAGE -chardev file,id=uart0,path=/tmp/qemu.serial &
  7. sleep 1
  8. gdb -x qemu.gdb $ELF
  9. kill -KILL %1