Set custom_config for the F303RD draft

Sun, 25 Oct 2020 16:58:38 +0100

author
David Douard <david.douard@sdf3.org>
date
Sun, 25 Oct 2020 16:58:38 +0100
changeset 29
276195d58a1d
parent 28
424d792fea4f
child 30
71be284c66b3

Set custom_config for the F303RD

- remove "supported_form_factors": irrelevant
- rename as HP34970_FP_F303RD
- enforce HSE_XTAL clock source
- add USBDEVICE flag in device_had_add
- set ROM size to 384ko

custom_targets.json file | annotate | diff | comparison | revisions
--- a/custom_targets.json	Fri Oct 16 22:08:47 2020 +0200
+++ b/custom_targets.json	Sun Oct 25 16:58:38 2020 +0100
@@ -1,12 +1,8 @@
 {
-    "HP34970_FP": {
+    "HP34970_FP_F303RD": {
 		"inherits": [
             "MCU_STM32_BAREMETAL"
         ],
-        "supported_form_factors": [
-            "ARDUINO",
-            "MORPHO"
-        ],
         "core": "Cortex-M4F",
         "extra_labels_add": [
             "STM32F3",
@@ -16,7 +12,7 @@
         "config": {
             "clock_source": {
                 "help": "Mask value : USE_PLL_HSE_EXTC | USE_PLL_HSE_XTAL (need HW patch) | USE_PLL_HSI",
-                "value": "USE_PLL_HSE_EXTC|USE_PLL_HSI",
+                "value": "USE_PLL_HSE_XTAL",
                 "macro_name": "CLOCK_SOURCE"
             }
         },
@@ -32,8 +28,10 @@
             "CRC",
             "SERIAL_ASYNCH",
             "FLASH",
+            "USBDEVICE",
             "MPU"
         ],
+        "mbed_rom_size": "0x60000",
         "bootloader_supported": true,
         "device_name": "STM32F303RE"
 	}

mercurial