Add SPI flash support (#546)
* Add SPI flash configs, IOBinders, CI tests, and docs * Add writable SPI flash support * bump * Fix CI * Fix CI * Update docs/Generators/TestChipIP.rst Co-authored-by: Chick Markley <chick@qrhino.com> * Maybe actually fix CI * Fix broken merge * Fix the tutorial patch * bump tcip to master * fix GPIO naming bug Co-authored-by: Chick Markley <chick@qrhino.com>
This commit is contained in:
11
tests/spiflash.py
Executable file
11
tests/spiflash.py
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Generates a binary file that the SPI test uses
|
||||
|
||||
outfile = "spiflash.img"
|
||||
|
||||
with open(outfile, 'wb') as f:
|
||||
for i in range(0,0x100000,4):
|
||||
check = 0xdeadbeef - i
|
||||
f.write(check.to_bytes(4,'little'))
|
||||
|
||||
Reference in New Issue
Block a user