Skip to content

Instantly share code, notes, and snippets.

@makestuff
Created September 6, 2014 16:22
Show Gist options
  • Save makestuff/095002e0387cdc8c46cf to your computer and use it in GitHub Desktop.
Save makestuff/095002e0387cdc8c46cf to your computer and use it in GitHub Desktop.
EP2C5 flash operations
# Read the ID of the attached SPI flash
flcli -v 1d50:602b -c 1 -a 'w1 00;w1 04;w0 9F000000;w1 00;r0 4'
FF 20 20 13
# Generate .rbf file and write it to flash (note byte-swap)
quartus_cpf -c top_level.sof top_level.rbf
gordon -v 1d50:602b -t indirect:1 -w top_level.rbf:0 -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment