add STM32F303 targets

This commit is contained in:
Angus Peart 2016-11-03 13:44:13 -07:00
parent e279844532
commit 4212d7a394
1 changed files with 4 additions and 0 deletions

View File

@ -133,7 +133,9 @@ bool stm32f1_probe(target *t)
return true;
case 0x422: /* STM32F30x */
case 0x432: /* STM32F37x */
case 0x438: /* STM32F303x6/8 and STM32F328 */
case 0x439: /* STM32F302C8 */
case 0x446: /* STM32F303xD/E and STM32F398xE */
t->driver = "STM32F3";
target_add_ram(t, 0x20000000, 0x10000);
stm32f1_add_flash(t, 0x8000000, 0x80000, 0x800);
@ -307,7 +309,9 @@ static bool stm32f1_cmd_option(target *t, int argc, char *argv[])
switch(t->idcode) {
case 0x422: /* STM32F30x */
case 0x432: /* STM32F37x */
case 0x438: /* STM32F303x6/8 and STM32F328 */
case 0x440: /* STM32F0 */
case 0x446: /* STM32F303xD/E and STM32F398xE */
flash_obp_rdp_key = FLASH_OBP_RDP_KEY_F3;
break;
default: flash_obp_rdp_key = FLASH_OBP_RDP_KEY;