Adding LED APIs for STM32L476 Discovery board?
I am trying to create keil project for STM32L476VG Discovery board, I tried to include LED API through board support packages from Manage Run time environment.
It leads to open STM32CubeMx and I have generated the code, While building the code I am getting error:
C:\Keil_v5\ARM\PACK\Keil\STM32L4xx_DFP\2.2.0\MDK\Boards\ST\STM32L496G-DISCO\Common\LED_STM32L496G_Discovery.c(34): error: #5: cannot open source input file "stm32l496g_discovery.h": No such file or directory
I am not able to understand why is it searching for STM32L496g_discovery.h file instead it should look for STM32L476g_discovery.h as I am using STM32L476 board.
I also tried to keep a copy of STM32L496g_discovery.h by downloading from github, but build fails with error:
STCubeGenerated\STCubeGenerated.sct(7): error: L6235E: More than one section matches selector - cannot all be FIRST/LAST.
Please help :(