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);
|
_ftdi_jtag->gpio_set(_oen_pin);
|
||||||
}
|
}
|
||||||
usleep(SLEEP_US);
|
usleep(SLEEP_US);
|
||||||
|
reset();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -383,9 +384,7 @@ void CologneChip::programJTAG_flash(unsigned int offset, const uint8_t *data,
|
||||||
if (_verify)
|
if (_verify)
|
||||||
flash.verify(offset, data, length);
|
flash.verify(offset, data, length);
|
||||||
|
|
||||||
if (_ftdi_jtag) {
|
post_flash_access();
|
||||||
_ftdi_jtag->gpio_set(_oen_pin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue