This KiCad plugin generates pinouts from a PCB file to various formats:
- Text formats for documentation (HTML table, CSV, Markdown, WireViz, etc.),
- Code (currently supported: C/C++ enums, C/C++ #define, Xilinx XDC constraint, Microsemi PDC constraint, Python/MicroPython dict).
Example applications:
- Automatically create the pin assignement from a microcontroller to C code,
- Generate interface documents for connectors.
This plugin has been developped for KiCad 6. To install it:
- Clone or download the repository, and extract it to your KiCad plugin folder. You can find it by opening the PCB editor, and using "Tools" > "Externals Plugins" > "Open Plugin Directory".
- Refresh the plugins by restarting the PCB editor or using "Tools" > "Externals Plugins" > "Refresh Plugins".
To use the plugin:
- Select one component,
- Run the plugin by using the toolbar button or the Plugins menu,
- Choose the desired format with the drop-down menu and copy-paste the result!
This plugins only gives useful ouput if the pins have net names. Use labels in the schematic editor to give the nets a human-readable name.
Note: in the generated code, both unconnected and power nets are ignored (commented in the ouput).
This plugin is published under MIT license.