Bare-metal Rust on Zynq-7000
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.
 
 
 
 
 
Astro 8432ff3e30 default.nix: update cargoSha256* 5 days ago
.cargo cargo: remove unmaintained runner 2 months ago
experiments experiments: delint 6 days ago
libasync libboard_zynq: implement eth hot-plugging 5 days ago
libboard_zynq libboard_zynq: remove unused eth phy name information 5 days ago
libconfig add feature target_kasli_soc to libsupport_zynq, libconfig, experiments, szl, default.nix 6 days ago
libcoreio add libconfig, libcoreio, szl from artiq-zynq a277e89b3ad; update dependencies 2 months ago
libcortex_a9 libcortex_a9: remove useless target_* features 6 days ago
libregister libregister: allow rustdoc for register! macro 6 days ago
libsupport_zynq add feature target_kasli_soc to libsupport_zynq, libconfig, experiments, szl, default.nix 6 days ago
nix update Rust 1 month ago
openocd openocd: remove xilinx-tcl on Cora Z7 2 weeks ago
szl add feature target_kasli_soc to libsupport_zynq, libconfig, experiments, szl, default.nix 6 days ago
.gitignore remove zc706.elf from gitignore 10 months ago
Cargo.lock libboard_zynq: implement eth hot-plugging 5 days ago
Cargo.toml add libconfig, libcoreio, szl from artiq-zynq a277e89b3ad; update dependencies 2 months ago
README.md README: update board support info 1 week ago
armv7-none-eabihf.json define custom target, use with cargo-xbuild 1 year ago
default.nix default.nix: update cargoSha256* 5 days ago
remote_run.sh remote_run.sh: clean up getopts 1 week ago
shell.nix expose patched cargo-xbuild 1 month ago
xbuild_writable_lockfile.diff patch cargo-xbuild to ensure copied Cargo.lock is writable 1 month ago

README.md

Bare-metal Rust on Zynq-7000

Supported features:

  • Clocking setup
  • UART
  • SDRAM setup
  • Ethernet with smoltcp and async-await on TCP sockets
  • SD card
  • PL programming and startup
  • Pure Rust SZL first-stage bootloader, with SD boot and netboot
  • Control of second CPU core and message passing, with async-await support

Supported boards:

  • ZC706
  • Red Pitaya
  • Cora Z7-10 (seems to also run on Cora Z7-07S, including dual-core support)

Build

nix-shell --command "cargo xbuild --release -p experiments"

Currently the ELF output is placed at target/armv7-none-eabihf/release/experiments

Debug

Running on the ZC706

nix-shell --command "cargo xbuild --release -p experiments"
cd openocd
openocd -f zc706.cfg

Running on the Cora Z7-10

nix-shell --command "cd experiments && cargo xbuild --release --no-default-features --features=target_coraz7"
cd openocd
openocd -f cora-z7-10.cfg

Loading a bitstream into volatile memory

openocd -f zc706.cfg -c "pld load 0 blinker_migen.bit; exit"