X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fstm32f2x.c;h=eab19348cfda4c4f0ea7458c1dc0ec58cf1b8009;hb=b9cb2027b327461030321020af54956c03716b6d;hp=be96d98195ab50bfcd2a12b14cced2ea42d4c97f;hpb=ba2fbe22470915359e1905aaad4c613eacbdf6dc;p=openocd.git diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c index be96d98195..eab19348cf 100644 --- a/src/flash/nor/stm32f2x.c +++ b/src/flash/nor/stm32f2x.c @@ -481,7 +481,7 @@ static int stm32x_protect(struct flash_bank *bank, int set, int first, int last) return ERROR_OK; } -static int stm32x_write_block(struct flash_bank *bank, uint8_t *buffer, +static int stm32x_write_block(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct target *target = bank->target; @@ -608,7 +608,7 @@ static int stm32x_write_block(struct flash_bank *bank, uint8_t *buffer, return retval; } -static int stm32x_write(struct flash_bank *bank, uint8_t *buffer, +static int stm32x_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct target *target = bank->target; @@ -779,6 +779,9 @@ static int stm32x_probe(struct flash_bank *bank) case 0x423: max_flash_size_in_kb = 256; break; + case 0x433: + max_flash_size_in_kb = 512; + break; default: LOG_WARNING("Cannot identify target as a STM32 family."); return ERROR_FAIL; @@ -927,6 +930,7 @@ static int get_stm32x_info(struct flash_bank *bank, char *buf, int buf_size) break; case 0x423: + case 0x433: device_str = "STM32F4xx (Low Power)"; switch (rev_id) {