diff --git a/src/lattice.cpp b/src/lattice.cpp index ab8a287..4c2a17b 100644 --- a/src/lattice.cpp +++ b/src/lattice.cpp @@ -702,6 +702,13 @@ bool Lattice::post_flash_access() _jtag->go_test_logic_reset(); return true; } +void Lattice::reset() +{ + if (_fpga_family == ECP5_FAMILY) + post_flash_access(); + else + printError("Lattice Reset only tested on ECP5 Family."); +} bool Lattice::clearSRAM() { diff --git a/src/lattice.hpp b/src/lattice.hpp index ae3e4f2..0eef34b 100644 --- a/src/lattice.hpp +++ b/src/lattice.hpp @@ -25,7 +25,7 @@ class Lattice: public Device, SPIInterface { int8_t verbose, bool skip_load_bridge, bool skip_reset); uint32_t idCode() override; int userCode(); - void reset() override {} + void reset() override; void program(unsigned int offset, bool unprotect_flash) override; bool program_mem(); bool program_flash(unsigned int offset, bool unprotect_flash);