-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
I've ended up here reading one of your blog post.
Maybe you already know that but just in case, a part of the STM32 mcu db (included in STM32CubeMX) is now available on GitHub:
https://github.com/STMicroelectronics/STM32_open_pin_data
About this:
scripts/embedded/stm32pinout.py
Lines 59 to 68 in 30bf512
| # TODO: It could be good to (also) support sorting signals by AF index. | |
| # This requires reading from one more xml file, see | |
| # https://community.st.com/s/question/0D53W00000JMY0USAX/how-to-extract-alternate-function-mappings-from-cubemxs-xml-database-files | |
| # TODO: Can we do even smarter sorting of function names? So that | |
| # related signals (e.g. I2C1_SDA and I2C_SCL) end up vertically | |
| # adjacent? Also requires sorting pins in this script (i.e. on pin no or | |
| # pin name), otherwise sorting afterwards breaks the alignment. Probably | |
| # a non-trivial optimization problem, though. | |
| # TODO: Can we also include pin structure (e.g. 5V tolerant FT, or TT, | |
| # etc.)? Not sure if this is stored in the XML files anywhere, though... |
We also use thoses db to generate some of our generic files and so several of the TODO are done in this script:
https://github.com/stm32duino/Arduino_Core_STM32/blob/main/CI/update/stm32variant.py
Which allows to generate the generic variant including the PeripheralPins.c.
Hope this was useful.
Feel free to close this issue as it is mainly to provide some information. 😉
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels