Unable to setup custom board


I am currently working on a project involving the AP_Periph device. For this project, I have chosen the STM32F412Rx microcontroller, which is the same as the one used in the CUAV GPS device. However, for the proof of concept (POC), I have ordered a Nucleo-F412Zg development board. I have copied the CUAV hardware definition (hwdef) file and created a custom board file. In the custom board file, I made the following changes:

# MCU class and specific type
MCU STM32F4xx STM32F412Zx

Unfortunately, when I try to configure the board, I encounter the following error:

Error: Unable to find the module for MCU STM32F412Zx
Failed to process hwdef.dat ret=1

I would greatly appreciate any assistance in resolving this issue.

Thank you.

there isn’t a STM32F412ZX.py at hwdef/script folder, so you should make it refer to the STM32F412RX.py. it’s easy, because the two mcu are same series.