background image

   

 

 

RTL8710BN

 

 

Build

 

and

 

Debug

 

Environment

 

Setup

 

 

IAR

 

 

This

 

document

 

illustrates

 

how

 

to

 

build

 

Realtek

 

low

 

power

 

Wi

Fi

 

software

 

under

 

IAR

 

SDK

 

environment.

   

Summary of Contents for RTL8710BN

Page 1: ...RTL8710BN Build and Debug Environment Setup IAR This document illustrates how to build Realtek low power Wi Fi software under IAR SDK environment ...

Page 2: ...nts 1 Introduction 3 2 How to get IAR 3 3 Ameba Z Hardware Configuration 3 4 How to build and download code 4 4 1 IAR build 4 4 2 IAR download 8 4 3 IAR debug 10 5 Image tool download 13 6 How to use peripheral sample code 14 7 Warning 15 ...

Page 3: ...3 Ameba Z Hardware Configuration Hardware block diagram is shown in Figure 3 1 Hardware block diagram The block USB UART is used to supply power and catch logs UART baud is 115200 SWD means J Link SWD interface when it is connected to J Link Adapter correctly you can download images to Ameba Z from IAR flash downloader Reset button is used to reset Ameba Z to run firmware after IAR completes downl...

Page 4: ...ot enabled which means MBED u disk copy is disabled Physical connection as shown below Figure 3 3 Physical connection 4 How to build and download code Please make sure USB UART is connected to PC with USB line and SWD is connect to J Link Adapter with Dupont Line before download code 4 1 IAR build Step 1 Open IAR Workbench Step 2 To open project click File Open Workspace ...

Page 5: ...WARM RELEASE Click Project Options General Options Target Processor Variant Core make sure you have chosen Cortex M4f If your IAR not support this core Please choose Cortex M4 and Floating point settings FPU is set to VFPv4 single precision Step 4 To build project click Project Rebuild All ...

Page 6: ...ug Exe Step 5 To build image2_all_ota2 bin for OTA click Project Options Build Actions Build Actions Configuration Pre build command line change the secondary parameter 1 to 2 shown as follows then Click OK and make project Rebuild All Then you will get image2_all_ota2 bin in project realtek_amebaz_va0_example EWARM RELEASE Debug Exe ...

Page 7: ...es used by Ameba Z is located in component soc realtek 8711b mbed It will also be merged to component common mbed in next version Now if you use Ameba 1 please choose files from component common mbed and if you use Ameba Z please choose files from component soc realtek 8711b mbed ...

Page 8: ...note that if you want use IAR download image to debug please set the secondary parameter of prebuild bat to 1 and build Step 1 Please check J link debugger is setting correct Click Project Options Debugger Setup Driver and choose J Link J Trace Then click Debugger J Link J Trace Connection Interface and choose SWD ...

Page 9: ...RTL8710BN 2017 12 26 9 Step 2 To download code click Project Download Download active application ...

Page 10: ...nload click Reset button to reboot the system 4 3 IAR debug To debug or trace code step by step click Project Download and Debug or press one of the two buttons in the IAR menu Upper left corner of the toolbar shows step by step tracking tools ...

Page 11: ... loader code is provided by means of the symbol list tables rom_symbol_v01_iar icf and bootloader_symbol icf You can find it in project realtek_amebaz_va0_example EWARM RELEASE So if you are tracking to the function which is running in the ROM or boot loader area the source code can t be located ...

Page 12: ...RTL8710BN 2017 12 26 12 ...

Page 13: ...ownload Button and keep it pressed Step 3 Power on the board or press the Reset Button Now Ameba Z goes into UART DOWNLOAD mode Step 4 Finally release the Image Download Button Now the client is ready for receiving data Figure 5 1 AmebaZ DEV Steps on image tool Step 1 Select serial port The default baud rate is 1 5Mbps Step 2 Select transmission baud rate Step 3 Open serial port Step 4 Check the i...

Page 14: ...n also get the message of operation successful or errors occur from log window 6 How to use peripheral sample code There are several peripheral example code under folder project realtek_amebaz_va0_example example_sources you can copy paste the example s inc and src to project folder Ex To use i2c example code you can copy src and inc from project realtek_amebaz_va0_example example_sources i2c ...

Page 15: ...nstallation If this equipment does cause harmful interference to radio or television reception which can be determined by turning the equipment off and on the user is encouraged to try to correct the interference by one of the following measures Reorient or relocate the receiving antenna Increase the separation between the equipment and receiver Connect the equipment into an outlet on a circuit di...

Page 16: ...uncontrolled environment can be satisfied The end user has to also be informed that any changes or modifications not expressly approved by the manufacturer could void the user s authority to operate this equipment If the size of the end product is smaller than 8x10cm then additional FCC part 15 19 statement is required to be available in the users manual This device complies with Part 15 of FCC ru...

Page 17: ...證合格之低功率射頻電機 非經許可 公司 商號或使用者均不得擅自變更頻率 加大功率或變更原設計之特性及功能 低功率射頻電機之使用不得影響飛航安全及干擾合法通信 經發現有干擾現象時 應立即停 用 並改善至無干擾時方得繼續使用 前項合法通信 指依電信法規定作業之無線電通信 低功率射頻電機須忍受合法通信或工業 科學及醫療用電波輻射性電機設備之干擾 本模組於取得認證後將依規定於模組本體標示審驗合格標籤 並要求平台廠商於平台上標示 本產品內含射頻模組 CC XX xx LP yyy Zz ...

Reviews: