[原创] [LPC54100]LPCOpen v2.xx Keil uVision4 quickstart guide for all platforms

wo4fisher   2015-3-11 17:10 楼主
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
2015-03-11_080633.jpg
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
2015-03-11_080715.jpg
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
2015-03-11_080752.jpg
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
2015-03-11_080849.jpg
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
2015-03-11_080931.jpg
Thats all there is to it!
------------------------------------------------------------------------------------------------------------------
下面是自己的!
安装dfp包并导入工程demo的样子
2015-03-11_081239.jpg
编译lib和m4_blinky通过的样子,当然首先要激活需要编译的工程
2015-03-10_105831.jpg 2015-03-10_110128.jpg 2015-03-10_110255.jpg 2015-03-10_110343.jpg 2015-03-10_110510.jpg





水不撩不知深浅 人不拼怎知输赢

回复评论 (2)

这工作,每天都过得很郁闷。等闲下来在板子上实战! keil安装版本 IDE-Version: μVision V5.14.0.0 Toolchain: MDK-ARM Standard Version: 5.14.0.0 Toolchain C Compiler: Armcc.exe V5.05 update 1 (build 106) Assembler: Armasm.exe V5.05 update 1 (build 106) Linker/Locator: ArmLink.exe V5.05 update 1 (build 106) Library Manager: ArmAr.exe V5.05 update 1 (build 106) Hex Converter: FromElf.exe V5.05 update 1 (build 106) CPU DLL: SARMCM3.DLL V5.14.0.0 Dialog DLL: DCM.DLL V1.13.1.0 Target DLL: CMSIS_AGDI.dll V1.21.0.0 Dialog DLL: TCM.DLL V1.14.4.0 本帖最后由 wo4fisher 于 2015-3-11 17:15 编辑
点赞  2015-3-11 17:13
引用: wo4fisher 发表于 2015-3-11 17:13
这工作,每天都过得很郁闷。等闲下来在板子上实战!
  keil安装版本 IDE-Version: μVision V5.14.0.0

Toolchain:        MDK-ARM Standard

Version: 5.14.0.0 Toolchain

C Compiler:         Armcc.exe        V5.05 update 1 (build 106)

Assembler:          Armasm.exe        V5.05 update 1 (build 106)

Linker/Locator:     ArmLink.exe        V5.05 update 1 (build 106)

Library Manager:    ArmAr.exe        V5.05 update 1 (build 106)

Hex Converter:      FromElf.exe        V5.05 update 1 (build 106)

CPU DLL:               SARMCM3.DLL          V5.14.0.0

Dialog DLL:         DCM.DLL              V1.13.1.0

Target DLL:             CMSIS_AGDI.dll       V1.21.0.0

Dialog DLL:         TCM.DLL              V1.14.4.0

期待楼主实战展示


点赞  2015-3-18 16:10
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复