mirror of https://github.com/YosysHQ/icestorm.git
Merge pull request #230 from smunaut/fix_flash_reset
iceprog: Better reset of flash
This commit is contained in:
commit
9594931536
|
|
@ -200,12 +200,10 @@ static void flash_read_id()
|
|||
|
||||
static void flash_reset()
|
||||
{
|
||||
flash_chip_select();
|
||||
mpsse_xfer_spi_bits(0xFF, 8);
|
||||
flash_chip_deselect();
|
||||
uint8_t data[8] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
|
||||
|
||||
flash_chip_select();
|
||||
mpsse_xfer_spi_bits(0xFF, 2);
|
||||
mpsse_xfer_spi(data, 8);
|
||||
flash_chip_deselect();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue