社区
单片机/工控
帖子详情
keil MDK中main.c下面的.h文件是怎样生成的
逍尘
2014-08-15 05:09:17
求大神呀STM32
...全文
8673
9
打赏
收藏
keil MDK中main.c下面的.h文件是怎样生成的
求大神呀STM32
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
9 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lbing7
2014-11-06
打赏
举报
回复
有些IDE在你把C文件加入工程之后,能自动关联对应的H文件 有些IDE则需要手动添加以形成包含关系~~~
「已注销」
2014-11-06
打赏
举报
回复
xieshifeng180
2014-11-06
打赏
举报
回复
1
include “xxx.h” 这样就包含进来了,编译的时候通过你设置的搜索路径查找这个文件,编译完就成这样了。
unsv29
2014-11-02
打赏
举报
回复
不是生成的。 库带的。 你自己也可以建立一个 然后加进去
nandou
2014-08-18
打赏
举报
回复
1
在.c文件中用include包含了的头文件,就会出现在该文件的下面。
竹影半墙
2014-08-17
打赏
举报
回复
使用了ST库
zhxianbin
2014-08-16
打赏
举报
回复
1
编译后,keil 自动生成的,方便用户打开包含的头文件
逍尘
2014-08-16
打赏
举报
回复
我是菜鸟!!
dceacho
2014-08-15
打赏
举报
回复
2
你自己在main.c里include的啊,你忘记了? 引用了哪些它会自己加到下面的
Keil
.STM32F4xx_DFP.2.14.0.pack(官方STM32F4xx系列最新固件库for
Keil
MDK
5)
电脑需先安装
Keil
MDK
5。此固件库为
Keil
官方提供,直接双击安装即可,安装成功后在
MDK
5工程的Device
中
可以选择STM32该系列的ARM芯片。 Version: 2.14.0 (2019-07-24)
Keil
.STM32F4xx_DFP.2.14.0.pack Warning: --C99 is no longer enforced via the device description. Enable 'C99 Mode' in 'Options for Target' dialog's 'C/C++' tab. Updated Pack to include subset of STM32Cube_FW_F4 Firmware Package version V1.24.1 using HAL Drivers V1.7.6. Corrected RTE_Device.h UART5 pin configuration. MX_Device_h.ftl: Updated parsing of USART virtual mode. Updated generation of macros: Added handling for '(' and ')' symbols. Corrected launching STM32CubeMX via "play" button for existing projects overwrites with a new STM32CubeMX project file instead of loading existing project. Updated SVD files: Added SPI4RST missing field to STM32F401xE.svd, STM32F411xx.svd and STM32F412xG.svd. Updated Flash Algorithm: Added new target for STM32F4xx_1536.FLM including fix for GetSecNum() in this target. Updated Boards Examples: MCBSTM32F400: Added USB Device RNDIS example. GUI_VNC example GUIThread priority corrected from osPriorityIdle to osPriorityNormal. Updated File System Demo: corrected invalid free space value shown in case of unmounted drives. Graphics examples use Segger emWin version 5.50.0. All examples: Enable Event Recorder in debug targets. Updated LCDConf.c (ready for GUI_USE_ARGD = 1). Terminating app_
main
thread with osThreadExit() to avoid endless loop.
Keil
.STM32F4xx_DFP.2.15.0.pack(STM32F4xx系列固件库for
Keil
MDK
5)
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.
LPC21xx系列用于
keil
MDK
的启动
文件
用于
keil
mdk
开发lpc系列ARM7 的启动
文件
,解压后全部复制到工程
文件
夹
中
,打开
keil
mdk
后添加到工程target
中
。直接打开
main
即可编辑代码。
STM32_IAR工程-
Keil
_
MDK
转换详解
大部分的STM32示例程序都是基于IAR开发环境的,但我认为使用
Keil
MDK
开发环境更加方便,可以利用RV
MDK
强大的外设仿真功能加速STM32的开发。我在以前的Blog文章里介绍过如何在RV
MDK
中
建立STM32工程,以及如何使用RV
MDK
的软件仿真功能,
下面
我将详细说明怎样将已有的IAR工程移植到RV
MDK
。 不管是IAR还是RV
MDK
,编程时使用的都是STM32的固件函数库,唯一不同的是启动
文件
。RV
MDK
在建立STM32工程时会自动创建启动
文件
STM32F10x.s,而IAR使用的启动
文件
是cortexm3_macro.s。此外,两者对
中
断向量表的管理也不一样。 在移植STM32工程时首先要检查IAR工程
中
是否使用了
中
断。方法是要看工程
中
stm32f10x_it.c
文件
内的各
中
断函数是否为空函数,
中
断函数为空说明没有使用
中
断;否则若
中
断函数有修改并且在
main
函数
中
对NVIC进行了设置,则说明使用了
中
断。
Keil
.STM32L0xx_DFP.2.1.0.pack(STM32L0xx系列官方固件库驱动库板级支持包for
Keil
MDK
5)直接运行即可加载
Version: 2.1.0 (2020-07-20)
Keil
.STM32L0xx_DFP.2.1.0.pack STM32CubeMX integration: Added support for using Timebase Source TIMx (FrameworkCubeMX_gpdsc.ftl) Device support: Added capability to launch the Option Byte Loading after a Flash Download. Updated STM32L0xx devices. Updated STM32Cube FW to STM32Cube_FW_L0_V1.11.2 (HAL V1.10.2) Updated SVD files. Updated documentation. CMSIS-Driver: Spi: Corrected compiler warning in driver source code. USB Device: Corrected USBD_EndpointConfigure function (check that maximum packet size requested fits into configured FIFO). Example projects: Terminating app_
main
thread with osThreadExit() to avoid endless loop. USB Device examples: Added Event Recorder in USB Device examples (for STM32L073Z-EVAL board). Updated with user code templates from
MDK
-Middleware v7.11.1.
单片机/工控
27,375
社区成员
28,770
社区内容
发帖
与我相关
我的任务
单片机/工控
硬件/嵌入开发 单片机/工控
复制链接
扫一扫
分享
社区描述
硬件/嵌入开发 单片机/工控
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章