Merge pull request #230 from smunaut/fix_flash_reset

iceprog: Better reset of flash
This commit is contained in:
Clifford Wolf 2019-08-15 13:31:53 +02:00 committed by GitHub
commit 9594931536
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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();
}