下载
1 Introduction
This application note is a supplement to AN4287: MQX Board
Support Package Porting Guide, available on freescale.com.
AN4287 introduced how to create new BSP in CW7.2, CW10
and IAR, but didn't cover KEIL embedded development
products. So, this application note introduces how to create a
new BSP in KEIL for porting. In addition, this document also
introduces a script tool to help make this procedure much
easier. All the discussion in this application note is based on
Freescale MQX
™
RTOS 3.8.0.
2 Introduction to MQX’s BSP
BSP masks the hardware details and provides the uniform
interface to the operating system (OS). Before beginning to
port a BSP for MQX, it must be known how MQX is
organized and how it works.
Figure 1 shows the folder organization of MQX. The folders
enclosed by red rectangular boxes (as shown in Figure 1) are
significant while porting a BSP. The contents of these folders
are described briefly as follows.
Freescale Semiconductor
Document Number:AN4626
Application Note
Rev. 0, 11/2012
MQX Board Support Package
Porting Guide on KEIL
by:
Guo Jia
© 2012 Freescale Semiconductor, Inc.
Contents
1 Introduction................................................................1
2 Introduction to MQX’s BSP......................................1
3 Steps to make a new BSP based on an
existing BSP manually..............................................7
4 Using script tool to accelerate the
process.......................................................................8
4.1 About the script tool.......................................8
4.2 Command for making a new BSP..................8
4.3 Command for deleting a BSP........................9
4.4 Command for making a new
application project ........................................9
4.5 Command for backing up a BSP..................10
4.6 Command for installing a BSP....................11
4.7 Preparation for using the
command......................................................11
5 Possible disadvantage of the script tool..................12
5.1 Deletion error (Deleting files or
folders erroneously).....................................12
5.2 Replacement error........................................12
6 Conclusion...............................................................15
7 References...............................................................15