ch32f1: Fixed the assumption that uint32_t is an `unsigned int`
This commit is contained in:
parent
94a0f1587d
commit
2d4d6aa65a
|
@ -244,11 +244,10 @@ int ch32f1_flash_erase (struct target_flash *f, target_addr addr, size_t len)
|
|||
static bool ch32f1_wait_flash_ready(target *t, uint32_t adr)
|
||||
{
|
||||
uint32_t ff;
|
||||
for(int i = 0; i < 32; i++) {
|
||||
for (int i = 0; i < 32; i++)
|
||||
ff = target_mem_read32(t, adr);
|
||||
}
|
||||
if (ff != 0xffffffffUL) {
|
||||
ERROR_CH("ch32f1 Not erased properly at %x or flash access issue\n",adr);
|
||||
ERROR_CH("ch32f1 Not erased properly at %" PRIx32 " or flash access issue\n", adr);
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue