標簽:load 時鍾 目錄 圖片 標准庫 標准 sys tar mbed
stm32f767 標准庫 工程模板
標准庫方式已经过时,官方建议使用 HAL库方式!!!
访问网站目錄:STM32 Standard Peripheral Libraries
https://www.st.com/en/embedded-software/stm32-standard-peripheral-libraries.html
官网 导航栏:Products》Microcontroller》software》STM32 Standard Peripheral Libraries
下載和解壓,打開官方固件庫包,STM32F10x_StdPeriph_Lib_V3.5.0。
后面拷贝文件时,均以此文件夹为根目錄。
1.根目錄\Libraries\STM32F10x_StdPeriph_Driver
inc & src 文件夹【32个H和C】,其中,misc.c特别,它提供了外设对内核中的NVIC中断向量控制器的访问函数。
复制到 FWLIB\StdPeriph_Lib。
2.根目錄\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm
啓動文件*md.s
文件复制到 CORE CMSIS 【md为flash 64k\128k,hd为flash>128k.】
3.根目錄\Libraries\CMSIS\CM3\CoreSupport
内核外设寄存器映射 core_cm3.c & core_cm3.h
文件复制到 CORE CMSIS。
4.根目錄\Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x
片上外设寄存器映射 & system_stm32f10x.c.h是系统函数的实现,其中有始化SystemInit()函数,系统時鍾初72MHz。stm32f10x.h & system_stm32f10x.c & system_stm32f10x.h
文件复制到 USER。CMSIS
5.根目錄\Project\STM32F10x_StdPeriph_Template
main.c[程序的入口] & stm32f10x_conf.h[引用了所有外设的头文件] & stm32f10x_it.h文件& stm32f10x_it.c[专门用来写中断函数]
复制到 USER。
標准庫的移植,思维导图:
標簽:load 時鍾 目錄 圖片 標准庫 標准 sys tar mbed
原文地址:https://www.cnblogs.com/ncepu/p/14954447.html