Sean Cross
63315d9a58
fomu-flash: exit nonzero on write error
...
Signed-off-by: Sean Cross <sean@xobs.io>
2021-04-14 14:11:06 +08:00
Sean Cross
9506159380
fomu-flash: disable ICE40_DEBUG_PATCH
...
Since we've got ice40 working, we don't need to debug it anymore.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-02-26 14:49:11 +08:00
Sean Cross
f4297532d0
fomu-flash: make DEBUG_ICE40_PATCH work better
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-02-26 13:08:13 +08:00
Sean Cross
4156a37d72
fomu-flash: convert tabs to spaces
...
Signed-off-by: Sean Cross <sean@xobs.io>
2019-02-26 13:03:09 +08:00
Sean Cross
61151b4618
fomu-flash: add debug hack to fix ice40 stuff
...
This will write data to a file, rather than to SPI.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-02-26 13:01:04 +08:00
Sean Cross
bcbc7319c1
fomu-flash: add `-l (rom)` option to load a rom
...
This can be used to quickly develop a bootloader, or other boot
rom for an ICE40.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-02-25 13:51:27 +08:00
Sean Cross
13464db5de
fomu-flash: map F_RESET differently for original Pi
...
Pin 13, which we use as F_RESET, was originally routed to BCM Pin 21.
All other revisions of the board map it to BCM Pin 27.
Check for the original version of the board, and re-assign F_RESET as
necessary.
Signed-off-by: Sean Cross <sean@xobs.io>
2019-02-11 10:27:37 +08:00
Sean Cross
987ae9071a
fomu-flash: fix pinspec to match hacker version silk
...
The silkscreen on the hacker version uses "S" for chip select and
"C" for clock. Have the help screen and "-g" parameter use this
convention for arguments.
This fixes Github issue #2 .
Signed-off-by: Sean Cross <sean@xobs.io>
2019-01-14 09:28:29 +08:00
Sean Cross
27dec515e7
enable capacity overriding
...
We have different-sized SPI flash chips, so when possible set the
capacity based on various id codes.
Also allow for manually overriding capacity with the -b option.
Signed-off-by: Sean Cross <sean@xobs.io>
2018-12-19 00:00:25 -05:00
Sean Cross
9b1b9b8a88
fomu-flash: implement -k security register stuff
...
Signed-off-by: Sean Cross <sean@xobs.io>
2018-12-18 23:03:38 -05:00
Sean Cross
70591122af
fomu-flash: print out device strings as part of -i
...
Signed-off-by: Sean Cross <sean@xobs.io>
2018-12-18 22:09:57 -05:00
Sean Cross
f4d2c46eb3
fomu-flash: print out status registers as part of id
...
Print the contents of SR1, SR2, and SR3. Not all chips have SR3,
so this may be 0xff.
Signed-off-by: Sean Cross <sean@xobs.io>
2018-12-18 20:32:10 -05:00
Sean Cross
fed97ce846
fomu-flash: add -i option to print id codes
...
Signed-off-by: Sean Cross <sean@xobs.io>
2018-11-29 04:27:29 -05:00
Sean Cross
cddbe4c90c
fomu-flash: add spi speed flag
...
Signed-off-by: Sean Cross <sean@xobs.io>
2018-11-29 03:51:49 -05:00
Sean Cross
a8de1b56dc
fomu-flash: add the ability to specify more pins
...
Signed-off-by: Sean Cross <sean@xobs.io>
2018-12-17 22:07:10 +08:00
Sean Cross
253e82b5cb
fomu-flash: add offset parameter to -p
...
Add an offset parameter to -p.
Signed-off-by: Sean Cross <sean@xobs.io>
2018-12-17 21:40:40 +08:00
Your Name
09fe20efda
fomu-flash: first full commit
...
Signed-off-by: Your Name <you@example.com>
2018-11-28 13:19:51 -05:00