mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-09-07 01:37:21 +02:00
lattice: added support for reset method (only tested with ECP5
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user