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.
 
 
 
pca006132 78d58d17ec libsupport_zynq: fix stack pointer problems 1 month ago
.cargo cargo: remove unmaintained runner 5 months ago
experiments libsupport_zynq: fix stack pointer problems 1 month ago
libasync libboard_zynq: implement eth hot-plugging 3 months ago
libboard_zynq libboard_zynq: remove unused eth phy name information 3 months ago
libconfig add feature target_kasli_soc to libsupport_zynq, libconfig, experiments, szl, default.nix 3 months ago
libcoreio add libconfig, libcoreio, szl from artiq-zynq a277e89b3ad; update dependencies 5 months ago
libcortex_a9 libcortex_a9: added interrupt_handler macro 1 month ago
libregister libregister: allow rustdoc for register! macro 3 months ago
libsupport_zynq libsupport_zynq: fix stack pointer problems 1 month ago
nix updated rust and compiler_builtins 1 month ago
openocd openocd: remove xilinx-tcl on Cora Z7 3 months ago
szl libsupport_zynq: fix stack pointer problems 1 month ago
.gitignore remove zc706.elf from gitignore 1 year ago
Cargo.lock libsupport_zynq: custom memcpy 1 month ago
Cargo.toml add libconfig, libcoreio, szl from artiq-zynq a277e89b3ad; update dependencies 5 months ago
README.md README: update board support info 3 months ago
armv7-none-eabihf.json define custom target, use with cargo-xbuild 1 year ago
default.nix libsupport_zynq: custom memcpy 1 month ago
remote_run.sh remote_run.sh: clean up getopts 3 months ago
shell.nix libsupport_zynq: custom memcpy 1 month ago
xbuild_writable_lockfile.diff patch cargo-xbuild to ensure copied Cargo.lock is writable 4 months 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"