From d58a1c3fc7a7b7f22d77592dc14357311cddf82d Mon Sep 17 00:00:00 2001 From: Giovanni Bruni Date: Thu, 26 Oct 2023 11:30:24 +0200 Subject: [PATCH] lattice: correct mask for sram erase for NEXUS_FAMILY, as it is 0x00 --- src/lattice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lattice.cpp b/src/lattice.cpp index 5143a04..981679c 100644 --- a/src/lattice.cpp +++ b/src/lattice.cpp @@ -729,7 +729,7 @@ bool Lattice::clearSRAM() printSuccess("DONE"); } - if (_fpga_family == MACHXO3D_FAMILY) + if (_fpga_family == MACHXO3D_FAMILY || _fpga_family == NEXUS_FAMILY) erase_op = 0x0; else erase_op = FLASH_ERASE_SRAM;