Unusable STM32L01 MCU pins?
Hello, all.
I'm trying to design and build my first STM32 project, a timer. I'm using the STM32L101K4 and have it configured as illustrated in the attached screenshot. The pins are configured in STM32CubeIDE as:
External LSE on 2 & 3
LCD connections on 7-13, 25-27. Pins 8 and 25 are PWM pins to control the LCD's backlight and contrast.
A rotary encoder and push-button switch on 19-21.
Some LEDs on 22, 28 & 29.
SWD on 23 & 24.
And, an unassigned GPIO pin on 30.
I also have configured:
System Core->RCC->LSE
System Core->SYS->Debug Serial Wire
Timers->TIM2->Channel 1 PWM Generation and Channel 3 PWM
All of these are configured without conflict, I think.
I'm puzzled now that I can't assign a role like GPIO_Output to unused pins, such as 6, 14, 15, 18 or 31. Assigning a role such as GPIO_Output (I didn't try other roles) generates a conflict in the configuration, with yellow triangles and magenta backgrounds.
Is it true that, because of the configuration I've chosen, these pins must remain unused? Can anyone explain why?
Second question, mostly unrelated to the main question of this post: What's the difference between 'pinned' pins (such as 13 or 19-22) and 'unpinned' pins (such as 9-12)? What does 'pinning' control?
As always, thanks for any advice or guidance. I really appreciate the expertise in this group.
-Kevin
