add STM32F303 targets
This commit is contained in:
parent
e279844532
commit
4212d7a394
|
@ -133,7 +133,9 @@ bool stm32f1_probe(target *t)
|
||||||
return true;
|
return true;
|
||||||
case 0x422: /* STM32F30x */
|
case 0x422: /* STM32F30x */
|
||||||
case 0x432: /* STM32F37x */
|
case 0x432: /* STM32F37x */
|
||||||
|
case 0x438: /* STM32F303x6/8 and STM32F328 */
|
||||||
case 0x439: /* STM32F302C8 */
|
case 0x439: /* STM32F302C8 */
|
||||||
|
case 0x446: /* STM32F303xD/E and STM32F398xE */
|
||||||
t->driver = "STM32F3";
|
t->driver = "STM32F3";
|
||||||
target_add_ram(t, 0x20000000, 0x10000);
|
target_add_ram(t, 0x20000000, 0x10000);
|
||||||
stm32f1_add_flash(t, 0x8000000, 0x80000, 0x800);
|
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) {
|
switch(t->idcode) {
|
||||||
case 0x422: /* STM32F30x */
|
case 0x422: /* STM32F30x */
|
||||||
case 0x432: /* STM32F37x */
|
case 0x432: /* STM32F37x */
|
||||||
|
case 0x438: /* STM32F303x6/8 and STM32F328 */
|
||||||
case 0x440: /* STM32F0 */
|
case 0x440: /* STM32F0 */
|
||||||
|
case 0x446: /* STM32F303xD/E and STM32F398xE */
|
||||||
flash_obp_rdp_key = FLASH_OBP_RDP_KEY_F3;
|
flash_obp_rdp_key = FLASH_OBP_RDP_KEY_F3;
|
||||||
break;
|
break;
|
||||||
default: flash_obp_rdp_key = FLASH_OBP_RDP_KEY;
|
default: flash_obp_rdp_key = FLASH_OBP_RDP_KEY;
|
||||||
|
|
Loading…
Reference in New Issue