
RTL8711AM
Build and Debug Environment Setup – IAR
This document illustrates how to build Realtek low power Wi-Fi software under IAR SDK
environment.

UM0023
Table of Contents
1. Introduction ................................................................................................................................. 3
2. How to get IAR ............................................................................................................................. 3
3. Debugger Setting .......................................................................................................................... 3
3.2 CMSIS-DAP ................................................................................................................... 3
3.2 J-Link/JTAG ................................................................................................................... 4
4. How to build and download code ................................................................................................ 7
5. How to use sample code ............................................................................................................ 12
6. WARNING…………………………………………………………………………………………………………………………….. 13
.
2015-07-21 2

UM0023
1. Introduction
This document illustrates how to build Realtek low power Wi-Fi software under IAR SDK
environment.
2. How to get IAR
IAR provides an IDE environment for code building, downloading, and debugging. Please check
“IAR Embedded Workbench” on http://www.iar.com/, and trail version is available. It requires IAR
version greater than v7.20 which supports CMSIS-DAP.
3. Debugger Setting
This board supports both CMSIS-DAP debugger and J-Link.
3.2 CMSIS-DAP
Ameba Device Board 2V0 supports CMSIS-DAP debugger. It requires installing “serial to USB driver”
at first. Serial to USB driver can be found in tools\serial_to_usb\mbedWinSerial_16466.
Connect board to the PC with micro-USB cable.
2015-07-21 3

UM0023
After installation, connect the board to PC, and then there should be mbed Serial Port shown in
Device Manager.
3.2 J-Link/JTAG
The board is configured as CMSIS-DAP mode. To use J-Link debugger, please follow the next
procedures.
Hardware Configuration
Weld JTAG and log UART connectors to HDK board and connect with pitch 2.54mm 2x5pins
connector. It is recommended to weld the connector on the bottom side.
p.s. J-Link is supported on RTL-AMEBA_DEV_3V0
2015-07-21 4

UM0023
2.54mm 2x5pins connector (or use Dupont Line)
IAR Setting
Change setting of IAR project from CMSIS-DAP to J-Link/J-Trace in
ProjectOptionsDebuggerSetupDriver, and Selecting OK to finish and enjoy JTAG
debugging.
2015-07-21 5