kopia lustrzana https://github.com/stlink-org/stlink
change timeout on flash write
rodzic
ae0db2da15
commit
2952859d61
|
@ -360,11 +360,11 @@ int stlink_flash_loader_run(stlink_t *sl, flash_loader_t* fl, stm32_addr_t targe
|
|||
* the OS uses, the wait until the error message is reduced to the same order of magnitude
|
||||
* as what was intended. -- REW.
|
||||
*/
|
||||
#define WAIT_ROUNDS 100
|
||||
#define WAIT_ROUNDS 30
|
||||
|
||||
// wait until done (reaches breakpoint)
|
||||
for (i = 0; i < WAIT_ROUNDS; i++) {
|
||||
usleep(1000);
|
||||
usleep(10000);
|
||||
|
||||
if (stlink_is_core_halted(sl)) { break; }
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue