<futarisIRCcloud> Great job _florent_ ... Shame we don't have one here at the Gold Coast.
keesj has joined #litex
<keesj> lo
<somlo> _florent_: do you remember how this should work (in litesdcard firmware): https://github.com/enjoy-digital/litesdcard/blob/master/litesdcard/firmware/sdcard.c#L253 ?
<tpb> Title: litesdcard/sdcard.c at master · enjoy-digital/litesdcard · GitHub (at github.com)
<somlo> i.e., there's no "sdcore_issue_cmd_write" anywhere else throughout the sources, so I wonder if this would still work for 8-bit csr_data_width...
<somlo> s/work/compile/ for that matter :)
<somlo> bunnie[m]: "sdcore_issue_cmd_write" was introduced by one of your litesdcard commits (f528e8e); did that ever compile for you? I'm getting an unresolved symbol for it when I try to build for 8bit csr_data_width
<_florent_> somlo: i'll do some tests tomorrow, to verify that the examples are working (i will also probably remove the arty example since it required a specific adapter and will replace it with a board that has an SDCard slot, like the Nexys4DDR :), this way we'll be able to run the same tests).
<futarisIRCcloud> _florent_: Sounds good. I've got a mimasv2 with a micro sd card slot.
<somlo> _florent_: https://pastebin.com/yRe1z460 (I think, at least). Got clock setting and init to work, still hangs during any attempt to write blocks
<tpb> Title: [Diff] diff --git a/litex_boards/official/platforms/nexys4ddr.py b/litex_boards/officia - Pastebin.com (at pastebin.com)
<_florent_> futarisIRCcloud: good, porting the example to mimasv2 should be easy
<_florent_> somlo: thanks for the patch, i was just looking at that
<_florent_> somlo: are you driving SD_RESET to 0? "the SD_RESET signal needs to be actively driven low by the FPGA to power the microSD card slot"
<somlo> _florent_: nope, is that something I'd have to add to the litesdcard gateware?
<somlo> _florent_: also https://pastebin.com/pDaNwF4X (but this one probably needs more parameterization, so the sdcard thing isn't always added by default)
<tpb> Title: [Diff] diff --git a/litex_boards/official/targets/nexys4ddr.py b/litex_boards/official/ - Pastebin.com (at pastebin.com)
<_florent_> that's maybe better to do it yes, at least in the target
<somlo> _florent_: finally, one commit dumping the software into litex-proper: https://github.com/gsomlo/litex/tree/gls-sdcard-devel
<tpb> Title: GitHub - gsomlo/litex at gls-sdcard-devel (at github.com)
<somlo> _florent_: so we should add an explicit reset subsignal, and hard-code it in the gateware if it exists (i.e., if it's not None, or something)
<somlo> _florent_: I'm trying this right now: https://pastebin.com/9FL7dKjv -- will report back if it does anything for me
<tpb> Title: [Diff] diff --git a/litesdcard/phy.py b/litesdcard/phy.py index 3a13606..9ac8c6e 10064 - Pastebin.com (at pastebin.com)
<somlo> obviously, after adding rst_p to the nexys4ddr platform file: https://pastebin.com/9FD5nmhy
<tpb> Title: [Diff] diff --git a/litex_boards/official/platforms/nexys4ddr.py b/litex_boards/officia - Pastebin.com (at pastebin.com)
<somlo> _florent_: assuming the above is all correct, I'm still timing out on setting block count, then hanging hard on write_multiple_block during sdtest
<tpb> Title: litesdcard/test_sdcard.py at master · enjoy-digital/litesdcard · GitHub (at github.com)
<somlo> keesj: nope, just running commands from the bios prompt manually
<tpb> Title: litesdcard/README at master · enjoy-digital/litesdcard · GitHub (at github.com)
tpb has quit [Remote host closed the connection]
tpb has joined #litex