lattice: display status register when loadConfiguration fails

This commit is contained in:
Gwenhael Goavec-Merou 2020-04-28 10:00:55 +02:00
parent 56a81c1d68
commit 84b1d86d52
1 changed files with 1 additions and 0 deletions

View File

@ -461,6 +461,7 @@ bool Lattice::program_flash(unsigned int offset)
printInfo("Refresh: ", false);
if (loadConfiguration() == false) {
printError("FAIL");
displayReadReg(readStatusReg());
return false;
} else {
printSuccess("DONE");