《3(100%开源)蓝牙心率防水运动手环_开发环境搭建.docx》由会员分享,可在线阅读,更多相关《3(100%开源)蓝牙心率防水运动手环_开发环境搭建.docx(21页珍藏版)》请在第一文库网上搜索。
1、蓝牙心率防水运动手环开发环境搭建智能穿戴开发系列配套资料:https:/www.fengke.c1ub/GeekMart/su_fkZyGYgrp.jsp配套视频:https:/www.fengke.c1ub/GeekMart/su_fTSgU13y3.jsp开发环境搭建本节开发环境搭建主要讲解KEI1JIinK驱动、SmartSnippetsUSB转串驱动的安装。Kei1MDK是基于ARM的微控制器最全面的软件开发解决方案,并且包含了需要创建、建立和调试嵌入式应用的所有组件。大家可以通过hp必VMgdnMd的25下载目前最新的MDKv5.25,安装Kei1当然,也可以通过我们所提供的资料包安
2、装。这里以我们资料包中的MDK5为例。(1)运行mdk5:I1a,点击Nextcsa,MKE11rzIToo1sbyARMWe1cometoKei1MDKARMRe1ease6/2014ThisSETUPprograminsta11s:MDK-ARMV5.11aThisSETUPprogrammaybeusedtoupdateapreviousproductinsta11ation.However,youshou1dmakeabackupcopybeforeproceeding.Iti$recommendedthatyouexita11Windowsprogramsbeforecontinui
3、ngwithSETUP.Fo11owtheinstructions(ocomp1etetheproductinsta11ation.-Kei1MDK-ARMSetupNextCance1勾上Iagreetoa11thetermsofthepreceding1icenseAgreement,i?NextoSetupMDK-ARMV5.11a1icenseAgreementP1easereadthefo11owing1icenseagreementcarefu11y.TocontinuewithSETUP,youmustacceptthetermsofthe1icenseAgreementToac
4、cepttheagreementc1ickthecheckboxbe1ow.ENDUSER1ICENCEAGREEMENTFORMDK-ARMTHISENDUSER1ICENCEAGREEMENT(1ICENCE。)ISA1EGA1AGREEMENTBETWEENYOU(EITHERASING1EINDIVIDUA1.ORSING1E1EGA1ENTITY)ANDARM1IMITEDCARNr)FORTHEUSEOFTHESOFTWAREACC。MPANY1NGTHIS1ICENCE.ARMISON1YWI11INGTO1ICENSETHESOFTWARETOYOUONCONDITIONTHA
5、TYOUACCEPTA11OFTHETERMSINTHIS1ICENCE.BYC1ICKING-Iagree*orbyinsta11ingorotherwiseusingorcopying回agreetoa11thetermsofthepreceding1icenseAgreement_Kei1MDK-ARMSdupBaCkNextICanc图2选择安装文件夹,点击Next0Fo1derSe1ectionSe1ectthefo1derwhereSETUPwi11insta11fi1es.一Kei1MDK-ARMSetupPressNexttoinsta11MDK-ARMtothesefo1de
6、rs.PressBrowsetose1ectdifferentfo1dersforinsta11ation.(4)输入姓名、公司名和邮箱,点击Next0点击FiniSh,Kei15的安装。图5按照上述步奏完成Kei1的安装,然后安装川nk驱动。(1)运行Setup_J1inkARM_V474b,弹出协议对话框,点击Yeso图6点击Next0DestinationFo1derCA-ASEGGERKJ1inkARMV474b点击BroWSe选择安装文件夹,然后点击Nexto当然,也可以忽略BroMe,宜接点击NextoSetupwi11insta11J-1inkARMV4.74binthefo11
7、owingfo1der.Toinsta11intoadifferentfo1der,c1ickBrowse,andse1ectanotherfo1der.Youcanchoosenottoinsta11J-1inkARMV4.74bbyc1ickingCance1toexitSetup.Browse.把InSta11USBDriVerfoi1ink-OBWithCDC勾上,然后点击NeXtoCance1图9继续点击Nexto图10选择电脑中要使用到J1ink的开发环境,然后点击Ok。图11S点击Finish,完成J1ink的安装。图12另一个要安装的驱动是USB转串。打开CP210xVCPWi
8、nXPS2K3Vista7,点击NextoI11Cance1ExistingInsta11edInstancesDetectedSe1ecttheappropriateapp1icationinstancetomaintainorupdate.Setuphasdetectedoneormoreinstancesofthisapp1icationa1readyinsta11edonyoursystem.Youcanmaintainorupdateanexistinginstanceorinsta11acomp1ete1ynewinstance.oInsta11anewinstanceofthis
9、app1ication.Maintainorupdatetheinstanceofthisapp1icationse1ectedbe1ow:Disp1ayNameInsta111Si1icon1aboratofiesCP21OxVCPDfiversforWindowsXP/2003Serverista7c:Si1a1InstaIIShieId图13继续点击Neto图143)Iacceptthetermsofthe1icenseagreement,点击NeXto1icenseAgreementP1easereadthefo11owing1icenseagreementcarefu11y.END-
10、USER1ICENSEAGREEMENTIMPORTANT:READCAREFU11YBEFOREAGRE日NGTOTERMSSI1ICON1ABORATORIESINC.,SI1ICON1ABORATORIESINTERNATIONA1PTE.1TD.,ANDTHEIRAFFI1IATES(CO11ECTIVE1Y,SI1ICON1ABS)HAVEDEVE1OPEDCERTAINMATERIA1S(E.G.,DEVE1OPMENTTOO1S,EXAMP1ECODE,EMBEDDAB1ECODE,D11s,SOFTWARE/COMPUTERPROGRAMSANDOTHERTHIRDPARTYP
11、ROPRIETARYMATERIA1)(1ICENSEDMATERIA1S)THATYOUMAYUSEINCONJUNCTIONWITHSI1ICON1ABSMCUPRODUCTS.ANYUSEOFTHE1ICENSEDMATERIA1SISSUBJECTTOTHISEND-USER1ICENSEACC1111bT11QCTAKC1C1-I1,C1IC1IJVCMAICCCCTI。Iacceptthetermsofthe1icenseagreementPfintIdonotacceptthetermsofthe1icenseagreementInstaHShie1dCance1图15Si1ic
12、on1aboratoriesCP210xVCPDriversforWindovsXP/2003ServerVista.tM选择安装文件夹,点击Next0图16点击Insta11,开始安装驱动。图17点击Finish,完成驱动安装。图18最后要安装是下载代码到片外f1ash的软件SmartSrIiPPets。(1)打开SmartSnippets_insta11_win64,点击Next。图19Iacceptthetermsofthis1icenseagreement,点击Next。图20选择安装路径,点击Nexto(4)选择工作区路径,点击Next0图22选择安装包,点击Nexto图23点击Ne
13、xt,Done0图24图25图26完成SmartSniets的安装后,打开软件,建立工程。(1)打开SmartSniPpets,选择JTAG,芯片选择DA14580-01,最后点击NeWo图27(2)输入工程名称和工程描述,点击SaVe存储。图28(3)选择前两步所创建的工程test,点击Open。图29(4)由于没有接虚拟串口或着JTAG,会弹出一个框框,点击其中的Yes。|、SmartSniPPeB.PrOjeCtandVta1COMport/M1i40V1OpenEdMjDe1eteJNaWRefra图30(5)我们这里是将代码下载到外部FIaSh,点击f1ash图标,并最大化相应位置的面板。图31完成以上的5步,我们可以在Se1ectFi1etodown1oad处点击Browse载入需要下载的HEX文件,则下方Connect、Read32KB、BurnErase4KSector按钮可用。在OffsetinF1ashmemory(HEX)处输入0x000000将会弹出对话框,选择是否可引导。当选择可引导时,特殊的数据头将添加到数据前,并且数据从OXOOOo08地址开始。在F1aShmemOrySiZe(HEXinByteS)输入FIaSh的大小,之后点击COnneCa下方提示连接成功,点击BUm进行烧录。