gowin: try second eraseSRAM before writeSRAM. Not always working but better...

This commit is contained in:
Gwenhael Goavec-Merou 2023-12-10 08:14:06 +01:00
parent 163d83787a
commit bd917d51ef
1 changed files with 7 additions and 0 deletions

View File

@ -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;