gowin: GW5AST work around
This commit is contained in:
parent
1c7a4afd01
commit
d8186c5e8a
|
|
@ -344,7 +344,7 @@ void Gowin::programSRAM()
|
||||||
displayReadReg("before program sram", readStatusReg());
|
displayReadReg("before program sram", readStatusReg());
|
||||||
}
|
}
|
||||||
/* Work around FPGA stuck in Bad Command status */
|
/* Work around FPGA stuck in Bad Command status */
|
||||||
if (is_gw5a) {
|
if (is_gw5a) { // 20231112: no more required but left
|
||||||
reset();
|
reset();
|
||||||
_jtag->set_state(Jtag::RUN_TEST_IDLE);
|
_jtag->set_state(Jtag::RUN_TEST_IDLE);
|
||||||
_jtag->toggleClk(1000000);
|
_jtag->toggleClk(1000000);
|
||||||
|
|
@ -774,6 +774,8 @@ bool Gowin::eraseSRAM()
|
||||||
* is send and goes high after erase
|
* is send and goes high after erase
|
||||||
* this check seems enough
|
* this check seems enough
|
||||||
*/
|
*/
|
||||||
|
if (_idcode == 0x0001081b) // seems required for GW5AST...
|
||||||
|
sendClkUs(10000);
|
||||||
if (pollFlag(STATUS_MEMORY_ERASE, STATUS_MEMORY_ERASE)) {
|
if (pollFlag(STATUS_MEMORY_ERASE, STATUS_MEMORY_ERASE)) {
|
||||||
if (_verbose)
|
if (_verbose)
|
||||||
displayReadReg("after erase sram", readStatusReg());
|
displayReadReg("after erase sram", readStatusReg());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue