mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-22 06:07:36 +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();
|
_jtag->go_test_logic_reset();
|
||||||
return true;
|
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()
|
bool Lattice::clearSRAM()
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -25,7 +25,7 @@ class Lattice: public Device, SPIInterface {
|
|||||||
int8_t verbose, bool skip_load_bridge, bool skip_reset);
|
int8_t verbose, bool skip_load_bridge, bool skip_reset);
|
||||||
uint32_t idCode() override;
|
uint32_t idCode() override;
|
||||||
int userCode();
|
int userCode();
|
||||||
void reset() override {}
|
void reset() override;
|
||||||
void program(unsigned int offset, bool unprotect_flash) override;
|
void program(unsigned int offset, bool unprotect_flash) override;
|
||||||
bool program_mem();
|
bool program_mem();
|
||||||
bool program_flash(unsigned int offset, bool unprotect_flash);
|
bool program_flash(unsigned int offset, bool unprotect_flash);
|
||||||
|
|||||||
Reference in New Issue
Block a user