_franck_ has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #litex
shenki has quit [Read error: Connection reset by peer]
<keesj> I found is quite usefull for debugging
fjullien has joined #litex
fjullien is now known as _franck_
<bunnie[m]> <somlo "bunnie: "sdcore_issue_cmd_write""> yes, it works in the version of litesdcard i was using, but it's a really old version, at commit 067299dac3b8d7e5fe9dc3f28a71841be1b24227
<bunnie[m]> i checked and sdcore_issue_cmd_write is in my csr.h for that version.
<_florent_> bunnie[m]: i don't think litesdcard changed too much since this, but i'm going to do some tests and will post the results here
<bunnie[m]> ok cool. if memory serves correct, this change is because we use an 8-bit width CSR space on the netv2 image, and the original sdcard implementation assumed a 32-bit CSR? so there were a few little hacks i had to patch in to make the 8-bit width work. it's been a while, tho, my memory is fuzzy.
<bunnie[m]> to wit, the only thing i do with the SD card interface is run a factory test, which is reading the card ID registers and blasting in a block of data and checking it comes out ok to make sure the hardware is soldered together correctly. it's not used in the production NeTV2 image.
<_florent_> bunnie[m]: yes that's also what i remember
<_florent_> somlo: i just updated the litesdcard example designs, and switch to the Nexys4DDR for the Artix7 example
<_florent_> somlo: i also switched the CPU from lm32 to vexriscv that is now the default in LiteX
<_florent_> somlo: i think you should first try to reproduce my results on the Nexys4DDR: https://gist.github.com/enjoy-digital/d68e70f526ee8bcae325651dfbc12542
<tpb> Title: gist:d68e70f526ee8bcae325651dfbc12542 · GitHub (at gist.github.com)
<_florent_> Here we initialize the clock to 10MHz, then initialize the SDCard, do a write/read test at 10MHz and then increase the frequency up to 40MHz
<somlo> _florent_: thanks! How long shoud "sdinit" take? I think it's hanging when I try to replicate your results, as I don't get anything after a couple of minutes: https://pastebin.com/QrYiTMJr
<tpb> Title: __ _ __ _ __ / / (_) /____ | |/_/ / /__/ / __/ - - Pastebin.com (at pastebin.com)
<somlo> _florent_: my migen git sha1 is really "4c00f5b", but since it's packaged as an RPM there's no way to grab it using a git command :)
_franck_ has quit [Quit: Lost terminal]
_franck_ has joined #litex
somlo has quit [Remote host closed the connection]
somlo has joined #litex
<_florent_> somlo: sdinit should be 2-3 seconds max
<_florent_> somlo: can you activate the debug in the firmware?
<_florent_> btw, without driving explicitly rst to 0, i was having the same result you have (https://github.com/enjoy-digital/litesdcard/blob/master/examples/nexys4ddr.py#L86)
<tpb> Title: litesdcard/nexys4ddr.py at master · enjoy-digital/litesdcard · GitHub (at github.com)
<_florent_> Also, it could be useful to test with another SDCard if you have one
<_florent_> i could send the you a working bitstream/firmware tomorrow if you want to test that on your setup
<futarisIRCcloud> mithro / _florent_ : What's the best way to run hdmi2usb to get a litex scope trace? Also, are the sync pulses regenerated or passed through from the input?
<tpb> Title: HDMI2USB/Opsis not working with Decimator MD-CROSS v2 · Issue #478 · timvideos/HDMI2USB-litex-firmware · GitHub (at github.com)
<futarisIRCcloud> xobs: is there a simple gateware that will output a hdmi test pattern? Just want to try hooking up a NeTV2 to a decimator.
_franck_ has quit [Ping timeout: 268 seconds]
tpb has quit [Remote host closed the connection]
tpb has joined #litex