STM32F411x-CMSIS-Pack.zip
大小:61.2KB
价格:15积分
下载量:0
评分:
5.0
上传者:weixin_45779520
更新日期:2024-07-22

使用CMSIS-Pack快速创建STM32F411x裸机工程

资源文件列表(大概)

文件名
大小
STM32F411x-CMSIS-Pack/AD_KEIL_KILL.bat
1.08KB
STM32F411x-CMSIS-Pack/DebugConfig/
-
STM32F411x-CMSIS-Pack/DebugConfig/Target_1_STM32F411CEUx.dbgconf
2.19KB
STM32F411x-CMSIS-Pack/Listings/
-
STM32F411x-CMSIS-Pack/main.c
6.94KB
STM32F411x-CMSIS-Pack/main.h
1.28KB
STM32F411x-CMSIS-Pack/Objects/
-
STM32F411x-CMSIS-Pack/Objects/STM32F411X.sct
494B
STM32F411x-CMSIS-Pack/RTE/
-
STM32F411x-CMSIS-Pack/RTE/_Target_1/
-
STM32F411x-CMSIS-Pack/RTE/_Target_1/Pre_Include_Global.h
316B
STM32F411x-CMSIS-Pack/RTE/_Target_1/RTE_Components.h
1.69KB
STM32F411x-CMSIS-Pack/RTE/Device/
-
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/
-
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/RTE_Device.h
95.91KB
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/RTE_Device.h.base@2.4.5
95.91KB
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/startup_stm32f411xe.s
24.53KB
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/startup_stm32f411xe.s.base@2.6.8
24.53KB
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/stm32f4xx_hal_conf.h
21.54KB
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/stm32f4xx_hal_conf.h.base@1.8.1
21.54KB
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/system_stm32f4xx.c
26.94KB
STM32F411x-CMSIS-Pack/RTE/Device/STM32F411CEUx/system_stm32f4xx.c.base@2.6.8
26.94KB
STM32F411x-CMSIS-Pack/STM32F411X.uvoptx
6.33KB
STM32F411x-CMSIS-Pack/STM32F411X.uvprojx
20.98KB
STM32F411x-CMSIS-Pack/stm32f4xx_it.c
4.16KB
STM32F411x-CMSIS-Pack/stm32f4xx_it.h
1.56KB

资源内容介绍

使用CMSIS-Pack快速创建STM32F411x裸机工程1、新建Keil工程2、选择工程文件夹命名工程文件3、选择芯片系列4、 选择要打开的外设(CMSIS-Driver)及添加芯片启动文件(Device)5、 添加标准main文件及系统滴答定时器中断IRQ文件6、 修改编译方式7、 配置添加的外设GPIO8、Bulid编译后无报错9、 修改外部晶振与系统频率(根据外部晶振及需要的系统频率修改)
/** ****************************************************************************** * @file system_stm32f4xx.c * @author MCD Application Team * @brief CMSIS Cortex-M4 Device Peripheral Access Layer System Source File. * * This file provides two functions and one global variable to be called from * user application: * - SystemInit(): This function is called at startup just after reset and * before branch to main program. This call is made inside * the "startup_stm32f4xx.s" file. * * - SystemCoreClock variable: Contains the core clock (HCLK), it can be used * by the user application to setup the SysTick * timer or configure other parameters. * * - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must * be called whenever the core clock is changed * during program execution. * * ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//** @addtogroup CMSIS * @{ *//** @addtogroup stm32f4xx_system * @{ */ /** @addtogroup STM32F4xx_System_Private_Includes * @{ */#include "stm32f4xx.h"#if !defined (HSE_VALUE) #define HSE_VALUE ((uint32_t)25000000) #endif #if !defined (HSI_VALUE) #define HSI_VALUE ((uint32_t)16000000) #endif /** * @} *//** @addtogroup STM32F4xx_System_Private_TypesDefinitions * @{ *//** * @} *//** @addtogroup STM32F4xx_System_Private_Defines * @{ *//************************* Miscellaneous Configuration ************************/#if defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)\ || defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F469xx) || defined(STM32F479xx) || defined(STM32F412Zx) || defined(STM32F412Vx)#endif #if defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)\ || defined(STM32F446xx) || defined(STM32F469xx) || defined(STM32F479xx)#endif #if defined(USER_VECT_TAB_ADDRESS)#if defined(VECT_TAB_SRAM)#define VECT_TAB_BASE_ADDRESS SRAM_BASE #define VECT_TAB_OFFSET 0x00000000U #else#define VECT_TAB_BASE_ADDRESS FLASH_BASE #define VECT_TAB_OFFSET 0x00000000U #endif #endif /******************************************************************************//** * @} *//** @addtogroup STM32F4xx_System_Private_Macros * @{ *//** * @} *//** @addtogroup STM32F4xx_System_Private_Variables * @{ */ uint32_t SystemCoreClock = 16000000;const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};/** * @} *//** @addtogroup STM32F4xx_System_Private_FunctionPrototypes * @{ */#if defined (DATA_IN_ExtSRAM) || defined (DATA_IN_ExtSDRAM) static void SystemInit_ExtMemCtl(void); #endif /** * @} *//** @addtogroup STM32F4xx_System_Private_Functions * @{ *//** * @brief Setup the microcontroller system * Initialize the FPU setting, vector table location and External memory * configuration. * @param None * @retval None */void SystemInit(void){ #if (__FPU_PRESENT == 1) && (__FPU_USED == 1) SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); #endif#if defined (DATA_IN_ExtSRAM) || defined (DATA_IN_ExtSDRAM) SystemInit_ExtMemCtl(); #endif #if defined(USER_VECT_TAB_ADDRESS) SCB->VTOR = VECT_TAB_BASE_ADDRESS | VECT_TAB_OFFSET; #endif }/** * @brief Update SystemCoreClock variable according to Clock Register Values. * The SystemCoreClock variable contains the core clock (HCLK), it can * be used by the user application to setup the SysTick timer or configure * other parameters. * * @note Each time the core clock (HCLK) changes, this function must be called * to update SystemCoreClock variable value. Otherwise, any configuration * based on this variable will be incorrect. * * @note - The system frequency computed by this function is not the real * frequency in the chip. It is calculated based on the predefined * constant and the selected clock source: * * - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*) * * - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**) * * - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**) * or HSI_VALUE(*) multiplied/divided by the PLL factors. * * (*) HSI_VALUE is a constant de

用户评论 (0)

发表评论

captcha