Table of Contents
‘keil下的快速开发指南,大概如上7步(+简介),下载LPC54000_DFP包,下载KEIL开发工具,在keil中导入工程demo,编译lib工程,编译例程,调试。
没有翻译,这样才原汁原味,不会走样!!!
Keil Quickstart introduction
This quickstart guide will guide you through the steps of using the Keil MDK-ARM toolchain with the LPCOpen projects for your desired device and platform.
Download and install the Keil LPCOpen package for your platform
If you haven't downloaded an LPCOpen package yet, go
here to download the package for the device/platform you want to use. You will need to download a package that supports the Keil toolchain with this quickstart guide.
Once you have downloaded your package, you will need to create a work directory somewhere and unzip the package in that directory.
We highly recommend using /nxp/lpcopen as the install area, although you can install it anywhere.
Windows users only: Install LPCOpen close to the root drive on your system as path names can exceed the character limit if installed under too many directories. You'll get project errors if this happens.
Needed Keil tools
To use the Keil projects in LPCopen, you will need the Keil
MDK-ARM toolchainand a ULINK/ME debugger. You can get an evulation version of the Keil MDK-ARM
here. All LPCOpen projects for Keil are preconfigured for the ULINK/ME debugger. You can get more information on that debugger
here.
Keil project startup
To bring up the LPCopen v2.xx projects using Keil uVision4, you will need to navigate to the Keil project area for the board you are using. The project file areas for each chip family are listed in the table below:图080633
Depending on which LPCOpen package you download, you'll have one or more products in the project file area. Go into the directory for the product you want to use.
For example, if you want to use the LPCXpresso LPC812 board with Keil uVision4 and have download the LCP812 Keil package, enter the 'applications\lpc8xx\keil_uvision_projects\nxp_lpcxpresso_812' directory to enter the LPCXpresso LPC812 Keil project area. After entering the project area, you'll see a collection of multi-project files similar to the list below. (This list may vary per platform)图080715
Simply double click the
_all_examples.uvmpw project file to bring up Keil with the LPCopen projects. In the image above, the file to clock would be 'nxp_lpcxpresso_812_all_examples.uvmpw'.After Keil finishes loading, you'll have a workspace with all projects for that platform ready for build and deployment.图080752
Building the libraries
Start by selecting the lib_lpc_chip_ project and then building it. To select the project, right click on the project in the list and select 'Set as active project'. To build the project after it is selected, select 'Build' from the Project menu. This will build the chip library needed by all other projects.
After the chip library is built, select the lib_lpc_boards_
project and then build it. This will build the board library needed by other projects.Note that some projects may require additional libraries - for example, LPCUSBLUB also requires the USB librarires to be build prior to using the USB examples. These libraries will appear in the projects lists for platforms that suppor them, so build them as needed. If you forget to build the necessary library, you will get a linker error in your application with an error indicating a library is missing.
The chip and board library are used by most other projects as libraries and normally only need to be built once. If you changes chip or board code, you must manually select and rebuild these libraries prior to building your application.
Building an example
To build an example, select the example as the active project and then select 'Build' from the project menu. The project will build and is ready for debug.图080849
Starting a debug session
Power up your board that you are using the LPCOpen and Keil uVision4. Connect the ULINK/ME debugger to the debug (SWI/JTAG) connector on the board. Connect a USB cable between the ULINK/ME and the host machine running Keil uVision4. Install drivers if needed for the ULINK/ME debugger.
From the Debug menu, select 'Start/Stop Debug Session' to program the image to the board and start it. For most projects, the debugger will automatically either stop at main() or at the startup code. Select commands from the Debug menu to run the program, set breakpoints, stop debugging, etc.图080931
Thats all there is to it!
------------------------------------------------------------------------------------------------------------------
下面是自己的!
安装dfp包并导入工程demo的样子
编译lib和m4_blinky通过的样子,当然首先要激活需要编译的工程