nAN-15_v1 使用KEIL建立应用.1

All rights reserved. Keil is a trademark of ARM.
Reproduction in whole or in part is prohibited without the prior written permission of the copyright holder.
2011-06-29
Creating Applications with
the Keil TM  C51 C Compiler
nAN-15
Application Note v1.1
Key words
Development using nRFgo SDK •
Setup of Keil compiler •
Getting started with your first application •
Debugging your application with Keil compiler •Developing with nRF devices
Contents
1Introduction (3)
2Theory of operation (4)
2.1Prerequisites to the tutorial (4)
2.2Organizing the nRFgo SDK (4)
3Developing with nRFgo SDK (6)
3.1Step 1: Set up your first Keil project (6)
oadm
3.2Step 2: Your first application (16)
3.3Step 3: Including files (21)
3.4Step 4: Debug your project (28)
4Conclusions (34)
Appendix A - References (35)
点云扫描Appendix B - Troubleshooting (36)
Revision v1.1Page 2 of 37
Revision v1.1
Page 3 of 37Creating Applications with the Keil C51 C Compiler
1      Introduction
This application note will help you start developing with an nRF device using the nRFgo development platform. This application note contains a step-by-step guide on how to set up your first project in a Keil compiler and explains how to debug using nRFprobe.
The target device for this tutorial is the nRF24LE1, which is a single chip solution for wireless applications. The nRF24LE1 features an ultra low power nRF24L01+ 2.4 GHz transceiver core with an 8051 flash microcontroller, ADC and rich set of digital interfaces.
This tutorial can also be used as reference when developing with other nRF devices with an 8051 mi
crocontroller. In such cases you will need to switch to different nRF devices as shown in Figure 4. on page 7. The setup of the compiler, programming the device and debugger are all carried out in the same way as for the nRF24LE1.
2      Theory of operation
The nRFgo Software Development Kit (SDK) with the Keil C51 C compiler provides a flexible and simple way to develop using an nRF device. By following this guide you will acquire basic knowledge about the Keil compiler and nRFgo SDK so you can create, debug and program your first application.
2.1        Prerequisites to the tutorial
We recommend that you consult the documentation for the nRFgo SDK, nRFprobe and user documentation for the nRFgo Starter Kit  while you carry out related development work.
Necessary software and hardware for this application note are listed below in the order you should install them:
Software
•Keil C51 (Version 9.00 or newer)
•nRFgo Studio (Version 1.4 or newer)
•nRFgo SDK (Version 2.2 or newer)
•nRFprobe (Version 1.2.0.5585 or newer)
Hardware
•nRFgo Starter Kit (nRF6700)
•nRFgo Development Kit for nRF24LE1 (nRF24LE1-F16Qxx-DK)
The following steps show how you install the software:
1.All nRFgo software is included in the nRFgo kits, but you must download the Keil compiler
轮毂材料separately from For the purposes of this application note the evaluation version of the Keil compiler is sufficient.
2.Make sure to download and install the latest software before you follow the instructions in this
application note.
3.After installing all the software listed above, you must connect the nRFgo Motherboards to the
computer and wait for the driver to install.
4.Thereafter, start up nRFgo Studio and update the firmware if prompted. Exit the nRFgo Studio
application before you continue.
5.You can use nRFgo Studio to program nRFgo modules or your own prototypes through the ISP
header. For development, use the Keil compiler along with the nRFprobe debugger.
2.2        Organizing the nRFgo SDK
自动化机械手臂The nRFgo SDK is built up in a tree structure. Here is a short description of the most important folders in the tree structure:
不良图片过滤\Docs
This is the documentation for the SDK. It is mandatory reading in order to understand how a project is built up. It contains a description of the functionality for the software modules included in the SDK and of how they interact.
\Precompiled files
This folder includes the precompiled HEX files for the example projects. If you are using the evaluation version of the Keil compiler you will not be able to compile all the projects due to a code size limit, but you can still run the examples by programming the HEX files with nRFgo Studio.
Revision v1.1Page 4 of 37
Revision v1.1
Page 5 of 37Creating Applications with the Keil C51 C Compiler
\Source code\gazell
Gazell is a link and pairing library for wireless applications.
胸章制作\Source code\hal
The Hardware Abstraction Layer (HAL) contains general interface functions to quickly start developing with the hardware modules embedded in an nRF chip. You will use some or all of these files for any project you develop. The path to these files needs to be included in the project.
\Source code\lib
The libraries interface with the HAL to provide more specific functionality. An example of this is the RF test library that can be used to set up different RF test modes.
\Source code\projects
The project folders contain the example projects included in the SDK. This is where you normally will put your own project.
Figure 1. Folder structure for nRFgo SDK

本文发布于:2024-09-20 16:48:14,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/104373.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:轮毂   机械   过滤   胸章   材料
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议