查看: 6496|回复: 4

[已解决] KEA128\KEA06 官方库建立keil报错

[复制链接]

该用户从未签到

19

主题

78

帖子

0

中级会员

Rank: 3Rank: 3

积分
308
最后登录
2017-12-4
发表于 2016-6-26 09:10:29 | 显示全部楼层 |阅读模式
common.h文件怎样配置,一致在这个文件下报错,defined(CPU_KE06)这个是什么意思?提示错误:
  • ..\..\..\..\src\cpu\headers\MKE06Z4.h(118): error:  #5: cannot open source input file "core_cm0plus.h": No such file or directory

[color=rgb(51, 102, 153) !important]复制代码


core_cm0plus.h这个文件是cw环境下才有的,从官方库中把keil分离出来就报错找不到这个文件。  
  • #ifndef _COMMON_H_
  • #define _COMMON_H_
  • #define swap_bytes(ptrWord)   *ptrWord = (*ptrWord >>8) | (*ptrWord<<8)
  • typedef unsigned long   dword;
  • typedef unsigned short  word;
  • /********************************************************************/
  • /*
  • * Debug prints ON (#define) or OFF (#undef)
  • */
  • #define DEBUG
  • #define DEBUG_PRINT
  • /*
  • * Include the generic CPU header file
  • */
  • #include "arm_cm0.h"
  • /*
  • * Include the platform specific header file
  • */
  • #if (defined(FRDM_KE02))
  • #include  "ke02_config.h"
  • #elif (defined(FRDM_KE04))
  • #include  "ke04_config.h"
  • #elif (defined(FRDM_KE06))
  • #include  "ke06_config.h"
  • #else
  •   #error "No valid board defined"
  • #endif
  • /*
  • * Include the cpu specific header file
  • */
  • #if (defined(CPU_KE02))
  • #include "MKE02Z2.h"
  • #elif (defined(CPU_KE04))
  • #include "MKE04Z4.h"
  • #elif (defined(CPU_KE06))
  • #include "MKE06Z4.h"
  • #else
  •   #error "No valid CPU defined"
  • #endif
  • /*
  • * Include any toolchain specfic header files
  • */
  • #if (defined(__MWERKS__))
  •   #include "mwerks.h"
  • #elif (defined(__DCC__))
  •   #include "build/wrs/diab.h"
  • #elif (defined(__ghs__))
  •   #include "build/ghs/ghs.h"
  • #elif (defined(__GNUC__))
  •   #if (defined(IAR))
  •     #include "build/gnu/gnu.h"
  •   #endif
  • #elif (defined(IAR))
  •   #include "iar.h"
  • #elif (defined(KEIL))
  • #else
  • #warning "No toolchain specific header included"
  • #endif
  • /*
  • * Include common utilities
  • */
  • #include "assert.h"
  • #include "io.h"
  • #include "startup.h"
  • #include "stdlib.h"
  • #if (defined(IAR))
  • #include "intrinsics.h"
  • #endif
  • /********************************************************************/
  • #endif /* _COMMON_H_ */


[color=rgb(51, 102, 153) !important]复制代码

[color=rgb(51, 102, 153) !important]


最佳答案

楼主你好! 你是不是想要KEA128的keil工程呢? 除了移植KE系列的KEIL代码之外, 你还可以到官方下载KEA128 keil的例程。 http://www.nxp.com/products/soft ... ab=Design_Tools_Tab 关于你移植的问题,你需要使用对 ...
回复

使用道具 举报

该用户从未签到

19

主题

78

帖子

0

中级会员

Rank: 3Rank: 3

积分
308
最后登录
2017-12-4
 楼主| 发表于 2016-6-26 20:20:47 | 显示全部楼层
回复

使用道具 举报

  • TA的每日心情

    2016-10-20 09:45
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    80

    主题

    1038

    帖子

    5

    版主

    Rank: 7Rank: 7Rank: 7

    积分
    2223
    最后登录
    2023-11-20
    发表于 2016-6-27 09:45:57 | 显示全部楼层
    core_cm0plus.h是CMSIS的文件,ARM通用的 总共3个文件
    回复 支持 反对

    使用道具 举报

  • TA的每日心情

    2017-1-4 08:05
  • 签到天数: 11 天

    连续签到: 1 天

    [LV.3]偶尔看看II

    85

    主题

    1629

    帖子

    1

    版主

    Rank: 7Rank: 7Rank: 7

    积分
    2569

    优秀版主

    最后登录
    2019-3-28
    发表于 2016-6-27 13:24:05 | 显示全部楼层
    送你一份,不谢

    CMSIS.zip

    144.79 KB, 下载次数: 80, 下载积分: 威望 1

    回复 支持 反对

    使用道具 举报

    该用户从未签到

    712

    主题

    6371

    帖子

    0

    超级版主

    Rank: 8Rank: 8

    积分
    24864
    最后登录
    2025-7-18
    发表于 2016-6-27 13:55:49 | 显示全部楼层
    楼主你好!
    你是不是想要KEA128的keil工程呢?
    除了移植KE系列的KEIL代码之外,
    你还可以到官方下载KEA128 keil的例程。
    http://www.nxp.com/products/soft ... ab=Design_Tools_Tab
    关于你移植的问题,你需要使用对应的core_cm0plus.h, 可以直接参考KE的KEIL工程。
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-7-19 06:42 , Processed in 0.099045 second(s), 27 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

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