lattice: added support for reset method (only tested with ECP5

This commit is contained in:
Gwenhael Goavec-Merou 2024-12-19 14:59:35 +01:00
parent 318ebcab22
commit 2103316baf
2 changed files with 8 additions and 1 deletions

View File

@ -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()
{

View File

@ -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);