boards/hp34970_fp_f303rd.json

Sun, 25 Oct 2020 17:02:53 +0100

author
David Douard <david.douard@sdf3.org>
date
Sun, 25 Oct 2020 17:02:53 +0100
changeset 30
71be284c66b3
child 61
42c4e1ea9a77
permissions
-rw-r--r--

Update the custom target HP34970_FP_303RD

update the platformio.ini:
remove unused flags, and configure so it uses includes from the project's root
directory (in TARGET_HP34970_FP_F303RD) so these .h/.c files do not conflict
when compiling for other targets.

Add a TARGET_HP34970_FR_F303RD/ for target specific headers/linker files.
Add a src/TARGET_HP34970_FR_F303RD/ for c files (protected by '#if defined'
statments).

{
  "build": {
    "cpu": "cortex-m4",
    "extra_flags": "-DSTM32F303xE",
    "f_cpu": "72000000L",
    "mcu": "stm32f303rdt7",
    "product_line": "STM32F303xE"
  },
  "debug": {
    "default_tools": [
      "stlink"
    ],
    "jlink_device": "STM32F303RE",
    "openocd_target": "stm32f3x",
    "svd_path": "STM32F30x.svd"
  },
  "frameworks": ["mbed"],
  "platforms": ["ststm32"],
  "name": "HP34970 Replace Front Panel Board (STM32F303RD, 64k RAM, 384k Flash)",
  "upload": {
    "maximum_ram_size": 65536,
    "maximum_size": 393216,
    "protocol": "stlink",
    "protocols": [
      "jlink",
      "stlink",
      "blackmagic",
      "mbed"
    ]
  },
  "url": "https://whatever.sdfa3.org/",
  "vendor": "Custom"
}

mercurial