NORDIC nRF24LE1 学习笔记 Day01 安装环境与创建第一个工程

首先 First

准备软件安装包 perpare the softwaer installation pachage

①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)

准备硬件 perpare the Hardware 

①nRFgo Starter Kit(nRF6700)

②nRFgo Development Kit for nRF24LE1(nRF24LE1-F16Qxx-DK)

上面的列表来自官方文档,实际上我使用的东西是来自淘宝的板子和来自淘宝的下载器,不过这个无所谓,只要片子一样都大同小异的。下载软件使用的板子配的下载软件,没有Debug功能,这一点比较麻烦。先用着,回来再换个。


Step 1:先安装Keil的C 51编译器

Step 2:下载和安装板子及下载器驱动

Step 3:连接并调试下载器,测试板子与下载器



组织文档树

/Docs

/Precompiled files

/Source code/gazell

/Source code/hal

/Source code/lib

/Source code/projects




建立并配置工程

step 1:先创建一个工程文件夹,并给工程起个名字,如my_first_project


step 2:选择New uVision Project,创建一个keil工程,并给keil工程命名


step 3:选择正确的设备


step 4:不!加!入! 8051的启动代码(startup code)进入工程文件夹


step 5:主界面 选择 进入Options for Target

step 6:检查确保输出HEX文件 在Options里选择Output选项卡


step 7:添加 头文件 地址 ,选择C51选项卡在Include Paths里添加地址







文件夹设置


确定地址都添加进去了


(注)图片来自官方文档,需要使用reg24le1.h时,实际使用中还需要加入..\..\..\compiler\C51 

step 9:关闭15.16警告


step 10 : Debug 






你可能感兴趣的:(学习笔记)