Giter VIP home page Giter VIP logo

Comments (21)

trabucayre avatar trabucayre commented on May 28, 2024 1

I will receive a mega in few days (or a week), will be able to work on adding external flash support.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024 1

Yes! I have received my board and started to see how to access flash for this family. It's not really complex (a bit tricky) but I have first to review a PR for gowin devices.

from openfpgaloader.

chopin1998 avatar chopin1998 commented on May 28, 2024

got your board ? ^_^

from openfpgaloader.

chopin1998 avatar chopin1998 commented on May 28, 2024

Good news! iā€™m a newbie on this, thanks for your help!

from openfpgaloader.

chopin1998 avatar chopin1998 commented on May 28, 2024

i noticed that openFPGAloader support flash GW5A now! so happy!

but seems write to SRAM function bad now.... when Load a new fs file to SRAM, nothing happen, and READY led on board keeping ON, which should be off

here is log for SRAM upload

openFPGALoader -v ws2812_lcd_key.fs
No cable or board specified: using direct ft2232 interface
Jtag frequency : requested 6.00MHz -> real 6.00MHz
found 1 devices
index 0:
idcode 0x1081b
manufacturer Gowin
family GW5AST
model GW5AST-138
irlength 8
File type : fs
Parse file Parse ws2812_lcd_key.fs:
checksum 0xd735
Done
DONE
bitstream header infos
CRCCheck: ON
Compress: OFF
ConfDataLength: 21872
LoadingRate: 4629629
ProgramDoneBypass: OFF
SPIAddr: 00000000
SecurityBit: ON
idcode: 0001081b
before program sram: displayReadReg 00002622
Bad Command
Memory Erase
Reserved9
Non-JTAG configuration is active
Done Final
Erase SRAM before erase sram: displayReadReg 00004460
Memory Erase
Preamble
Non-JTAG configuration is active
Security Final
pollFlag: 40a0 (80)
pollFlag: 4080 (0)
pollFlag: 4080 (0)
pollFlag: 4080 (0)
pollFlag: 4080 (0)
pollFlag: 4080 (0)
pollFlag: 4080 (0)
pollFlag: a0 (20)
after erase sram: displayReadReg 000000a0
Memory Erase
System Edit Mode
pollFlag: 20 (0)
after erase sram: displayReadReg 00000020
Memory Erase
DONE
Load SRAM before write sram: displayReadReg 00000200
Reserved9
Load SRAM: [==================================================] 100.00%
Done
after write sram: displayReadReg 00002622
Bad Command
Memory Erase
Reserved9
Non-JTAG configuration is active
Done Final
DONE
after program sram: displayReadReg 00002622
Bad Command
Memory Erase
Reserved9
Non-JTAG configuration is active
Done Final

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

Currently SPI write is only supported for GW5A, not GW5AST (I don't know why but I have strange behaviour).
It's weird: I have tried yesterday with tangMega and not seen issue when trying to load SRAM, maybe device is in wrong state...
I have to investigate.

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

I have also to update status display: currently bit/function are displayed according to non GW5A(ST). For this family only GW5A-25 has the correct register decoding.

from openfpgaloader.

chopin1998 avatar chopin1998 commented on May 28, 2024

Currently SPI write is only supported for GW5A, not GW5AST (I don't know why but I have strange behaviour). It's weird: I have tried yesterday with tangMega and not seen issue when trying to load SRAM, maybe device is in wrong state... I have to investigate.

but i can write flash on my mega138pro..

from openfpgaloader.

trabucayre avatar trabucayre commented on May 28, 2024

Ok. So I have to recheck everything. SPI flash is seen but not all the time, it fails to write and I'm able to load SRAM. it's more or less totally opposite situation.
Could you try with openFPGALoader --bulk-erase to see if after your able to load a bitstream (ie device is in wrong state due to an issue when bitstream was written).

from openfpgaloader.

chopin1998 avatar chopin1998 commented on May 28, 2024

when device under wrong state, other write is not work, even with --bulk-erase, need to repower it.

from openfpgaloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.