s_frit has quit [Remote host closed the connection]
s_frit has joined ##openfpga
<Sprite_tm>
Hi all! I'm programming an ECP5 using the slave serial port. Which works great, after figuring out what commands to send. However, the slave port disappears after configuration. That stops me from being able to reconfigure the chip using that afterwards.
<Sprite_tm>
The Lattice tools have an option to keep SSPI active, but it doesn't seem to be as simple as a configuration bit somewhere; activating that option changes a few things in the fusemap.
<Sprite_tm>
So my question is: How would I go about getting the same effect in the open source tools?
<agg>
not completely sure but you might want the --background option to ecppack
<Sprite_tm>
That's worth a try, but I think that is a ctrl0 option only, it doesn't set the fusemap in the same way.
<agg>
it does change the generated bitstream
<agg>
ah, yea, it is a different thing though, and more to do with the MSPI mode I think
<agg>
in your .lpf file put SSLAVE_SPI_PORT=ENABLE
<agg>
uh, one S
<agg>
SYSCONFIG SLAVE_SPI_PORT=ENABLE
<Sprite_tm>
Oh hey, that actually seems to do something!
<Sprite_tm>
Yep, that works. Yay, I can get rid of my PROGRAMN bodge wire!
<agg>
:)
<agg>
i have an ecp5 gpio wired to programn, heh
<agg>
wish it had a WARMBOOT primitive like ice40
<Sprite_tm>
Can I ask how you found that line btw? I found absolutely no references to it.
<agg>
the lattice doc TN02039 (sysCONFIG for ECP5) said "Use the Spreadsheet View to ENABLE the SLAVE_SPI_PORT preference in your design"
<Sprite_tm>
Yeah, did that on a previous project where I used a flash chip to configure the ECP5. It works, but that's it.
<agg>
I grepped for SLAVE_SPI_PORT in nextpnr and saw it using it but not a clear example of how it's used, then I checked prjtrellis and it has an example .lpf file with it set to FALSE
<agg>
or disable or whatever
<agg>
so uh, not sure i'd describe it as documented per se
<Sprite_tm>
Ah, excellent :) I have bene grepping prjtrellis, but I think I only used SSPI as a term.
<Sprite_tm>
Hence me nearly reverse engineering the bitstream to see what's going on :)
<agg>
the lpf for ecp5 is otherwise documented here ttps://github.com/YosysHQ/nextpnr/blob/master/docs/constraints.md#architecture-specific-io-constraints but no mention of this setting
<agg>
ah, close then!
<agg>
if you grep for it in nextpnr you can see exactly what it changes in the bitstream
<Sprite_tm>
Yay, got everything else hooked up as well, me running 'make upload' now pushes a new image to my board over WiFi and triggers a reconfigure.
<Sprite_tm>
Anyway, thanks for the help, I'd probably be chasing red herrings still otherwise :)
<agg>
np, glad it's working!
Degi_ has joined ##openfpga
Degi has quit [Ping timeout: 245 seconds]
Degi_ is now known as Degi
<agg>
as a followup to ecpdap (program ecp5s over jtag using cmsis-dap probes), i've just released spidap, which abuses jtag to access SPI flash from your cmsis-dap probe, handy for ice40 devices: https://crates.io/crates/spidap
PyroPeter_ has joined ##openfpga
PyroPeter has quit [Ping timeout: 264 seconds]
PyroPeter_ is now known as PyroPeter
_whitelogger has joined ##openfpga
emeb_mac has quit [Quit: Leaving.]
jeanthom has joined ##openfpga
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
_whitelogger has joined ##openfpga
sensille has quit [Ping timeout: 240 seconds]
sensille_ has joined ##openfpga
sensille_ is now known as sensille
jeanthom has quit [Ping timeout: 256 seconds]
somlo has quit [Remote host closed the connection]
tokomak has quit [Ping timeout: 240 seconds]
somlo has joined ##openfpga
emeb has joined ##openfpga
ym has joined ##openfpga
ym is now known as Guest58262
Guest58262 has quit [Client Quit]
finsternis has joined ##openfpga
azonenberg has quit [*.net *.split]
dx has quit [*.net *.split]
m4gul0_ has quit [*.net *.split]
z0ttel_ has quit [*.net *.split]
SpaceCoaster has quit [*.net *.split]
kmehall has quit [*.net *.split]
rqou has quit [*.net *.split]
diamondman has quit [*.net *.split]
awygle has quit [*.net *.split]
gatecat has quit [*.net *.split]
esden has quit [*.net *.split]
agg has quit [*.net *.split]
ktemkin has quit [*.net *.split]
rohitksingh has quit [*.net *.split]
benreynwar has quit [*.net *.split]
kc8apf has quit [*.net *.split]
guan has quit [*.net *.split]
jhol has quit [*.net *.split]
ormiret has quit [*.net *.split]
Shiz has quit [*.net *.split]
z0ttel has joined ##openfpga
agg has joined ##openfpga
ormiret has joined ##openfpga
kc8apf has joined ##openfpga
azonenberg has joined ##openfpga
gatecat has joined ##openfpga
ktemkin has joined ##openfpga
esden has joined ##openfpga
Shiz has joined ##openfpga
guan has joined ##openfpga
dx has joined ##openfpga
diamondman has joined ##openfpga
SpaceCoaster has joined ##openfpga
m4gul0_ has joined ##openfpga
awygle has joined ##openfpga
kmehall has joined ##openfpga
benreynwar has joined ##openfpga
rqou has joined ##openfpga
rohitksingh has joined ##openfpga
jhol has joined ##openfpga
nats` has quit [Ping timeout: 246 seconds]
promach3 has quit [Ping timeout: 265 seconds]
notafile has quit [Ping timeout: 265 seconds]
wiizzard has quit [Ping timeout: 246 seconds]
emeb_mac has joined ##openfpga
nats` has joined ##openfpga
emily has quit [Ping timeout: 265 seconds]
whitequark[m] has quit [Ping timeout: 244 seconds]
omnitechnomancer has quit [Ping timeout: 244 seconds]
indefini has quit [Ping timeout: 258 seconds]
eddyb has quit [Ping timeout: 240 seconds]
blazra has quit [Ping timeout: 265 seconds]
xobs has quit [Ping timeout: 268 seconds]
jeanthom has joined ##openfpga
jevinskie[m] has quit [Ping timeout: 268 seconds]
promach3 has joined ##openfpga
notafile has joined ##openfpga
emily has joined ##openfpga
wiizzard has joined ##openfpga
omnitechnomancer has joined ##openfpga
whitequark[m] has joined ##openfpga
indefini has joined ##openfpga
blazra has joined ##openfpga
eddyb has joined ##openfpga
xobs has joined ##openfpga
jevinskie[m] has joined ##openfpga
mumptai has joined ##openfpga
mumptai has quit [Quit: Verlassend]
mumptai has joined ##openfpga
jeanthom has quit [Ping timeout: 265 seconds]
mumptai has quit [Remote host closed the connection]