_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_>
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
<_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?