colognechip: performs reset after SPI Flash write
This commit is contained in:
parent
f177884d84
commit
4553bacb05
|
|
@ -161,6 +161,7 @@ bool CologneChip::post_flash_access()
|
|||
_ftdi_jtag->gpio_set(_oen_pin);
|
||||
}
|
||||
usleep(SLEEP_US);
|
||||
reset();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -383,9 +384,7 @@ void CologneChip::programJTAG_flash(unsigned int offset, const uint8_t *data,
|
|||
if (_verify)
|
||||
flash.verify(offset, data, length);
|
||||
|
||||
if (_ftdi_jtag) {
|
||||
_ftdi_jtag->gpio_set(_oen_pin);
|
||||
}
|
||||
post_flash_access();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue