Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Lawrie Griffiths
    @lawrie
    micropython is on it by default, but you should follow the instructions in https://github.com/emard/esp32ecp5 to connect to your router and upload the ftp server.
    Yes fujprog programs the sram, unless you do -j FLASH, and that is very very slow.
    Thomas Hornschuh
    @ThomasHornschuh
    Neverthless, I will take care of ESP32 later, from all the prebuilt bitstream what can be recommended as a good "smoke test" to use DRAM and HDMI output, just to check if everything works?
    Goran Mahovlic
    @goran-mahovlic
    SaxonSoc :)
    Lawrie Griffiths
    @lawrie
    Or NES?
    SaxonSoc involves setting up an sd card.
    Goran Mahovlic
    @goran-mahovlic
    I think Dobrica mada script for that
    But yes, for NES SD card is not needed
    Lawrie Griffiths
    @lawrie
    Ah, but you do not the ESP32 to load games, so probably not good.
    Goran Mahovlic
    @goran-mahovlic
    I changed quickstart - to be as in this chat
    But I cannot find example you are referring to?
    oohh ulx3s-examples/blinky
    Lawrie Griffiths
    @lawrie
    Yes
    Thomas Hornschuh
    @ThomasHornschuh
    Let me check out, I'm lost track of all the links, I think it is part of the gojimmypi installer script.
    Lawrie Griffiths
    @lawrie
    @danrr_au_twitter's game is nice and does not need the ESP32 or an sd card but it does need a large file written to flash which takes ages using fujprog -j FLASH
    Thomas Hornschuh
    @ThomasHornschuh
    OK, understood the message, go for ESP32 first. Just to avoid any misunderstandings: The ftp server is also part of MicroPython?
    Lawrie Griffiths
    @lawrie
    Yes, it is written in micropython - uftpd.py.
    Goran Mahovlic
    @goran-mahovlic
    @ThomasHornschuh I have found and proposed changes ... gojimmypi will clear that script as it install many things :)
    I think it is already on ESP32 - but wifi may be turned off - need to check what is default setup after testing...
    Lawrie Griffiths
    @lawrie
    Most of the retro-computing stuff loads roms via the ESP32 using an OSD (on-screen display) which overlays the HDMI output and lets you choose files from an SD card or the ESP32 flash memory using the buttons (or sometimes a game controller). You need to upload and import osd.py for that. The versions of osd.py differ a bit.
    You start te OSD by pressing all 4 buttons at once.
    You sometimes need an extra .py file as well as osd.py.
    @goran-mahovlic Even if Wifi is on, you really need to change main.py to connect to your router and get an IP address.
    Thomas Hornschuh
    @ThomasHornschuh
    @goran-mahovlic Just looked at the updated quick-start. The frist chapter states to run the "test scripts". I tried to understand what they do, but do be honest this is quite confusing. I hope you don't feel anoyed by my remarks, but I know from Feedback I get from users of my own FPGA projects, that many people trying their first steps with an FPGA board are much less skilled than I, also with basic Linux things. But if you want to avoid that buyers of this board get discouraged. So just maybe just remove the "know-your-programmer" chapter and state that the quick-start is for the production boards sold over Crowd-Supply and inteded for a clean start with newest tools.
    Goran Mahovlic
    @goran-mahovlic
    I moved this chapter to the end of the page
    No, thank you for remarks, as we all know where to start from, and we really need user feedback
    Goran Mahovlic
    @goran-mahovlic
    But you are right - I removed "test script and issue" from Quickstart and left use new fujprog
    Thomas Hornschuh
    @ThomasHornschuh

    Ignoring all my detours I did, the sucessfull way for me was

    At the end it this is very simple and straight forward, and will take maybe 30 Minutes if you do it right at the first try

    Dolu1990
    @Dolu1990
    Is it possible that the SPI IS25LP128F flash is setup in quad mode by the ECP5 ?
    David Shah
    @daveshah1
    That would only be if you request that
    ie with the ecppack --spimode argument
    Although actually I don't think that uses full quad mode
    Just the quad read command
    emard
    @emard
    @Dolu1990 yes quad read mode could be possible, we can fix this by flashing directly your or another bitstream which will set it 1-bit mode
    @Dolu1990 I have made experiment that after 85F boots, I read SPI flash in 1-bit mode from esp32 and that works normally. Flash can be also written in 1-bit mode. Actually to all other operations flash just appears as normal.
    Dolu1990
    @Dolu1990
    Hoo right, thanks
    emard
    @emard
    board should still be online
    I think you can upload "passthru" bitstream from "ecp5_prog" directory and the connect tp ttyUSB0 115200, you should see micropython prompt. Then import ecp5; ecp5.flashrd(addr, length) or ecp5.flash("bitstream.bit") flash should work
    Dolu1990
    @Dolu1990
    No no, it's fine, David is right, the FPGA would only use regular quad command, it will not change the mod
    emard
    @emard
    I will try micropython now
    >>> ecp5.flashrd(0,32)
    bytearray(b'\xff\x00Lattice Semiconductor Corporat')
    see flash is alive
    you can try the same on board remotely
    emard
    @emard
    wrong addr... hex
    Dolu1990
    @Dolu1990
    So, 0x340000 is opensbi
    while 0x380000 is uboot
    emard
    @emard
    >>> ecp5.flashrd(0x340000,32)
    bytearray(b'3\x04\x05\x00\xb3\x84\x05\x003\t\x06\x00\xef\x00@v3\x08\x05\x003\x05\x04\x00\xb3\x85\x04\x003\x06\t\x00')
    >>> ecp5.flashrd(0x380000,32)
    bytearray(b'\x13\x02\x05\x00\x93\x84\x05\x00\x97\xc2\x06\x00\x83\xa2\x82\xd9s\x90R\x10s\x10@\x10\x93\x02@\x00cRR"')
    Dolu1990
    @Dolu1990
    Look right