STM32F429使用标准库创建项目

构建标准库的模板项目

准备lib库

stm32f4_dsp_stdperiph_lib.zip

文件目录结构

tree
.
+--- CORE
|   +--- core_cm4.h
|   +--- core_cm4_simd.h
|   +--- core_cmFunc.h
|   +--- core_cmInstr.h
|   +--- startup_stm32f429_439xx.s
+--- FWLIB
|   +--- inc
|   |   +--- misc.h
|   |   +--- stm32f4xx_adc.h
|   |   +--- stm32f4xx_can.h
|   |   +--- stm32f4xx_crc.h
|   |   +--- stm32f4xx_cryp.h
|   |   +--- stm32f4xx_dac.h
|   |   +--- stm32f4xx_dbgmcu.h
|   |   +--- stm32f4xx_dcmi.h
|   |   +--- stm32f4xx_dma.h
|   |   +--- stm32f4xx_dma2d.h
|   |   +--- stm32f4xx_exti.h
|   |   +--- stm32f4xx_flash.h
|   |   +--- stm32f4xx_flash_ramfunc.h
|   |   +--- stm32f4xx_fmc.h
|   |   +--- stm32f4xx_fsmc.h
|   |   +--- stm32f4xx_gpio.h
|   |   +--- stm32f4xx_hash.h
|   |   +--- stm32f4xx_i2c.h
|   |   +--- stm32f4xx_iwdg.h
|   |   +--- stm32f4xx_ltdc.h
|   |   +--- stm32f4xx_pwr.h
|   |   +--- stm32f4xx_rcc.h
|   |   +--- stm32f4xx_rng.h
|   |   +--- stm32f4xx_rtc.h
|   |   +--- stm32f4xx_sai.h
|   |   +--- stm32f4xx_sdio.h
|   |   +--- stm32f4xx_spi.h
|   |   +--- stm32f4xx_syscfg.h
|   |   +--- stm32f4xx_tim.h
|   |   +--- stm32f4xx_usart.h
|   |   +--- stm32f4xx_wwdg.h
|   +--- src
|   |   +--- misc.c
|   |   +--- stm32f4xx_adc.c
|   |   +--- stm32f4xx_can.c
|   |   +--- stm32f4xx_crc.c
|   |   +--- stm32f4xx_cryp.c
|   |   +--- stm32f4xx_cryp_aes.c
|   |   +--- stm32f4xx_cryp_des.c
|   |   +--- stm32f4xx_cryp_tdes.c
|   |   +--- stm32f4xx_dac.c
|   |   +--- stm32f4xx_dbgmcu.c
|   |   +--- stm32f4xx_dcmi.c
|   |   +--- stm32f4xx_dma.c
|   |   +--- stm32f4xx_dma2d.c
|   |   +--- stm32f4xx_exti.c
|   |   +--- stm32f4xx_flash.c
|   |   +--- stm32f4xx_flash_ramfunc.c
|   |   +--- stm32f4xx_fmc.c
|   |   +--- stm32f4xx_fsmc.c
|   |   +--- stm32f4xx_gpio.c
|   |   +--- stm32f4xx_hash.c
|   |   +--- stm32f4xx_hash_md5.c
|   |   +--- stm32f4xx_hash_sha1.c
|   |   +--- stm32f4xx_i2c.c
|   |   +--- stm32f4xx_iwdg.c
|   |   +--- stm32f4xx_ltdc.c
|   |   +--- stm32f4xx_pwr.c
|   |   +--- stm32f4xx_rcc.c
|   |   +--- stm32f4xx_rng.c
|   |   +--- stm32f4xx_rtc.c
|   |   +--- stm32f4xx_sai.c
|   |   +--- stm32f4xx_sdio.c
|   |   +--- stm32f4xx_spi.c
|   |   +--- stm32f4xx_syscfg.c
|   |   +--- stm32f4xx_tim.c
|   |   +--- stm32f4xx_usart.c
|   |   +--- stm32f4xx_wwdg.c
+--- keilkilll.bat
+--- OBJ
|   +--- Template.hex
+--- readme.txt
+--- SYSTEM
+--- USER
|   +--- DebugConfig
|   |   +--- Target_1_STM32F429IGTx.dbgconf
|   |   +--- Template_STM32F429IGTx.dbgconf
|   +--- Listings
|   +--- main.c
|   +--- Objects
|   +--- stm32f4xx.h
|   +--- stm32f4xx_conf.h
|   +--- stm32f4xx_it.c
|   +--- stm32f4xx_it.h
|   +--- system_stm32f4xx.c
|   +--- system_stm32f4xx.h
|   +--- Template.uvoptx
|   +--- Template.uvprojx

keil设置

Option for target >> Device >> STM32F429IGTx
Option for target >> Output>>Select Folder for Objects… >> Creatge HEX file
Option for target >> C/C++ >> Define >> STM32F429_439xx,USE_STDPERIPH_DRIVER
Option for target >> Include Paths >> …\CORE;…\FWLIB\inc;…\USER

template

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 6
    评论
STM32F429标准例程是专为STM32F429系列微控制器设计的一系列示例程序。这些例程提供了基本的应用程序框架和代码,帮助开发人员快速入门并理解如何使用STM32F429的功能和特性。 这些标准例程涵盖了各种不同的功能,包括引脚控制、定时器、中断处理、串口通信、SPI和I2C总线通信、ADC和DAC输入输出等。通过学习和使用这些例程,开发人员可以了解系统的工作原理,掌握STM32F429的各种功能模块的使用方法。 使用这些例程的步骤通常包括以下几个步骤: 首先,开发人员需要创建一个新的项目,并选择适用于STM32F429的标准。 其次,可以通过打开例程文件夹并选择感兴趣的例程来查找和复制所需代码。例如,要使用UART通信,开发人员可以复制相应的UART例程代码。 然后,将复制的代码粘贴到新项目的相应源文件中,并根据需要进行适当的修改和配置。例如,配置引脚、设置定时器参数等。 接下来,编译和下载代码到STM32F429微控制器。使用开发板或调试器进行调试和测试。 最后,在测试过程中发现问题时,可以参考代码和手册进行排查和解决。此外,还可以在STM32官方论坛和社区中搜索和讨论相关问题。 总之,STM32F429标准例程是一个很好的学习和使用STM32F429微控制器的资源。通过掌握这些例程,开发人员可以更轻松地开发出各种应用程序,并充分发挥STM32F429的功能和性能。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

习惯就好zz

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值