Open daniel-starke opened 3 years ago
Hi @daniel-starke, thanks for your research. TBH, I'm a bit reluctant to dig into proprietary Java archives to extract the list of supported MCUs. We introduced that new field to be able to compile the official STM32Cube packages directly from the repositories and upgraded the major version of the platform so user will be aware of possible breaking changes. If this feature is critical for you, please submit a complete PR.
Thanks again!
Up to ststm32 version 9.x there was no need for a
product_line
field in theboard.json
. This changed with version 10. The value is needed to get the right linker file and includes. However, the value is redundant. It can be deduced from the given MCU like done in STM32CubeIDE. This would avoid breaking current custom boards and ease the handling for the user as this value if not quite obvious.The following gawk script can be used to obtain all mappings from an STM32CubeIDE installation:
The
product_line
can be obtained asdefine
field in the result and some validity checks can than be performed using the following python function: