Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lawrie Griffiths
    @lawrie
    That means you haven't got the latest version of prjtrellis.
    Thomas Hornschuh
    @ThomasHornschuh
    OK. Tried to install everything with this ULX3S_WSLToochain script, it git cloned everything. But dont run it on WSL, I used a Ubuntu 18.04 VM
    Will check...
    emard
    @emard
    Lawrie Griffiths
    @lawrie
    That error means you have a sysconfig in the lpf file and that you have a more up to date version of nextpnr-ecp5 than prjtrellis.
    Thomas Hornschuh
    @ThomasHornschuh
    OK. Do you have a recommended "First steps, how to" ? I read through the various readmes/links from the https://github.com/emard/ulx3s-examples repo. But not sure what is the best starting point
    I think the mistake is that the script clones https://github.com/SymbiFlow/prjtrellis, which is a fork of YOSYSHQ/prjtrellis
    emard
    @emard
    Ups examples is a bit too old :). https://github.com/emard/ulx3s-misc has much more examples and freshly updated. Still should have many bugs too
    Lawrie Griffiths
    @lawrie
    This repository has quite a few pre-built bit streams in it, but some of them need roms and software running on the ESP32 - https://github.com/lawrie/ulx3s_bit_streams
    There are also useful pre-build bitstreams in https://github.com/emard/ulx3s-bin
    On the hardware, the manual is good - https://github.com/emard/ulx3s/blob/master/doc/MANUAL.md
    Thomas Hornschuh
    @ThomasHornschuh

    Ups examples is a bit too old :). https://github.com/emard/ulx3s-misc has much more examples and freshly updated. Still should have many bugs too

    OK. Unforunteatly the script spreads everything over into /usr/local/* directrories, etc. I just walked through the logs from the sript and deleted everything (hopefully I catched all). Maybe better to write some warning now when all the CrowdSupply bakers get their boards :-)

    Lawrie Griffiths
    @lawrie
    And for using the ESP32 with micropython - https://github.com/emard/esp32ecp5
    Thomas Hornschuh
    @ThomasHornschuh
    So will go to dinner now, maybe come back later...
    Lawrie Griffiths
    @lawrie
    Unfortunately some of Ulx3s information and scripts have not been kept up to date, and some are tailored to particular users' way of doing things. If you are going to build the tools yourself, I think you should follow the instructions at https://github.com/YosysHQ/yosys, https://github.com/YosysHQ/nextpnr and https://github.com/YosysHQ/prjtrellis as they all kept up to date.
    fujprog is a useful utility to have - https://github.com/kost/fujprog
    emard
    @emard
    @Dolu1990 I've started assembling openocd remote debugging stuff. on a RPI3. I have currently connected ft2232 to JTAG of ulx3s and I can upload bitstream. What should you need additional to openocd server script? Currently I have this
    # file: serv.ocd
    bindto 0
    telnet_port 4444
    gdb_port 3333
    
    # JTAG TAPs
    jtag newtap lfe5 tap -expected-id 0x21111043 -irlen 8 -irmask 0xFF -ircapture 0x5
    ----8<----
    telnet rpi 4444
    Open On-Chip Debugger
    > init
    > scan_chain
       TapName             Enabled  IdCode     Expected   IrLen IrCap IrMask
    -- ------------------- -------- ---------- ---------- ----- ----- ------
     0 lfe5.tap               Y     0x21111043 0x21111043     8 0x05  0xff
    Dolu1990
    @Dolu1990
    @emard You are looking at baremetal debug or user space debug ?
    emard
    @emard
    The https://github.com/ulx3s is mostly maintained by @gojimmypi he has some special way of nesting linux in windowz
    @Dolu1990 I actually would make a setup for you to inspect remotely ISSI flash non-boot 0xFF issues
    Dolu1990
    @Dolu1990
    hooo
    so
    It need a external USB jtag
    currently, it doesn't use the native jtag force ECP5
    "for ECP5
    emard
    @emard
    I need to solder pins on gp/gn, but external ft2232 will be finally connected there. Currently I just connected to main jtag for me to demonstrate it works
    Dolu1990
    @Dolu1990
    hooo
    So, the easier would be for me to have SSH access, else, what i have is :
    emard
    @emard
    Is RPI3 = raspberry pi good enough, do you want me to install and compile maybe fujprog and openFPGALoader
    Dolu1990
    @Dolu1990
    then you can do saxon_openocd_connect
    a pi should be good enough
    I never tried it to have JTAG
    but should work i guess
    emard
    @emard
    I have similar or compatible USB dongle to this (I hope)
    Dolu1990
    @Dolu1990
    ft2232 is just fine
    emard
    @emard
    I tried to upload SVF file and it works, (fast). Yes, this pins connection is important. Is there a simple JTAG openocd scan command I can test it to make sure I connected all
    Some command similar to
    jtag newtap lfe5 tap -expected-id 0x21111043 -irlen 8 -irmask 0xFF -ircapture 0x5
    Dolu1990
    @Dolu1990
    hoo when openocd run it scan everything
    emard
    @emard
    yes yes I see it on above linked script
    Dolu1990
    @Dolu1990
    i'm not sur there a command to rescan, just rerun it ^^
    emard
    @emard
    OK I need to make a bit on the solder and pins to board, then I will test it and when I get vexrisc scanned by openocd jtag I will put it online for remote access
    Dolu1990
    @Dolu1990
    you should get a scan like 0x10001FFF
    Lawrie Griffiths
    @lawrie
    @Dolu1990 Doesn't @emard need to build your version of openocd - https://github.com/SpinalHDL/openocd_riscv
    Dolu1990
    @Dolu1990
    Yes
    so :