Hi,
I was willing to start using Keil with the Nucleo L152 board. As a first step, I wanted to test the examples. I've installed the Blinky example for that platform. Unfortunately, it doesn't compile. The output is as follow:
*** Using Compiler 'V5.06 update 4 (build 422)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'STM32L152 Flash' compiling Retarget.c... compiling Blinky.c... compiling Serial.c... assembling startup_stm32l152xe.s... compiling Buttons_NUCLEO_L152RE.c... compiling LED_NUCLEO_L152RE.c... C:\Keil_v5\ARM\PACK\Keil\STM32NUCLEO_BSP\1.6.0\Boards\ST\NUCLEO-L152RE\Common\LED_NUCLEO_L152RE.c(87): error: #136: struct "<unnamed>" has no field "BSRRL"
PIOA->BSRRL |= (led_mask[num]); C:\Keil_v5\ARM\PACK\Keil\STM32NUCLEO_BSP\1.6.0\Boards\ST\NUCLEO-L152RE\Common\LED_NUCLEO_L152RE.c(104): error: #136: struct "<unnamed>" has no field "BSRRH"
PIOA->BSRRH |= (led_mask[num]); C:\Keil_v5\ARM\PACK\Keil\STM32NUCLEO_BSP\1.6.0\Boards\ST\NUCLEO-L152RE\Common\LED_NUCLEO_L152RE.c: 0 warnings, 2 errors compiling system_stm32l1xx.c... RTE\Device\STM32L152RE\system_stm32l1xx.c(267): error: #20: identifier "HSI_VALUE" is undefined SystemCoreClock = HSI_VALUE; RTE\Device\STM32L152RE\system_stm32l1xx.c(270): error: #20: identifier "HSE_VALUE" is undefined SystemCoreClock = HSE_VALUE; RTE\Device\STM32L152RE\system_stm32l1xx.c(325): error: #20: identifier "HSE_STARTUP_TIMEOUT" is undefined } while((HSEStatus == 0) && (StartUpCounter != HSE_STARTUP_TIMEOUT)); RTE\Device\STM32L152RE\system_stm32l1xx.c: 0 warnings, 3 errors ".\Flash\Blinky.axf" - 5 Error(s), 0 Warning(s). Target not created. Build Time Elapsed: 00:00:02
Did I missed something?