I found some problems with the use of pwm.
If I insert two rgb leds on my breadboard, connecting them to 6 pins in my nucleo, a led goes on and the other doesn't work, if I change the color, in a led the color corresponds to the one chosen while in the other comes a completely different color.
If I change the pins, with some of them the program does work.
Can it be a pin problem? Or am I wrong in pwm?