Please tell me if there is a more appropriate group!
I'm just starting with STM developmeent using STM32CubeIDE. I have a background in programming (C#/C++/C) on the desktop and some minor experience in electronics. I am able to follow along simple labs like "Blinky" no problem.
HOWEVER, I'd like to know a little bit more about what is going on with the labs. For example, this step:
"In this example we are going to use one of the LEDs present on the STM32C031 Nucleo board (connected to PA5 as seen in the schematic below)"
I did this fine, but how would we know that PA5 is connected to the LED? Where is the schematic showing how the various pins and outputs from the chip are connected to the NUCLEO board? As a specific example, my board is the NUCLEO-C031C6 which I believe means that the processor its the C031C6. I have reason to believe there is only one user available led on the board, BUT I fail to see how one would know that PA5 is the correct GPIO_Output to use. Why not PA4, PA6, etc. And on more powerful boards, I believe there are more than one user led available correct? It would be fun to redo or extend the lab to use other leds. I have done research and have found: https://www.st.com/resource/en/user_manual/um2953-stm32-nucleo64-board-mb1717-stmicroelectronics.pdf but I don't see a diagram linking the processor pins and outputs to the board peripherals. As you can probably guess, I'm curios how to figure out what is available and which outputs to use, for a more advanced board, not just the NUCLEO-C031C6. I feel like there is some systematic way I'm missing....
Bonus question. The board I have actually says:
NUCLEO-C031C6
NUC031C6$KU1
What extra info, if any does the second line with the "$" give?
Note, I believe the C0 series is just a more limited version of the G0 series. Hence my picking stm32g as a tag. Thanks!
UPDATE: I do see on the IDE itself, if you pick the board number to start the project and say "Yes" to map peripherals, it will show you how some (all?) of the pins from processor are wired to board. Thanks to @justme to point this out. However, the question still remains, is there a document showing how the pins are mapped from processor to board?