-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for the STM32U0 #798
Comments
I've created a
I expect none of the frameworks are functional. Using the current version of ST CubeMX to provide CMSIS, STM32U0xx_HAL_Driver, startup file, and system files seems to build using The svd file does not exist and the openocd target ( STM32CubeIDE does include a version of There appears to be a patch for adding support in upstream openocd here. I have not yet attempted to build it. I plan to try out the approach discussed here for the moment, and see how that goes. |
A quick update: I have been using PlatformIO with no framework successfully on the STM32U0 as described above. I'll summarize the changes I've made here. Since I haven't tried with any of the frameworks, and I don't actually expect them to work out of the box, I'm not creating a PR. I have also not tested with any debugger other than the Nucleo on-board STLink. Board file for Nucleo U083RCThe
OpenOCDThe OpenOCD version provided by PlatformIO does not presently support the STM32U0. Based on some combination of external references and STMCubeMX generated code, I've put together an OpenOCD package for PlatformIO which works, available at https://github.com/ebs-universe/pio-tool-openocd-stm32 I have not published it to the PlatformIO repository since I do not intend to maintain it once the default openOCD version supports this chip. STM32CubeSince the default
I have also placed the platformio.iniSuccessful build, program, and debug using the Nucleo on-board stlink requires the following project configuration:
I forget whether it was the ST Cube HAL or some other library which I am using which required |
ST has recently launched a series of low cost ULP MCUs - STM32U0. They've also released Nucleo boards for one of the more capable variants : NUCLEO-U083RC.
I have managed to get my hands on a NUCLEO-U083RC. I intend to use this board baremetal, with ST Cube Framework code manually added where needed.
Is there any way I can add the board definition for this Nucleo for myself? As far as I can tell, I only really need it to set the correct flags for the MCU and configure it to use the Nucleo's on-board STLink debugger - or is there something I'm missing? (I don't intend to use any framework)
What would be needed to add this support to platformio itself? Since I have the board, I'm open to trying to port from one of the other nucleos. The reason I'm concerned is that the version of the ST Cube framework included in platform IO is old enough for Cube MX generated code to error out pretty easily, so it might not include support for the STM32U0 at all.
The text was updated successfully, but these errors were encountered: