diff --git a/G0:G070/flash/flash.bin b/G0:G070/flash/flash.bin index ee67622..e80ee14 100755 Binary files a/G0:G070/flash/flash.bin and b/G0:G070/flash/flash.bin differ diff --git a/G0:G070/flash/flash.c b/G0:G070/flash/flash.c index 824fbf3..9a6ab8d 100644 --- a/G0:G070/flash/flash.c +++ b/G0:G070/flash/flash.c @@ -128,9 +128,9 @@ static int write2flash(const void *start, const void *wrdata, uint32_t stor_size if(FLASH->SR & FLASH_SR_PGSERR){ ret = 1; // program error - meet not 0xffff break; - }else{ + }/*else{ for(int _ = 0; _ < 9999 && (!(FLASH->SR & FLASH_SR_EOP)); ++_); - } + }*/ FLASH->SR = 0xffff; } FLASH->CR &= ~(FLASH_CR_PG); // 7: clear PG bit at end of process