Wednesday, 2020-01-08

*** tpb has joined #litex00:00
futarisIRCcloudhttps://twitter.com/enjoy_digital/status/1214847743824449536?s=1910:06
futarisIRCcloudGreat job _florent_ ... Shame we don't have one here at the Gold Coast.10:07
*** keesj has joined #litex15:31
keesjlo15:31
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 ?16:01
tpbTitle: litesdcard/sdcard.c at master · enjoy-digital/litesdcard · GitHub (at github.com)16:01
somloi.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...16:01
somlos/work/compile/ for that matter :)16:02
somlobunnie[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_width17:09
_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).20:08
futarisIRCcloud_florent_: Sounds good. I've got a mimasv2 with a micro sd card slot.20:11
somlo_florent_: https://pastebin.com/yRe1z460 (I think, at least). Got clock setting and init to work, still hangs during any attempt to write blocks20:19
tpbTitle: [Diff] diff --git a/litex_boards/official/platforms/nexys4ddr.py b/litex_boards/officia - Pastebin.com (at pastebin.com)20:19
_florent_futarisIRCcloud: good, porting the example to mimasv2 should be easy20:20
_florent_somlo: thanks for the patch, i was just looking at that20:20
_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"20:22
somlo_florent_: nope, is that something I'd have to add to the litesdcard gateware?20:24
somlo_florent_: also https://pastebin.com/pDaNwF4X (but this one probably needs more parameterization, so the sdcard thing isn't always added by default)20:26
tpbTitle: [Diff] diff --git a/litex_boards/official/targets/nexys4ddr.py b/litex_boards/official/ - Pastebin.com (at pastebin.com)20:26
_florent_that's maybe better to do it yes, at least in the target20:26
somlo_florent_: finally, one commit dumping the software into litex-proper: https://github.com/gsomlo/litex/tree/gls-sdcard-devel20:33
tpbTitle: GitHub - gsomlo/litex at gls-sdcard-devel (at github.com)20:33
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)20:40
somlo_florent_: I'm trying this right now: https://pastebin.com/9FL7dKjv -- will report back if it does anything for me20:54
tpbTitle: [Diff] diff --git a/litesdcard/phy.py b/litesdcard/phy.py index 3a13606..9ac8c6e 10064 - Pastebin.com (at pastebin.com)20:54
somloobviously, after adding rst_p to the nexys4ddr platform file: https://pastebin.com/9FD5nmhy20:58
tpbTitle: [Diff] diff --git a/litex_boards/official/platforms/nexys4ddr.py b/litex_boards/officia - Pastebin.com (at pastebin.com)20:58
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 sdtest21:11
keesjsomlo: are you also testing using https://github.com/enjoy-digital/litesdcard/blob/master/test/test_sdcard.py21:25
tpbTitle: litesdcard/test_sdcard.py at master · enjoy-digital/litesdcard · GitHub (at github.com)21:25
somlokeesj: nope, just running commands from the bios prompt manually21:29
somloroughly following https://github.com/enjoy-digital/litesdcard/blob/master/README#L8521:29
tpbTitle: litesdcard/README at master · enjoy-digital/litesdcard · GitHub (at github.com)21:29

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!