Bare-metal Rust on the Xilinx Zynq ZC706 devkit
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
pca006132 78d58d17ec libsupport_zynq: fix stack pointer problems 3 years ago
.cargo cargo: remove unmaintained runner 3 years ago
experiments libsupport_zynq: fix stack pointer problems 3 years ago
libasync libboard_zynq: implement eth hot-plugging 3 years ago
libboard_zynq libboard_zynq: remove unused eth phy name information 3 years ago
libconfig add feature target_kasli_soc to libsupport_zynq, libconfig, experiments, szl, default.nix 3 years ago
libcoreio add libconfig, libcoreio, szl from artiq-zynq a277e89b3ad; update dependencies 3 years ago
libcortex_a9 libcortex_a9: added interrupt_handler macro 3 years ago
libregister libregister: allow rustdoc for register! macro 3 years ago
libsupport_zynq libsupport_zynq: fix stack pointer problems 3 years ago
nix updated rust and compiler_builtins 3 years ago
openocd openocd: remove xilinx-tcl on Cora Z7 3 years ago
szl libsupport_zynq: fix stack pointer problems 3 years ago
.gitignore remove zc706.elf from gitignore 4 years ago
Cargo.lock libsupport_zynq: custom memcpy 3 years ago
Cargo.toml add libconfig, libcoreio, szl from artiq-zynq a277e89b3ad; update dependencies 3 years ago
README.md README: update board support info 3 years ago
armv7-none-eabihf.json define custom target, use with cargo-xbuild 4 years ago
default.nix libsupport_zynq: custom memcpy 3 years ago
remote_run.sh remote_run.sh: clean up getopts 3 years ago
shell.nix libsupport_zynq: custom memcpy 3 years ago
xbuild_writable_lockfile.diff patch cargo-xbuild to ensure copied Cargo.lock is writable 3 years 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"