Having problem in blinking the LED on Nucleo-L073 board, through HAL library
You need to configure your system clock. Cube generated code calls this function SystemClock_Config(). Also, you may want to use HAL_GPIO_WritePin() to reset your pin before initializing it, although I don't believe it is necessary.