2024-12-09 07:24 AM
Is it possible to move and/or to copy/paste pin configurations from one pin to another?
If yes, how?
If not - feature suggestion!
Solved! Go to Solution.
2024-12-10 05:21 AM
Hello @Andrew Neil
Yes, it is possible to move pin configurations in STM32CubeMX. Here’s how you can do it:
THX
Ghofrane
2024-12-10 05:21 AM
Hello @Andrew Neil
Yes, it is possible to move pin configurations in STM32CubeMX. Here’s how you can do it:
THX
Ghofrane
2024-12-10 05:40 AM
Thanks.
How about to copy a pin?
eg, you're setting up a group of LEDs: apart from the name, the settings would be the same on every pin - so you'd just want to set the first, then copy to the others ...
2024-12-10 05:49 AM
Hello @Andrew Neil
Unfortunately, STM32CubeMX does not have a direct "copy" feature for pin configurations. Here are some key reasons:
2024-12-10 06:20 AM
Yes, but don't those same issues apply to moving a pin configuration?
2024-12-10 06:55 AM
> but don't those same issues apply to moving a pin configuration?
Hmm. Moving means that you have a function assigned to a pin and want to move it to another [compatible] pin. This is a common situation. Just cloning a pin to many others - less common. What do you want to copy: speed? pull-up/pull down? name?
2024-12-10 07:14 AM
@Pavel A. wrote:Just cloning a pin to many others - less common.
Really?
The example of having a number of LEDs must be quite common.
Similarly a number switches.
2024-12-10 10:11 AM
I'm not convinced )) If you have more than (say) 50 LEDs or switches there is going to be some external controller with low pin count interface (in which every pin is individual). Otherwise it doesn't scale. Less than 20-30 pins one can set up manually.