diff --git a/src/stm32f1.c b/src/stm32f1.c index df6dcce..48e7d95 100644 --- a/src/stm32f1.c +++ b/src/stm32f1.c @@ -57,6 +57,7 @@ static int stm32f1_flash_write(struct target_s *target, uint32_t dest, static const char stm32f1_driver_str[] = "STM32, Medium density."; static const char stm32hd_driver_str[] = "STM32, High density."; +static const char stm32f3_driver_str[] = "STM32F3xx"; static const char stm32f1_xml_memory_map[] = "" /* "flash_write = stm32f1_flash_write; target_add_commands(target, stm32f1_cmd_list, "STM32"); return 0; + case 0x422: /* STM32F3 */ + target->driver = stm32f3_driver_str; + target->xml_mem_map = stm32hd_xml_memory_map; + target->flash_erase = stm32hd_flash_erase; + target->flash_write = stm32f1_flash_write; + target_add_commands(target, stm32f1_cmd_list, "STM32"); + return 0; default: return -1; }