Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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 :
    You can source the source.sh, and then do a saxon_clone; saxon_openocd
    this will build it
    Then modify https://github.com/SpinalHDL/SaxonSoc/blob/dev-0.1/bsp/radiona/ulx3s/smp/openocd/usb_connect.cfg#L2 to match the jtag you have installed, and then saxon_openocd_connect
    emard
    @emard
    Let me try on RPI3... (oh no the compiling ... :-)
    Dolu1990
    @Dolu1990
    XD
    you might need a cpu0.yaml
    Lawrie Griffiths
    @lawrie
    @Dolu1990 He only really needs openocd, not really to clone all the other repositories.
    Dolu1990
    @Dolu1990
    right
    Just that using the commands is totaly hands off ^^
    emard
    @emard
    Do i need gcc or clang to compile?
    Dolu1990
    @Dolu1990
    hmmm
    no no
    i mean
    hmmm