mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
gowin: Fix flash write message and display checksum when SRAM fail
This commit is contained in:
+3
-2
@@ -195,9 +195,10 @@ void Gowin::program(unsigned int offset)
|
||||
|
||||
/* check if file checksum == checksum in FPGA */
|
||||
status = readUserCode();
|
||||
if (_fs->checksum() != status)
|
||||
if (_fs->checksum() != status) {
|
||||
printError("SRAM Flash: FAIL");
|
||||
else
|
||||
printf("%04x %04x\n", _fs->checksum(), status);
|
||||
} else
|
||||
printSuccess("SRAM Flash: Success");
|
||||
if (_verbose)
|
||||
displayReadReg(readStatusReg());
|
||||
|
||||
Reference in New Issue
Block a user