Realtek Semiconductor RTL8710BN 802.11 bgn Wireless module User Manual RTL8710BN R OK

Realtek Semiconductor Corp. 802.11 bgn Wireless module RTL8710BN R OK

Users Manual


RTL8710BN
BuildandDebugEnvironmentSetupIAR
ThisdocumentillustrateshowtobuildRealteklowpowerWiFisoftwareunderIARSDK
environment.
RTL8710BN
201712262
TableofContents
1.Introduction .................................................................................................................................3
2.HowtogetIAR .............................................................................................................................3
3.AmebaZHardwareConfiguration ...............................................................................................3
4.Howtobuildanddownloadcode ................................................................................................4
4.1IARbuild .................................................................................................................................4
4.2IARdownload .........................................................................................................................8
4.3IARdebug .............................................................................................................................10
5.Imagetooldownload .................................................................................................................13
6.Howtouseperipheralsamplecode ..........................................................................................14
7.Warning......................................................................................................................................15
.
RTL8710BN
201712263

1.Introduction
ThisdocumentillustrateshowtobuildRealteklowpowerWiFisoftwareunderIARSDK
environment.
2.HowtogetIAR
IARprovidesanIDEenvironmentforcodebuilding,downloading,anddebugging.Pleasecheck
“IAREmbeddedWorkbench”onhttp://www.iar.com/,andtrailversionisavailable.
3.AmebaZHardwareConfiguration
HardwareblockdiagramisshowninFigure31Hardwareblockdiagram.TheblockUSBUARTis
usedtosupplypowerandcatchlogs,UARTbaudis115200.SWDmeansJLinkSWDinterface,
whenitisconnectedtoJLinkAdaptercorrectly,youcandownloadimagestoAmebaZfromIAR
flashdownloader.ResetbuttonisusedtoresetAmebaZtorunfirmwareafterIARcompletes
downloading.
Figure31Hardwareblockdiagram
TheDupontLinediagrambetweenJLinkAdapterandAmebaZSWDisasfollows:
RTL8710BN
201712264
3.3VGND
DATACLK
SWD
Figure32JLinkSWDconnection
PleasenoticethatDAPchipisnotweldingontheAmebaZdemoboardandsoDAPfunctionisnot
enabledwhichmeansMBEDudiskcopyisdisabled.
Physicalconnectionasshownbelow:
Figure33Physicalconnection
4.Howtobuildanddownloadcode
PleasemakesureUSBUARTisconnectedtoPCwithUSBlineandSWDisconnecttoJLinkAdapter
withDupontLinebeforedownloadcode.
4.1IARbuild
Step1:OpenIARWorkbench
Step2:Toopenproject,clickFileOpenWorkspace
RTL8710BN
201712265
Step3:SelectProject.ewwinproject\realtek_amebaz_va0_example\EWARMRELEASE
ClickProjectOptions,GeneralOptions>Target>ProcessorVariant>Core,makesureyouhave
chosenCortexM4f.IfyourIARnotsupportthiscore,PleasechooseCortexM4andFloatingpoint
settings>FPUissetto“VFPv4singleprecision”.
Step4:Tobuildproject,clickProjectRebuildAll
RTL8710BN
201712266
Thenyouwillgetboot_all.binandimage2_all_ota1.binin
project\realtek_amebaz_va0_example\EWARMRELEASE\Debug\Exe.
Step5:Tobuildimage2_all_ota2.binforOTA,clickProject>Options>BuildActions>BuildActions
Configuration>Prebuildcommandline,changethesecondaryparameter“1”to“2”shownas
follows,thenClickOKandmakeprojectRebuildAll”.
Thenyouwillgetimage2_all_ota2.bininproject\realtek_amebaz_va0_example\EWARMRELEASE
\Debug\Exe.
RTL8710BN
201712267
Bytheway,thembedAPIsincludeCfilesandHeaderfilesusedbyAmebaZislocatedin
component\soc\realtek\8711b\mbed\.Itwillalsobemergedtocomponent\common\mbed\in
nextversion.NowifyouuseAmeba1,pleasechoosefilesfromcomponent\common\mbed\andif
youuseAmebaZ,pleasechoosefilesfromcomponent\soc\realtek\8711b\mbed\.
RTL8710BN
201712268
4.2IARdownload
TheAmebaZdemoboardonlysupportsJLINKSWDdownloadanddebug.
PleasenotethatifyouwantuseIARdownloadimagetodebug,pleasesetthesecondary
parameterofprebuild.batto1andbuild.
Step1:PleasecheckJlinkdebuggerissettingcorrect.Click
Project>Options>Debugger>Setup>Driver,andchoose“JLink/JTrace.ThenclickDebugger>
JLink/JTrace>Connection>Interfaceandchoose“SWD”.
RTL8710BN
201712269
Step2:Todownloadcode,clickProject>Download>Downloadactiveapplication.
RTL8710BN
2017122610
Afterfirmwaredownload,clickResetbuttontorebootthesystem.
4.3IARdebug
Todebugortracecodestepbystep,clickProjectDownloadandDebugorpressoneofthetwo
buttons intheIARmenu.
Upperleftcornerofthetoolbarshowsstepbysteptrackingtools.
RTL8710BN
2017122611
HowtosetBreakpointisshownasfollows:
Bytheway,ROMcodeandBootloadercodeisprovidedbymeansofthesymbollisttables,
rom_symbol_v01_iar.icfandbootloader_symbol.icf.Youcanfinditin
project\realtek_amebaz_va0_example\EWARMRELEASE.Soifyouaretrackingtothefunction
whichisrunningintheROMorbootloaderarea,thesourcecodecan’tbelocated.
RTL8710BN
2017122612
RTL8710BN
2017122613
5.Imagetooldownload
PleasereferenceAN0112RealtekAmebaZImageToolusermanual.doc.pdffordetails.
AssumingthattheImageToolonPCisServer,whichsendsimagesfilestoAmebaZ(Client)through
UART.ClientorServer,whicheverstartsfirstwillbeok.
StepsonAmebaZ 
Step1:ForQFN32,pinsmarkedwith“1”onthefigureshouldbeconnectedbyjumpercap.
ForQFN48&QFN68,pinsmarkedwith“2”shouldbeconnectedbyjumpercap.
Step2:PushtheImageDownloadButtonandkeepitpressed.
Step3:PowerontheboardorpresstheResetButton.NowAmebaZgoesintoUARTDOWNLOAD
mode.
Step4:FinallyreleasetheImageDownloadButton.Nowtheclientisreadyforreceivingdata.
Figure51AmebaZDEV
Stepsonimagetool
Step1:Selectserialport.Thedefaultbaudrateis1.5Mbps.
Step2:Selecttransmissionbaudrate
Step3:Openserialport
Step4:Checktheimagestobetransferred
Step5:SelectandloadimagesfilesbybrowsingwhicharegeneratedbyIARproject.
Step6:Inputimageaddresses.Theaddresswhichstartswith0x08isforflash,and0x10forRAM.
Step7:PushDownloadbuttontostart.Nowtheserverisreadytosenddata.
RTL8710BN
2017122614
Figure52ImageDownloadTabpage
Whentheclientandserverarebothready,datatransmissionbegins.
Theprogressbarwillshowthetransmitprogressofeachimage.Youcanalsogetthemessageof
operationsuccessfulorerrorsoccurfromlogwindow.
6.Howtouseperipheralsamplecode
Thereareseveralperipheralexamplecodeunderfolder“project\realtek_amebaz_va0_example
\example_sources\”,youcancopy&pastetheexample’s“incand“src”toprojectfolder.
Ex.Tousei2cexamplecode,youcancopy“srcand“incfrom“project\
realtek_amebaz_va0_example\example_sources\i2c\”.
RTL8710BN
2017122615
AmebaAPIfollowsMBEDAPI.UsercancheckMBEDwebsiteforperipheralAPI.
7.Warning
7.1FederalCommunicationCommissionInterferenceStatement
FederalCommunicationCommissionInterferenceStatement
ThisequipmenthasbeentestedandfoundtocomplywiththelimitsforaClassBdigitaldevice,
pursuanttoPart15oftheFCCRules.Theselimitsaredesignedtoprovidereasonableprotection
againstharmfulinterferenceinaresidentialinstallation.Thisequipmentgenerates,usesandcan
radiateradiofrequencyenergyand,ifnotinstalledandusedinaccordancewiththeinstructions,
maycauseharmfulinterferencetoradiocommunications.However,thereisnoguaranteethat
interferencewillnotoccurinaparticularinstallation.Ifthisequipmentdoescauseharmful
interferencetoradioortelevisionreception,whichcanbedeterminedbyturningtheequipment
offandon,theuserisencouragedtotrytocorrecttheinterferencebyoneofthefollowing
measures:
Reorientorrelocatethereceivingantenna.
Increasetheseparationbetweentheequipmentandreceiver.
Connecttheequipmentintoanoutletonacircuitdifferentfromthattowhichthereceiveris
connected.
Consultthedealeroranexperiencedradio/TVtechnicianforhelp.
ThisdevicecomplieswithPart15oftheFCCRules.Operationissubjecttothefollowingtwo
conditions:(1)Thisdevicemaynotcauseharmfulinterference,and(2)thisdevicemustacceptany
interferencereceived,includinginterferencethatmaycauseundesiredoperation.
FCCCaution:Anychangesormodificationsnotexpresslyapprovedbythepartyresponsiblefor
compliancecouldvoidtheuser'sauthoritytooperatethisequipment.
RTL8710BN
2017122616
IMPORTANTNOTE:
FCCRadiationExposureStatement:
ThisequipmentcomplieswithFCCradiationexposurelimitssetforthforanuncontrolled
environment.Thisequipmentshouldbeinstalledandoperatedwithminimumdistance20cm
betweentheradiator&yourbody.
IEEE802.11bor802.11goperationofthisproductintheU.S.A.isfirmwarelimitedtochannels1
through13.
ThismoduleisintendedforOEMintegrator.TheOEMintegratorisresponsibleforthecompliance
toalltherulesthatapplytotheproductintowhichthiscertifiedRFmoduleisintegrated.
Additionaltestingandcertificationmaybenecessarywhenmultiplemodulesareused.
20cmminimumdistancehastobeabletobemaintainedbetweentheantennaandtheusersfor
thehostthismoduleisintegratedinto.Undersuchconfiguration,theFCCradiationexposurelimits
setforthforanpopulation/uncontrolledenvironmentcanbesatisfied.
USERSMANUALOFTHEENDPRODUCT:
Intheusersmanualoftheendproduct,theenduserhastobeinformedtokeepatleast20cm
separationwiththeantennawhilethisendproductisinstalledandoperated.Theenduserhasto
beinformedthattheFCCradiofrequencyexposureguidelinesforanuncontrolledenvironment
canbesatisfied.Theenduserhastoalsobeinformedthatanychangesormodificationsnot
expresslyapprovedbythemanufacturercouldvoidtheuser'sauthoritytooperatethisequipment.
Ifthesizeoftheendproductissmallerthan8x10cm,thenadditionalFCCpart15.19statementis
requiredtobeavailableintheusersmanual:ThisdevicecomplieswithPart15ofFCCrules.
Operationissubjecttothefollowingtwoconditions:(1)thisdevicemaynotcauseharmful
interferenceand(2)thisdevicemustacceptanyinterferencereceived,includinginterferencethat
maycauseundesiredoperation.
LABELOFTHEENDPRODUCT:
Thefinalendproductmustbelabeledinavisibleareawiththefollowing"ContainsTXFCCID:
TX2RTL8710BN".If the labelling area is larger than the palm of the hand, then the following
FCC part 15.19 statement has to also be available on the label: This device complies with
Part 15 of FCC rules. Operation is subject to the following two conditions: (1) this device
may not cause harmful interference and (2) this device must accept any interference
received, including interference that may cause undesired operation.
Antennalist:
Ant.BrandModelName(P/N)AntennaTypeConnectorGain(dBi)
1REALTEKAmebaAM0001PrintedAntennaN/A2.9
2JOYMAXTWF614XMPXX500DipoleAntennaIPEX3.0
3LYNwaveALA110222050300010PIFAAntennaIPEX3.5
Note:TheEUThasthreetypeantennas.
RTL8710BN
2017122617
7.2NCC 警語
經型式認證合格之低功率射頻電機,非經許可,公司、商號或使用者均不得擅自變更頻率、
加大功率或變更原設計之特性及功能。
低功率射頻電機之使用不得影響飛航安全及干擾合法通信;經發現有干擾現象時,應立即停
用,並改善至無干擾時方得繼續使用。前項合法通信,指依電信法規定作業之無線電通信。
低功率射頻電機須忍受合法通信或工業、科學及醫療用電波輻射性電機設備之干擾。
本模組於取得認證後將依規定於模組本體標示審驗合格標籤, 並要求平台廠商於平台上標示
「本產品內含射頻模組: CC XX xx LP yyy Zz

Navigation menu