gowin: Fix flash write message and display checksum when SRAM fail
This commit is contained in:
parent
0adae3ffd0
commit
5d99237652
|
|
@ -195,9 +195,10 @@ void Gowin::program(unsigned int offset)
|
||||||
|
|
||||||
/* check if file checksum == checksum in FPGA */
|
/* check if file checksum == checksum in FPGA */
|
||||||
status = readUserCode();
|
status = readUserCode();
|
||||||
if (_fs->checksum() != status)
|
if (_fs->checksum() != status) {
|
||||||
printError("SRAM Flash: FAIL");
|
printError("SRAM Flash: FAIL");
|
||||||
else
|
printf("%04x %04x\n", _fs->checksum(), status);
|
||||||
|
} else
|
||||||
printSuccess("SRAM Flash: Success");
|
printSuccess("SRAM Flash: Success");
|
||||||
if (_verbose)
|
if (_verbose)
|
||||||
displayReadReg(readStatusReg());
|
displayReadReg(readStatusReg());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue