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