Hi,
I have developed a custom PCB with the STM32F042G6U6 microcontroller. Since there is no other board with this chip available, i need to make my own board definition. I followed the steps as described here, but upon compilation I get the error: fatal error: variant_MYBOARD.h: No such file or directory
To create the myboard.json file I copied the contents of the nucleo_f042k6.json board and changed the relevant fields. myboard.json is as follows:
{
"build": {
"cpu": "cortex-m0",
"extra_flags": "-DSTM32F0 -DSTM32F042x6",
"f_cpu": "48000000L",
"mcu": "stm32f042g6u6",
"product_line": "STM32F042x6",
"variant": "STM32F0xx/F042G(4-6)U"
},
"connectivity": [
"can"
],
"debug": {
"default_tools": [
"jlink"
],
"jlink_device": "STM32F042G6",
"onboard_tools": [
"jlink"
],
"openocd_board": "st_nucleo_f0",
"openocd_target": "stm32f0x",
"svd_path": "STM32F042x.svd"
},
"frameworks": [
"arduino",
"cmsis",
"stm32cube",
"libopencm3"
],
"name": "My Board",
"upload": {
"maximum_ram_size": 6144,
"maximum_size": 32768,
"protocol": "jlink",
"protocols": [
"jlink",
"cmsis-dap",
"stlink",
"blackmagic",
"mbed"
]
},
"url": "https://developer.mbed.org/platforms/ST-Nucleo-F042K6/",
"vendor": "ST"
}
What is happening and how to resolve this?
Br,
Jan