Skip to content

Commit

Permalink
Merge pull request #987 from geoffreymbrown/develop-flash-timeout
Browse files Browse the repository at this point in the history
[regression] Changed timeout on flash write
  • Loading branch information
Nightwalker-87 committed Jun 17, 2020
2 parents ae0db2d + 2952859 commit 1ae3c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stlink-lib/flash_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
Expand Down

0 comments on commit 1ae3c08

Please sign in to comment.