fet_core: reset after erase.

Some versions of the Olimex MSP-JTAG-TINY v2 require this for correct
JTAG function following an erase.
This commit is contained in:
Daniel Beer 2015-06-11 09:24:27 +12:00
parent f1f513e013
commit cb765f639d
1 changed files with 6 additions and 0 deletions

View File

@ -601,6 +601,12 @@ int fet_erase(device_t dev_base, device_erase_type_t type, address_t addr)
return -1;
}
if (fet_proto_xfer(&dev->proto, C_RESET, NULL, 0,
3, FET_RESET_ALL, 0, 0) < 0) {
printc_err("fet: reset failed\n");
return -1;
}
return 0;
}