Keil5开发STM32F4

Gitee keil工程

软件下载和安装:

链接:https://pan.baidu.com/s/1PWDAU0EhVZ6J8h6xH_uw5g
提取码:b343
 

MDK526.exe

Keil.STM32F4xx_DFP.2.17.1.pack

keygen_2032.exe

JLink_Windows_V640.exe

en.stsw-stm32065_v1-7-1_STM32F4 (DSP和标准外设库)

创建STM32F4工程:

Method One:

使用keil5和std library

(1) Uncompress en.stsw-stm32065_v1-7-1_STM32F4.zip to STM32F4xx_DSP_StdPeriph_Lib_V1.7.1

(2) Make directory 000 and copy files  to file 000

(3) Delete file system_stm32f4xx.c in GPIO_IOToggle

(4)Create a new project (STM32F429VETx)

 Do not select  anything, cause we use std library not Keil.STM32F4xx_DFP.2.17.1.pack

 

(5) Add files and modify main.c and main.h

(6) Configure include path and Defines(USE_STDPERIPH_DRIVER,STM32F429_439xx)

(7)Modify frequency of external crystal oscillator

and configure clock tree

SYSCLK=(HSE_VALUE / PLL_M) * PLL_N / PLL_P

                =(8M / 8) * 336 / 2

                =168M

(8) Download

(9)Debug

The program is blocked in the while loop

We can comment the selected code to solve this problem

(10)Rebuild, download and debug again to get the right result

(12)

Using this method, the program can run on both STM32F407 and STM32F429.

Because of the flexible configuration, we usually use this method to create a STM32 keil5 project based on the Stdandard Peripheral Library.

======================

======================

======================

Method Two(We usually use method one):

使用keil5和pack固件包

 

 

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Version: 2.15.0 (2020-09-28) Keil.STM32F4xx_DFP.2.15.0.pack Download Updated Pack to STM32Cube_FW_F4 Firmware Package version V1.25.1 using HAL Drivers V1.7.9. STM32CubeMX integration (Version 6.0.1): Added support for Timebase Source TIMx (FrameworkCubeMX_gpdsc.ftl). Removed non-existent include path. CMSIS Flash Algorithm: Corrected STM32F42xxx_43xxx_OPT Algorithm. CMSIS SVD: Updated STM32F42*.svd, STM32F43*.svd files. CMSIS-Driver: I2C: Corrected 2 byte reception in master mode. MCI: Replaced empty delay loops with _NOP(). SPI: Corrected PowerControl function (to return error if Initialize was not called, to abort active transfer if power off was requested). Updated GetDataCount function to give accurate count in DMA mode. Corrected Control function (abort in DMA mode, software controlled slave select in slave mode, TI Frame Format selection, ignore bus speed for slave mode). Corrected Uninitialize function (to power off the peripheral if it is powered). Corrected SPI3_SCK pin configuration. Corrected DMA MemDataAlignment configuration. USART: Corrected DMA MemDataAlignment configuration. USBD_HS/USBH_HS: OTG_HS ULPI clock disabled in low power if internal PHY is used to enable proper operation of OTG_HS port in FS mode during CPU sleep. CAN/EMAC/USBD/USBH: Removed macros already provided by cmsis_compiler.h. Updated Boards Examples: Migrated CubeMX projects to V6.0.1 and updated config files. Changed variant selection to "MDK-Plus" where possible. Updated all USB Host/Device examples with user templates from MDK-Middleware v7.11.1. Terminating app_main thread with osThreadExit() to avoid endless loop Updated MS Windows UBS driver files.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值