How the stm32Xxxx_af.csv files are generated? #11508
Replies: 4 comments
-
Originally I think many of the original ones were generated with a (fairly manual) script that parsed the datasheet PDFs, but I'm not sure that still works. But yes, the source of information is the table in the ST datasheets. |
Beta Was this translation helpful? Give feedback.
-
I checked the G474 file and most of pins where compatible. The only difference was the HRTIM that is not present on my G473, but I dont care about this, so I can use this file. Thanks for answer |
Beta Was this translation helpful? Give feedback.
-
I got most of the way by finding GPIO-STM32xxx_gpio_v1_0_Modes.xml in STM32Cube install directory and processing it with https://gist.github.com/agesome/cb86b3f110c38f4c03bc658d83dd911c |
Beta Was this translation helpful? Give feedback.
-
Also see stm32/af_csv_gen: Add tool to generate af csv files from STM32_open_pin_data. #12272 |
Beta Was this translation helpful? Give feedback.
-
I have a board based on stm32g474 (lqfp 100) that is not compatible with other supported CPUs like STM32G473 (lqfp 64).
How can I create the required file? I dont see any python script in the repo. Is this a manual process?
I know that there is a table in the datasheet, but this info is also available in the HAL? (maybe in some device pack files?)
The HAL file stm32Xxx_hal_gpio_ex.h contains lot of AF definitions, but... how they are linked to the pins?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions