I have made the following changes:
C:\Users\OSD.platformio\platforms\ststm32\boards Added “vccgnd_f407Ig_mini.json”
{
"build": {
"core": "stm32",
"cpu": "cortex-m4",
"extra_flags": "-DSTM32F407xx -DSTM32F4",
"f_cpu": "168000000L",
"framework_extra_flags": {
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
},
"mcu": "stm32f407igt6",
"product_line": "STM32F407xx",
"variant": "F407I(E-G)(H-T)_F417I(E-G)(H-T)"
},
"debug": {
"jlink_device": "STM32F407IG",
"openocd_target": "stm32f4x",
"svd_path": "STM32F407xx.svd"
},
"frameworks": [
"arduino",
"cmsis",
"stm32cube",
"libopencm3"
],
"name": "VCCGND F407IGT6 Mini",
"upload": {
"maximum_ram_size": 131072,
"maximum_size": 1048576,
"protocol": "stlink",
"protocols": [
"blackmagic",
"cmsis-dap",
"dfu",
"jlink",
"serial",
"stlink"
]
},
"url": "https://stm32-base.org/boards/STM32F407IGT6-VCC-GND-Large",
"vendor": "VCCGND"
}
C:\Users\OSD.platformio\packages\framework-arduinoststm32\variants\STM32F4xx\F407I(E-G)(H-T)_F417I(E-G)(H-T)
C:\Users\OSD.platformio\packages\framework-arduinoststm32\boards.txt added:
Blockquote# VCCGND_F407IGT6 board
GenF4.menu.pnum.VCCGND_F407IG_MINI=VCCGND F407IGT6 Mini
GenF4.menu.pnum.VCCGND_F407IG_MINI.upload.maximum_size=1048576
GenF4.menu.pnum.VCCGND_F407IG_MINI.upload.maximum_data_size=131072
GenF4.menu.pnum.VCCGND_F407IG_MINI.build.board=VCCGND_F407IG_MINI
GenF4.menu.pnum.VCCGND_F407IG_MINI.build.product_line=STM32F407xx
GenF4.menu.pnum.VCCGND_F407IG_MINI.build.variant_h=variant_{build.board}.h
GenF4.menu.pnum.VCCGND_F407IG_MINI.build.variant=STM32F4xx/F407I(E-G)(H-T)_F417I(E-G)(H-T)
GenF4.menu.pnum.VCCGND_F407IG_MINI.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
But after I created the project using the custom board, I encountered an error when compiling it:
Blockquote
compilation terminated.
*** [.pio\build\vccgnd_f407Ig_mini\SrcWrapper\src\HAL\stm32yyxx_hal_cryp.c.o] Error 1
: fatal error: variant_VCCGND_F407IG_MINI.h: No such file or directory
What did I do wrong?