搜索
bottom↓
回复: 6

头文件版本怎么这么乱啊,MDK和IAR完全不同版本(已解决)

[复制链接]

出0入0汤圆

发表于 2014-7-19 09:09:55 | 显示全部楼层 |阅读模式
本帖最后由 FSL_TICS_Robin 于 2014-8-8 16:21 编辑

以下分别的KEIL MDK 5.11A 和 IAR 7.20.2.7431的 MK22D5.h文件
路径:
MDK:C:\Keil_v5\ARM\Pack\Keil\Kinetis_K20_DFP\1.1.0\Device\Include
IAR:C:\Program Files\IAR Systems\Embedded Workbench 7.0\arm\inc\Freescale

MDK:

** ###################################################################
**     Compilers:           ARM Compiler
**                          Freescale C/C++ for Embedded ARM
**                          GNU C Compiler
**                          IAR ANSI C/C++ Compiler for ARM
**
**     Reference manual:    K22RM, Rev.4, Feb 2013
**     Version:             rev. 1.4, 2013-01-24
**
**     Abstract:
**         CMSIS Peripheral Access Layer for MK22D5
**
**     Copyright: 1997 - 2013 Freescale, Inc. All Rights Reserved.
**
**     http:                 www.freescale.com
**     mail:                 support@freescale.com
**
**     Revisions:
**     - rev. 1.0 (2012-06-06)
**         Initial public version.
**     - rev. 1.1 (2012-07-31)
**         Fixed address of SIM_SDID register.
**     - rev. 1.2 (2012-08-29)
**         Update to Rev. 3 of reference manual.
**         Updated UART0, RTC and CRC register definition.
**     - rev. 1.3 (2012-10-11)
**         PDB module update - PDB0_PO1DLY register added.
**     - rev. 1.4 (2013-01-24)
**         Update to Rev. 4 of reference manual.
**
** ###################################################################

IAR:

** ###################################################################
**     Compilers:           ARM Compiler
**                          Freescale C/C++ for Embedded ARM
**                          GNU C Compiler
**                          IAR ANSI C/C++ Compiler for ARM
**
**     Reference manual:    K22RM, Rev.4, Feb 2013
**     Version:             rev. 1.6, 2013-06-24
**
**     Abstract:
**         This header file implements peripheral memory map for MK22D5
**         processor.
**
**     Copyright: 1997 - 2013 Freescale, Inc. All Rights Reserved.
**
**     http:                 www.freescale.com
**     mail:                 support@freescale.com
**
**     Revisions:
**     - rev. 1.0 (2012-06-06)
**         Initial public version.
**     - rev. 1.1 (2012-07-31)
**         Fixed address of SIM_SDID register.
**     - rev. 1.2 (2012-08-29)
**         Update to Rev. 3 of reference manual.
**         Updated UART0, RTC and CRC register definition.
**     - rev. 1.3 (2012-10-11)
**         PDB module update - PDB0_PO1DLY register added.
**     - rev. 1.4 (2013-01-24)
**         Update to Rev. 4 of reference manual.
**         ETB registers removed.
**     - rev. 1.5 (2013-04-05)
**         Changed start of doxygen comment.
**     - rev. 1.6 (2013-06-24)
**         NV_FOPT register - NMI_DIS bit added.
**
** ###################################################################

MDK:

/* CRC - Peripheral instance base addresses */
/** Peripheral CRC base address */
#define CRC_BASE                                 (0x40032000u)
/** Peripheral CRC base pointer */
#define CRC0                                     ((CRC_Type *)CRC_BASE)
/** Array initializer of CRC peripheral base pointers */
#define CRC_BASES                                { CRC0 }

IAR:

/* CRC - Peripheral instance base addresses */
/** Peripheral CRC base pointer */
#define CRC_BASE_PTR                             ((CRC_MemMapPtr)0x40032000u)
/** Array initializer of CRC peripheral base pointers */
#define CRC_BASE_PTRS                            { CRC_BASE_PTR }

无语了~~~~~~~~~~~~~~~~~~~~
难道就是没有统一的库造成的?

阿莫论坛20周年了!感谢大家的支持与爱护!!

一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。

出0入0汤圆

 楼主| 发表于 2014-7-19 09:19:11 | 显示全部楼层
感觉库的风格都在摇摆,1.6和1.4版本的风格不一样,再看SDK里面K64F的风格,无语了,又改为类似1.4的了,版本号2.3
** ###################################################################
**     Processor:           MK64FN1M0VMD12
**     Compilers:           ARM Compiler
**                          Freescale C/C++ for Embedded ARM
**                          GNU C Compiler
**                          GNU C Compiler - CodeSourcery Sourcery G++
**                          IAR ANSI C/C++ Compiler for ARM
**
**     Reference manual:    K64P144M120SF5RM, Rev.2, January 2014
**     Version:             rev. 2.3, 2014-01-24
**
**     Abstract:
**         CMSIS Peripheral Access Layer for MK64F12
**
**     Copyright: 1997 - 2014 Freescale, Inc. All Rights Reserved.
**
**     http:                 www.freescale.com
**     mail:                 support@freescale.com
**
**     Revisions:
**     - rev. 1.0 (2013-08-12)
**         Initial version.
**     - rev. 2.0 (2013-10-29)
**         Register accessor macros added to the memory map.
**         Symbols for Processor Expert memory map compatibility added to the memory map.
**         Startup file for gcc has been updated according to CMSIS 3.2.
**         System initialization updated.
**         MCG - registers updated.
**         PORTA, PORTB, PORTC, PORTE - registers for digital filter removed.
**     - rev. 2.1 (2013-10-29)
**         Definition of BITBAND macros updated to support peripherals with 32-bit acces disabled.
**     - rev. 2.2 (2013-12-09)
**         DMA - EARS register removed.
**         AIPS0, AIPS1 - MPRA register updated.
**     - rev. 2.3 (2014-01-24)
**         Update according to reference manual rev. 2
**         ENET, MCG, MCM, SIM, USB - registers updated
**
** ###################################################################

/* CRC - Peripheral instance base addresses */
/** Peripheral CRC base address */
#define CRC_BASE                                 (0x40032000u)
/** Peripheral CRC base pointer */
#define CRC0                                     ((CRC_Type *)CRC_BASE)
#define CRC_BASE_PTR                             (CRC0)
/** Array initializer of CRC peripheral base pointers */
#define CRC_BASES                                { CRC0 }

到底要闹哪样?是不是同一个团队在编写?????????????

出0入0汤圆

 楼主| 发表于 2014-7-19 20:44:56 | 显示全部楼层
再贴上MDK 5.11a 下MK64F12.H下的
** ###################################################################
**     Processor:           MK64FN1M0VMD12
**     Compilers:           ARM Compiler
**                          Freescale C/C++ for Embedded ARM
**                          GNU C Compiler
**                          IAR ANSI C/C++ Compiler for ARM
**
**     Reference manual:    K64P144M120SF5RM, Rev.1, July 2013
**     Version:             rev. 1.0, 2013-08-12
**
**     Abstract:
**         CMSIS Peripheral Access Layer for MK64F12
**
**     Copyright: 1997 - 2013 Freescale, Inc. All Rights Reserved.
**
**     http:                 www.freescale.com
**     mail:                 support@freescale.com
**
**     Revisions:
**     - rev. 1.0 (2013-08-12)
**         Initial version.
**
** ###################################################################

/* CRC - Peripheral instance base addresses */
/** Peripheral CRC base address */
#define CRC_BASE                                 (0x40032000u)
/** Peripheral CRC base pointer */
#define CRC0                                     ((CRC_Type *)CRC_BASE)
/** Array initializer of CRC peripheral base pointers */
#define CRC_BASES                                { CRC0 }

出130入129汤圆

发表于 2014-7-19 20:46:09 | 显示全部楼层
如此混乱,还是用STM32舒服

出0入0汤圆

发表于 2014-7-19 23:23:47 | 显示全部楼层
嗯 这就是我吐槽他们的原因

出0入0汤圆

 楼主| 发表于 2014-7-20 09:21:48 | 显示全部楼层
夏季出SDK。。。。。。。。。。。。。。。现在都7月中了压到9月底?黄花菜都凉了。。。。。。。。。

出0入0汤圆

发表于 2014-7-21 09:30:18 | 显示全部楼层
cn_x 发表于 2014-7-20 09:21
夏季出SDK。。。。。。。。。。。。。。。现在都7月中了压到9月底?黄花菜都凉了。。。。。。。。。 ...

cn_x 你好
如果你要用飞思卡尔Kinetis K系列第二代K2的芯片,那么建议直接参考SDK库。
推荐观看【FTF技术培训课程】基于SDK固件库开发针对Kinetis MCU的应用

预计在8月初会推出Kinetis软件开发套件(SDK)KINETIS_SDK: 用于Kinetis MCU的软件开发套件
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-5-26 12:30

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表