STM32 STD LIB

From ElectroDragon Wiki

MDK-ARM Setup by STD LIB

File Struture: Manage Components

Std build stm32 projects.png
File Parts Files
STD LIB
  • .\user\lib\STM32L1xx_StdPeriph_Driver\src
  • .\user\lib\STM32L1xx_StdPeriph_Driver\inc
add all
  • User main
  • customized interrupt
  • CONF
  • .\user\main.c;
  • .\user\main.h;
  • .\user\stm32l1xx_it.c;
  • .\user\stm32l1xx_it.h
  • .\user\stm32l1xx_conf.h;
User libraries
  • .\user\hardware
-
  • Device Support
  • Startup

(replace by Device module)

  • (replaced) .\user\system_stm32l1xx.c;
  • (replaced) CMSIS\Device\ST\STM32L1xx\system_stm32l1xx.h;
  • (replaced) \CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\ *.s
  • (conflict and still need) CMSIS\Device\ST\STM32L1xx\Include\stm32l1xx.h;
  • CMSIS Core

(replace by module CMSIS Core)

  • .CMSIS\CM3\CoreSupport\core_cm3.c
  • C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.5.1\CMSIS\Core\Include\core_cm3.h


Preprocesser Symbol

USE_STDPERIPH_DRIVER, STM32L1XX_MD, USE_STM32L152_EVAL

  • USE_STDPERIPH_DRIVER
  • STM32L1XX_MD

Common Error