LibrePCB / stm-db

Collection of STM(8|32) pinout description files in JSON format, exported from STM(8|32)CubeMX.
MIT License
2 stars 0 forks source link

Parse STM32CubeMX database directly #4

Closed dbrgn closed 4 years ago

dbrgn commented 4 years ago

Instead of using hacky export scripts, parse the STM32CubeMX database directly :grin:

Example: https://github.com/LibrePCB/stm32-db/blob/parse-db/data/STM32L071KBTx.json Nice, isn't it? :slightly_smiling_face:

@ubruhin the JSON files also contain information about the pin signals. That could be used in the future in case we add support for pin signals in LibrePCB!

CC @ouabache

ouabache commented 4 years ago

Can you get the alt pin functions? I could never get those using the hack

On Sun, Feb 23, 2020, 4:15 PM Danilo Bargen notifications@github.com wrote:

Instead of using hacky export scripts, parse the STM32CubeMX database directly 😁

@ubruhin https://github.com/ubruhin the JSON files also contain information about the pin signals. That could be used in the future in case we add support for pin signals in LibrePCB!

CC @ouabache https://github.com/ouabache

You can view, comment on, or merge this pull request online at:

https://github.com/LibrePCB/stm32-db/pull/4 Commit Summary

  • Parse STM32CubeMX database directly
  • Regenerate data
  • Remove old scripts

File Changes

Patch Links:

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LibrePCB/stm32-db/pull/4?email_source=notifications&email_token=AAKX3XDT2T5T2ZQ5F6NEOZDREMGRRA5CNFSM4KZ7GNMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPTFI3Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKX3XHPEZBXKQWGPT6FXRDREMGRRANCNFSM4KZ7GNMA .

dbrgn commented 4 years ago

Can you get the alt pin functions? I could never get those using the hack

I could (with the JAR bytecode patching hack), but we don't need them for LibrePCB. The pin numbers and signals are sufficient.

AF information is in the IP/GPIO-*.xml files.