TWR-K60F120M Freescale Semiconductor, TWR-K60F120M Datasheet

no-image

TWR-K60F120M

Manufacturer Part Number
TWR-K60F120M
Description
Development Boards & Kits - ARM TWR Board for K60
Manufacturer
Freescale Semiconductor
Datasheet

Specifications of TWR-K60F120M

Rohs
yes
Core
ARM Cortex M4
Interface Type
CAN, Ethernet, I2C, SPI, UART, USB
Operating Supply Voltage
3.3 V
Data Bus Width
32
Freescale Semiconductor
Application Note
MQX Board Support Package
Porting Guide on KEIL
by: Guo Jia
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
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
enclosed by red rectangular boxes (as shown in
significant while porting a BSP. The contents of these folders
are described briefly as follows.
© 2012 Freescale Semiconductor, Inc.
shows the folder organization of MQX. The folders
RTOS 3.8.0.
Figure
1) are
1
2
3
4
5
6
7
Introduction................................................................1
Introduction to MQX’s BSP......................................1
Steps to make a new BSP based on an
existing BSP manually..............................................7
Using script tool to accelerate the
process.......................................................................8
4.1
4.2
4.3
4.4
4.5
4.6
4.7
Possible disadvantage of the script tool..................12
5.1
5.2
Conclusion...............................................................15
References...............................................................15
About the script tool.......................................8
Command for making a new BSP. .................8
Command for deleting a BSP........................9
Command for making a new
application project ........................................9
Command for backing up a BSP..................10
Command for installing a BSP....................11
Preparation for using the
command......................................................11
Deletion error (Deleting files or
folders erroneously).....................................12
Replacement error........................................12
Document Number:AN4626
Contents
Rev. 0, 11/2012

Related parts for TWR-K60F120M

TWR-K60F120M Summary of contents

Page 1

... Figure 1 shows the folder organization of MQX. The folders enclosed by red rectangular boxes (as shown in significant while porting a BSP. The contents of these folders are described briefly as follows. © 2012 Freescale Semiconductor, Inc. 1 Introduction................................................................1 2 Introduction to MQX’s BSP......................................1 3 Steps to make a new BSP based on an existing BSP manually ...

Page 2

... There are two files in this folder: • user_config.h: The OS feature can be configured by editing this file. • build_libs.uvmpw at <mqx_install>\config\twrk60n512\uv4: This is a workspace build file which includes all the components of MQX including BSP, PSP, MFS, RTCS. SHELL, and USB. See must be opened to rebuild the components during the development. Figure 2. Workspace in < ...

Page 3

... The <mqx\source\bsp\board_name> contains the BSP driver source code. This is a very significant folder as the code for the new target board often needs to be modified. MQX Board Support Package Porting Guide on KEIL, Rev. 0, 11/2012 Freescale Semiconductor, Inc. Figure 2. It contains the output .lib file and .h file which are used by 3 ...

Page 4

... Figure 4. mqx folder and its subfolders Another mechanism that MQX works execute a .bat file after building. the .bat file to be executed after building. MQX Board Support Package Porting Guide on KEIL, Rev. 0, 11/2012 4 Figure 5 shows how the project specifies Freescale Semiconductor, Inc. ...

Page 5

... These folders have the project file for corresponding functions. See to rebuild these projects for the application projects. MQX Board Support Package Porting Guide on KEIL, Rev. 0, 11/2012 Freescale Semiconductor, Inc. Introduction to MQX’s BSP Figure 6. The user needs ...

Page 6

... Introduction to MQX’s BSP Figure 6. mfs, rtcs, shell and usb folders MQX Board Support Package Porting Guide on KEIL, Rev. 0, 11/2012 6 Freescale Semiconductor, Inc. ...

Page 7

... This section shows how to make a new BSP from a base BSP, manually. Here is a demo for creating a new BSP named nb_test based on the twrk60n512 BSP nb_test means ‘new board’. This procedure is much similar to the steps introduced in AN4287 with CW and IAR. ...

Page 8

... Using script tool to accelerate the process 3. Make new .bat file at <mqx_install>\mqx\build\bat\ based on bsp_ twrk60n512.bat by copying, pasting, and renaming to bsp_nb_test.bat. Then open bsp_nb_test.bat , and replace all twrk60n512 to nb_test in the text. 4. Make new .bat file at <mqx_install>\mqx\build\bat\ based on psp_ twrk60n512.bat by copying, pasting, and renaming to psp_nb_test.bat. Then open psp_nb_test.bat , and replace all twrk60n512 to nb_test in the text < ...

Page 9

... Command for making a new BSP To create a new BSP named nb_test based on the original BSP named twrk60n512, use the following command: bsp_tool_keil create twrk60n512 nb_test Executing this command will result in the new desired BSP. This is quite easier as compared to the steps introduced in Introduction to MQX’s BSP ...

Page 10

... BSP to other workmate on different computers, to restore a BSP that is finished a long time ago. To backup a BSP to the folder D:\mqx_backup, the command is: bsp_tool_keil backup twrk60n512 D:\mqx_backup This command will back up the BSP named twrk60n512 to the folder D:\mqx_backup. Any other folder can also be used as the backup folder. MQX Board Support Package Porting Guide on KEIL, Rev. 0, 11/2012 10 Freescale Semiconductor, Inc ...

Page 11

... To install a BSP from D:\mqx_backup, use the following command: bsp_tool_keil install twrk60n512 D:\mqx_backup This command installs the BSP named twrk60n512 to system from the folder D:\mqx_backup. 4.7 Preparation for using the command 1. Before using the commands, make a folder named bsp_tool_keil at <mqx_install>\, uncompress the software attachment of this application note, and copy the files to < ...

Page 12

... The user may use any other word instead start with as to prevent deletion errors, but before using, make sure it works. For example, to create a BSP named my_board_bsp, rename it to nb_my_board_bsp. MQX Board Support Package Porting Guide on KEIL, Rev. 0, 11/2012 12 Figure 10. Execute the commands NOTE Freescale Semiconductor, Inc. ...

Page 13

... In some rare cases, this replacement may cause errors which need to be corrected manually. According to the test conducted, replacement errors never occur while creating a BSP based on a K60 tower board. For K40 tower board, replacement error occurs due to some BSP files, such as <mqx_install>\mqx\source\io\lcd\lcd_twrk40x256.c, which are named with the name of BSP as a part. ...

Page 14

... Possible disadvantage of the script tool Figure 11. Replacement error in bsp_nb_k40_001.uvproj 2. Then, the following compiler error occurs while compiling the application project. "Error: #5: cannot open source input file "lcd_twrk40x256.h": No such file or directory". This is caused by the replacement error in bsp_nb_k40_001.bat. See with lcd_twrk40x256.h and rebuild BSP. ...

Page 15

... References The following reference documents are available on • AN4287: MQX Board Support Package Porting Guide • FSL_MQX_PORTING_GUIDE : Porting Guide Freescale MQX MQX Board Support Package Porting Guide on KEIL, Rev. 0, 11/2012 Freescale Semiconductor, Inc. freescale.com ™ RTOS Conclusion 15 ...

Page 16

... Freescale Semiconductor makes no warranty, representation, or guarantee regarding the suitability of its products for any particular purpose, nor does Freescale Semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any liability, including without limitation consequential or incidental damages. "Typical" parameters that may be provided in Freescale Semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time ...

Related keywords