Skip to content

Commit

Permalink
gowin: try second eraseSRAM before writeSRAM. Not always working but …
Browse files Browse the repository at this point in the history
…better...
  • Loading branch information
trabucayre committed Dec 10, 2023
1 parent 163d837 commit bd917d5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gowin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ void Gowin::programSRAM()
if (!eraseSRAM())
return;

/* GW5AST-138k WA. Temporary until found correct solution/sequence */
if (is_gw5a && _idcode == 0x0001081b) {
printf("double eraseSRAM\n");
if (!eraseSRAM())
return;
}

/* load bitstream in SRAM */
if (!writeSRAM(_fs->getData(), _fs->getLength()))
return;
Expand Down

0 comments on commit bd917d5

Please sign in to comment.