This however breaks several things in the new project wizard, so it looks like my board definition is wrong or incomplete.
Can anyone help getting this board added ?
Do you want to use this with Arduino? Because that’s not a valid variant folder in here. For the STM32WLE5JC I would have expected a value of STM32WLxx/WL54JCI_WL55JCI_WLE4J(8-B-C)I_WLE5J(8-B-C)I.
This raises question too, because all other boards have the full chip name (no "x"es) and the package name. Some builder scripts use it to derive additional information from this value. So I would have expected a value of e.g. stm32wle5jci6.
Ok, starting from this Nucleo board, I’ve made a board.json which at least doesn’t cause problems in the new project wizard. One small question : what is the importance / use of
"product_line": "STM32WLE55xx",
i.e. when I have the partnumber of the MCU (stm32wle5jci6 in my case), how to I obtain the correct product_line value ?
The stm32cube.py builder scripts expects a bunch of information to be present in the board JSON file. That can be seen with all instances of board.get().
So basically the platform and builder script use this info to infer the name of the stm32cube package and the name of the startup file etc.
Looking into STM32Cube, there is a ‘Segment / Series / Line’ selection filter, so I assumed this ‘Line’ has to match with PlatformIO’s product_line = .
But then looking at your example for the NUCLEO-WL55JC1 / NUCLEO-WL55JC2 board, it has a STM32WL55JCI6 MCU, and for this part, the ‘Line’ is SMT32WL5x, not exactly the same as STM32WL55xx in the json file.
Same for the variant setting. I am a bit in the dark on how to set this properly.
Did you ever get this to work? I would also like to use the Lora E5 Mini with PlatformIO. Any hints on how to set it up as a custom board would be appreciated…