2024-12-28 09:13 AM
Hello, all,
I'm using STM32CubeIDE to design my first STM32 micro-controller circuit. I've used the tool to assign functions to about 20 pins on the micro-controller so far. Now, I'm at the stage where I'm creating the schematic and connecting external circuitry to the micro-controller pins.
Is there an easy way to get a list of the pins I've assigned so far, along with User Labels, so I can go right down the list and wire up the circuits? What I'm doing so far is to keep the STM32CubeIDE open on one monitor and view the pin-out view, and work my way around the chip, wiring pins as I go. Is this the most efficient way to work? Is this how most others do it? I wondered if I was overlooking some built-in function of STM32CubeIDE to perform this task.
Thanks for your advice and suggestions.
-Kevin
Solved! Go to Solution.
2024-12-28 10:01 AM
Hello Kevin,
Personally, when I'm wiring my project in KiCad, for example, I have both STM32CubeIDE and KiCad open. However, if you want to have an Excel spreadsheet with the pinout, you can do the following:
Go to .ioc->Pinout->Export Pinout without Alt. Functions
And you will have an .csv file like this one:
I hope this is what you were searching for.
Have a nice day!
2024-12-28 10:01 AM
Hello Kevin,
Personally, when I'm wiring my project in KiCad, for example, I have both STM32CubeIDE and KiCad open. However, if you want to have an Excel spreadsheet with the pinout, you can do the following:
Go to .ioc->Pinout->Export Pinout without Alt. Functions
And you will have an .csv file like this one:
I hope this is what you were searching for.
Have a nice day!
2024-12-28 11:09 AM
STM32CubeMX has a tool that exports a schematic symbol of your pin assignments.
You can check section 4.17 of the CubeMX Manual:
https://www.st.com/resource/en/user_manual/um1718-stm32cubemx-for-stm32-configuration-and-initialization-c-code-generation-stmicroelectronics.pdf
I've had varying degrees of success with larger pinout chips, but I think smaller projects should work just fine.
2024-12-30 09:42 AM
@BTurc.2and @halfordC , thank you both for your helpful replies.
@BTurc.2, that was exactly what I was asking for. Thanks, also, for describing how you work efficiently.
@halfordC, thanks about the schematic output. I'm using KiCAD and might try this, just to experiment. I would have never learned about this on my own.
-Kevin