Question
Configuring STM32 PA5 port for output (using Nucleo-L073RZ board)
Hi,
I am using KEIL to program PA5 pin which is connected to the user LED. But after writing the program, I am unable to get the LED on. It is a simple program but I am not sure, why it is not working. Any help will be appreciated.
#include "stm32l0xx.h" // Device header
int main (void)
{
RCC->IOPENR |= 0x1;
GPIOA->MODER |= (1<<10);
while(1)
{
GPIOA->ODR = 0x20;
}
}
Regards,
Tapas