Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    emard
    @emard
    root@ssd:/tmp# evtest /dev/input/event7
    Input driver version is 1.0.1
    Input device ID: bus 0x3 vendor 0x46d product 0xc016 version 0x110
    Input device name: "Logitech Optical USB Mouse"
    Supported events:
      Event type 0 (EV_SYN)
      Event type 1 (EV_KEY)
        Event code 272 (BTN_LEFT)
        Event code 273 (BTN_RIGHT)
        Event code 274 (BTN_MIDDLE)
      Event type 2 (EV_REL)
        Event code 0 (REL_X)
        Event code 1 (REL_Y)
        Event code 8 (REL_WHEEL)
        Event code 11 (REL_WHEEL_HI_RES)
      Event type 4 (EV_MSC)
        Event code 4 (MSC_SCAN)
    Properties:
    Testing ... (interrupt to exit)
    Event: time 1576755391.702276, type 2 (EV_REL), code 0 (REL_X), value 1
    Event: time 1576755391.702276, -------------- SYN_REPORT ------------
    Event: time 1576755391.710274, type 2 (EV_REL), code 0 (REL_X), value 1
    Event: time 1576755391.710274, -------------- SYN_REPORT ------------
    Event: time 1576755391.718275, type 2 (EV_REL), code 0 (REL_X), value 1
    Event: time 1576755391.718275, -------------- SYN_REPORT ------------
    Goran Mahovlic
    @goran-mahovlic
    @lawrie we have also some games here - maybe we will make some of them work :) https://github.com/ligurio/awesome-ttygames
    I did try to compile color tetris but it still missing some dependencies - so we will try to fix those today on meetup!
    Lawrie Griffiths
    @lawrie
    @emard When I try:
        mouse_input_name = 'dont use'
        touchpad_input_name = 'mouse integration'
    emard
    @emard
    yes that to force accepting it as ABS device
    Lawrie Griffiths
    @lawrie
    It sends the mouse movement and the leds flash, but I don't see anything change on the monitor.
    emard
    @emard
    Hm, can you install "evtest" executable in "evtest" package to actually see what events do you get from mouse. ABS is early support in hostmouse and only REL is verified to correctly work.
    offtopic: I copied /boot/* from 12F sdimage to 85F sdimage and 12F booted now I have bash too here :)
    Lawrie Griffiths
    @lawrie
    Yes I ran evtest which showed I only got mouse clicks on event4 but I got movement events on event6.
    emard
    @emard
    Ahhh split device is theoretically possible to support but you have to modify hostmouse.py to open them both and somehow thread or whatever to mix click and event streams together
    Lawrie Griffiths
    @lawrie
    @emard not sure what you did with those images. The only one that has bash support is imagefb64. I am not overwriting the previous working images with experimental things at the moment - hence the multiple versions.
    And I am testing on the 85 device at the moment.
    On hostmouse: do I need mouse clicks as well as movement?
    I confirmed that event4 gives just mouse clicks, and event6 gives just ABS movement.
    Lawrie Griffiths
    @lawrie
    Can't make much sense of the display:
    scopeio
    Goran Mahovlic
    @goran-mahovlic
    :)
    emard
    @emard
    here I have uploaded latest *.bit.gz bitstreams for 12F https://github.com/emard/ulx3s-bin your waveforms look great, Note that ADC is running in differential mode so you should either drive both + and - or have one of them set to intermediate voltage 1-2V with resistor divider and blocking C. there's crosstalk between channels so you have also signal on unconnected pins
    Lawrie Griffiths
    @lawrie
    Not sure what all those NaN values are, or what the 0.00 values are. I was hoping to see something like frequency and duty. But currently I have no way or controlling anything.
    emard
    @emard
    NaN value will change to normal when you select channel. Cursor placed on lower left edge, intersecton of hzscale and vtscale numbers and mouse wheel rotated will change color of vtscale. However no freq/duty calculation yet :). Things should change when you get supported mouse.
    Lawrie Griffiths
    @lawrie
    I see that you have some documentation in the ulx3s-bin repository.
    My ice40 oscilloscope calculated frequency and duty - https://hackaday.com/2018/08/04/gameduino-mystorm-oscilloscope/
    emard
    @emard
    some "bad documentation" is also in comments in the source handing GUI events, pipeline stage 1 https://github.com/hdl4fpga/hdl4fpga/blob/master/library/scope/scopeio_mouse2rgtr.vhd#L480 but something userfriendlier should be written.... On this BB3 power supply box we plan to integrate f32c and scopeio so then freq calculation I hope should be easier. scopeio is hardware-only - no CPU, it's aim is fast response and LUT-style minimalistic computing.
    Lawrie Griffiths
    @lawrie
    The BB3 box looks interesting. Should I sign up for one on crowdsupply? They are a bit expensive and there are lots of options.
    emard
    @emard
    maybe if you need benchtop universal supply. But ULX3S scope integrattion will happen later, next year I expect. PCBs will be different. Currently STM32 is driving menus and LCD
    Lawrie Griffiths
    @lawrie
    I will wait then. I don't have much of a benchtop power supply, but I am more interested in the integration with all the ECP5 stuff.
    emard
    @emard
    Yes we must inform you on progress and optionally send some prototype boards for rewiev, if you dont find any bugs, noone else will :))
    emard
    @emard
    https://github.com/emard/apple2fpga I got disk and SD interface to compile, I see disk activity LED and changing floppy tracks but loading supplied floppy image never ends. At reset prompt is displayed. Mayybe SD is not compatible if anyone will check....
    kost
    @kost
    So, you can say something like:
    webreplcmd --host 192.168.4.1 --password ulx3s cmd 'import ecp5; ecp.prog("http://my.fpga.dir/bitstream.bit)'
    Lawrie Griffiths
    @lawrie
    @emard When I try to build it, it does not find spi_controller_MIST.vhd
    Lawrie Griffiths
    @lawrie
    If Iget rid of "_MIST" in the Makefile, it builds and runs basic programs.
    Lawrie Griffiths
    @lawrie
    A disk containing dos33master.nib seems to be ignored to me and it goes straight to the basic prompt.
    Lawrie Griffiths
    @lawrie
    The code in the repository has both the disk and sdcard code omitted (if false generate). When I included them, it was too big for a 12F, so I am now running it on my 85F.
    Lawrie Griffiths
    @lawrie
    It is now doing the same as for you. It hangs unless I press button 0. It makes no difference if an sd card is inserted or not.
    emard
    @emard
    Yes this _MIST is rewrite of := replaced with <= I found on on other github port of apple2fpga, it seems the the same. My theory is that SD card is not working or compatible, so it spi_controller waits indefinitely to read first track.
    Lawrie Griffiths
    @lawrie
    Yes, I came to a similar conclusion. I think it is just not working at all for some reason, rather than it being a card compatibility problem.
    Lawrie Griffiths
    @lawrie
    I was considering putting some diagnostics in the spi controller to see what state it gets stuck in and what commands it sends with what results. I had more problems getting the sd card working with SaxonSoc than anything else, and am still not entirely sure what the problems were or how I fixed them. Keeping the ESP32 in reset fixed at least one of the problems I had, but with micropython on the ESP32, I have not had any sd card problems with SaxonSoc .
    Lawrie Griffiths
    @lawrie
    @Dolu1900 now has his 12F board and is getting SaxonSoc working on it. So we should get better SDRAM performance and reliability, a better serial driver and fewer slices used with him working on it.
    I need to learn VHDL better , as quite a lot of projects on the Ulx3s use it. I have stuck with Verilog and SpinalHDL up to now. I am going to have to learn Migen sometime, as well.
    emard
    @emard
    Great that board arrived to Dolu, yes faster SDRAM would improve everything! Almost all opensource/amateur projects I download are in VHDL but most of them actually write verilog style in vhdl syntax, pass that thru vhd2vl and it will still work :). Only one that uses advanced VHDL is hdl4fpga scopeio, this core really demonstrates how vhdl can be compact and powerful.
    I have found "suspect", it's 2MHz LUT-generated clock that is currently used as clock source but should be changed to clock enable instead. LUT generated clocks are very unreliable at lattice chips
    Goran Mahovlic
    @goran-mahovlic
    @lawrie Yesterday I have shipped 12F to Roman ...
    Lawrie Griffiths
    @lawrie
    @goran-mahovlic Thanks.
    Paul Ruiz
    @pnru_gitlab
    @kost Great script, many thanks!
    kost
    @kost
    Thanks @pnru_gitlab . BTW apio and icestudio pull requests were accepted. So, apio and icestudio in develop branch support ulx3s. Actually, first ecp5 board supported. https://github.com/FPGAwars/apio and https://github.com/FPGAwars/icestudio
    Lawrie Griffiths
    @lawrie
    @emard I tried the orao computer. It mainly says "NEPRAVILAN UNOS" , but I did manage to get into BASIC.
    Dobrica Pavlinušić
    @dpavlin
    NEPRAVILAN UNOS == syntax error in croatian