IAR IDE Installation. Power Application Controller. Copyright 2018 Active-Semi, Inc.

Similar documents
CooCox IDE Installation

Converting Firmware Projects to CoIde and IAR Embedded Workbench for ARM

PAC52XX GPIO Peripheral Firmware Design

HYDRA-X EH-PROTOx-1 Heads

ET-UARTSWD Users Guide

PAC5523EVK1. Power Application Controllers. PAC5523EVK1 User s Guide. Copyright 2017 Active-Semi, Inc.

PAC52XX PCB Design and Layout Guidelines

HYDRA-X23/X23S. Power Application Controllers. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

HYDRA-X10. Power Application Controllers TM. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

PAC5232EVK1. Power Application Controllers. PAC5232EVK1 User s Guide. Copyright 2017 Active-Semi, Inc.

PAC5532EVK1 User s Guide

Getting Started with MCUXpresso SDK CMSIS Packs

Installation Manual Installation Manual for the MicroWave Office design kit version v1.0

UM QN908x Quick Start. Document information. QN908x, Quick Start, Development Kit, QN9080 DK, QN9080 Development Kit

Getting Started Guide: TMS-FET470A256 IAR Kickstart Development Kit

TWR-KV10Z32 Sample Code Guide for IAR Board configuration, software, and development tools

IoT Sensing SDK. Getting started with IoT Sensing SDK (ISSDK) v1.7 middleware. Document information. IoT Sensing SDK, ISSDK, MCUXpresso, middleware

UM0792 User manual. Demonstration firmware for the DMX-512 communication protocol transmitter based on the STM32F103Zx.

AN Automatic RS-485 address detection. Document information

APPLICATION NOTE. Atmel AT03160: Migrating Bootloader from ATxmega128A1 to other Atmel XMEGA Devices. Atmel AVR XMEGA. Features.

M3H Group(2) Application Note 12-bit Analog to Digital Converter (ADC-A)

AN10955 Full-duplex software UART for LPC111x and LPC13xx

CMSIS DAP Setup. Document Version History Document Version ngxtechnologies.com 2

Model-Based Design Toolbox

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Implementation of a CELP Speech Coder for the TMS320C30 using SPOX

Installation Manual Installation Manual for the Ansoft Designer v5.0 design kit version v1.0

MQX RTOS Release Notes for Kinetis SDK v1.2.0 for KL33Z64 for FRDM-KL43Z Freescale Freedom Development Platform

THIS SPEC IS OBSOLETE

Capable of adjusting detection timings for start bit and data bit

AN2361 Application note

MF1 MOA4 S50. Contactless Chip Card Module Specification. This document gives specifications for the product MF1 MOA4 S50.

AN Sleep programming for NXP bridge ICs. Document information

Base Timer Channel (BT) Features. General Description. When to Use a PDL_BT Component 1.0

Installation Manual. Installation Manual for the ADS design kit version v2.1. ADS Design kit Windows Linux Unix Instruction Manual RF small signal

MQX RTOS Release Notes for Kinetis SDK FRDM- KV10Z Freescale Freedom Development Platform

Dual Access into Single- Access RAM on a C5x Device

STM32-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

SAMSUNG ELECTRONICS RESERVES THE RIGHT TO CHANGE PRODUCTS, INFORMATION AND SPECIFICATIONS WITHOUT NOTICE. Products and specifications discussed

STEVAL-CCM002V1. TFT-LCD panel demonstration board based on the STM32 as LCD controller. Features. Description

EV-VNQ5E050AK VNQ5E050AK evaluation board

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

STM3220G-SK/KEI. Keil starter kit for STM32F2 series microcontrollers (STM32F207IG MCU) Features. Description

UM User Manual for LPC54018 IoT Module. Rev November Document information

M3H Group(1) Application Note. I 2 C Interface (I2C-B) MASTER/SLAVE

THIS SPEC IS OBSOLETE

Serial-to-Ethernet Converter for Stellaris Microcontrollers

AN3980 Application note

Setting Oscillation Stabilization Wait Time of the main clock (CLKMO) and sub clock (CLKSO)

AT03975: Getting Started with SAM L21. Descripton. Features. SMART ARM-Based Microcontroller APPLICATION NOTE

UM1862 User manual. Getting started with STM32F411E Discovery software Development Tools. Introduction

UM PR533 - PCSC Tool. User manual COMPANY PUBLIC. Rev November Document information

WPR1500-LDO MP Receiver V2.1 Reference Design User s Guide

UnRegistered MB39C602 LED LIGHTING SYSTEM BULB 9W ZIGBEE CONTROL USER MANUAL. Fujitsu Semiconductor Design (Chengdu) Co. Ltd.

Kinetis Bootloader v1.2.0 Release Notes

UM LPC54018 IoT module. Document information. LPC54018, OM40007, Amazon FreeRTOS, AWS, GT1216 LPC54018 IoT module user manual

STM32-MP3NL/DEC. STM32 audio engine MP3 decoder library. Description. Features

TWR-KV10Z32 Sample Code Guide for CodeWarrior Board configuration, software, and development tools

GPIF II Designer - Quick Start Guide

MOSAIC CONTROL DISPLAYS

UM NXP USB PD shield board user manual COMPANY PUBLIC. Document information

ST19WR08 Dual Contactless Smartcard MCU With RF UART, IART & 8 Kbytes EEPROM Features Contactless specific features

QPP Proprietary Profile Guide

Kinetis KE1xF512 MCUs

Kinetis SDK Freescale Freedom FRDM-KL03Z Platform User s Guide

UM NVT2001GM and NVT2002DP demo boards. Document information

M3H Group(2) Application Note Asynchronous Serial Communication Circuit (UART-C)

M3H Group(1) Application Note I 2 C Interface (I2C-B)

Controller Continuum. for Microcontrollers V6.3. Quick Start

LPC-Link2 Debug Probe Firmware Programming. Rev June, 2017 User Guide

Intel Integrated Native Developer Experience 2015 Build Edition for OS X* Installation Guide and Release Notes

Kinetis SDK Release Notes for the TWR-K24F120M Tower System Module

PSoC Creator Quick Start Guide

STEVAL-PCC010V1. ST802RT1A Ethernet PHY demonstration board with STM32F107 controller add-on board. Features. Description

FTG Programming Kit CY3670. Spec. # Rev. *C

AN2667 Application note

How to use the NTAG I²C plus for bidirectional communication. Rev June

Sample for OpenCL* and DirectX* Video Acceleration Surface Sharing

F²MC-8FX FAMILY MB95F370 SERIES ZIGBEE SOLUTION DEVELOPMENT GUI 8-BIT MICROCONTROLLER USER MANUAL

With the standalone CD, follow the installer dialog.

M3H Group(2) Application Note I 2 C Interface (I2C-B) arbitration

Evaluation Board for CS3308. Description CS Channel. Digitally Controlled Analog Volume Control. PC or External Serial Control Input

AN10428 UART-SPI Gateway for Philips SPI slave bridges

STM3210B-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

for ColdFire Architectures V7.2 Quick Start

UM1677 User manual. Getting started with STM32F030 Value Line Discovery development tools. Introduction

Cypress HX2VL Configuration Utility Blaster User Guide

AT09381: SAM D - Debugging Watchdog Timer Reset. Introduction. SMART ARM-based Microcontrollers APPLICATION NOTE

ST33F1M. Smartcard MCU with 32-bit ARM SecurCore SC300 CPU and 1.25 Mbytes high-density Flash memory. Features. Hardware features.

Building U-Boot in CodeWarrior ARMv8

Use the Status Register when the firmware needs to query the state of internal digital signals.

AN2672 Application note

AN626 Application note

UM NVT2008PW and NVT2010PW demo boards. Document information

CDB5346. Evaluation Board for CS5346. Features. Description CS5346. Single-ended Analog Inputs. Single-ended Analog Outputs

Release notes for ISSDK v1.7

LED Manager for Intel NUC

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

AT06467: Getting started with SAM D09/D10/D11. Features. Description. SMART ARM-based Microcontrollers APPLICATION NOTE

General-purpose Zener diodes in a SOD323F (SC-90) very small and flat lead Surface-Mounted Device (SMD) plastic package.

Transcription:

Power Application Controller www.active-semi.com Copyright 2018 Active-Semi, Inc.

Table of Contents 1 Overview... 3 1.1 Supported Versions... 3 2 Download... 3 2.1 Embedded Workbench for ARM... 3 2.2 PAC5xxx Support Patch... 3 3 Install... 3 3.1 Embedded Workbench for ARM... 3 3.2 PAC5xxx Support Patch... 3 3.2.1 v7.50.2 through v7.80.4... 3 3.2.2 v8.10... 4 4 Creating a New Project... 4 4.1 Create a New Pac52xx Project... 4 4.2 Configure Device Settings... 6 4.3 Create a New Source File... 10 4.4 Add the PAC52xx SDK... 13 4.5 Add PAC52xx SDK folders to Include Paths... 17 4.6 Add Defined Symbols... 20 4.7 Build the Project... 21 5 Linking Functions into RAM... 22 5.1 Create a RAM Function... 22 6 Conclusion... 23 About Active-Semi... 24 2018 Copyright, Active-Semi International, Inc. - 2 - Revised 2018/02/15

1 OVERVIEW This document will discuss how to install and configure IAR Embedded Workbench for use with PAC5xxx. 1.1 Supported Versions For versions of IAR Embedded Workbench older than v7.50.2, please contact Active-Semi for instructions. For versions of IAR Embedded Workbench v7.50.2 through v8.10, follow the instructions in this document. For versions of IAR Embedded Workbench newer than v8.10, simply install it as normal. No special instructions or files are required. 2 DOWNLOAD This section will discuss what to download. Please contact Active-Semi with any trouble obtaining any of the required files. 2.1 Embedded Workbench for ARM If not already installed, download Embedded Workbench for ARM from this link: https://www.iar.com/iar-embedded-workbench/#!?architecture=arm 2.2 PAC5xxx Support Patch Download the appropriate PAC5xxx support patch file: v7.50.2 through v7.80.4 - IAR_7.x_patch.zip v8.10 - IAR_8.10_patch.zip These files are available for download from this link: https://drive.google.com/open?id=0b9oea30rxc38vhbqu3nta0jynmm 3 INSTALL This section will discuss how to install the files downloaded. 3.1 Embedded Workbench for ARM Install Embedded Workbench for ARM using the default options. 3.2 PAC5xxx Support Patch Install the appropriate PAC5xxx support patch by following the instructions included with the patch. 3.2.1 v7.50.2 through v7.80.4 Copy the config folder into the ARM directory (replace existing files): C:\Program Files (x86)\iar Systems\Embedded Workbench 7.2\arm C:\Program Files (x86)\iar Systems\Embedded Workbench 7.3\arm 2018 Copyright, Active-Semi International, Inc. - 3 - Revised 2018/02/15

3.2.2 v8.10 Copy the config folder into the ARM directory (replace existing files): C:\Program Files (x86)\iar Systems\Embedded Workbench 8.0\arm 4 CREATING A NEW PROJECT This section will discuss how to create a new PAC52xx project, create a new source file, and add the PAC52xx SDK. The latest version of the PAC52xx SDK can be downloaded from the Software Tab of any PAC52XX product page. For example, the PAC5223 product page is located at: https://active-semi.com/products/intelligent-motor-control/pac5223 4.1 Create a New Pac52xx Project Create a new project by selecting Project->Create New Project in the menu. 2018 Copyright, Active-Semi International, Inc. - 4 - Revised 2018/02/15

Select the ARM tool chain and the Empty project template. Choose a name and directory to save the new project. The example below uses the project name pac52xx_iar and project directory C:\PAC52XX 2018 Copyright, Active-Semi International, Inc. - 5 - Revised 2018/02/15

A blank PAC52xx project should now be created. 4.2 Configure Device Settings Select Project->Options for Target in the menu. 2018 Copyright, Active-Semi International, Inc. - 6 - Revised 2018/02/15

Select the General Options->Target tab. Choose the Device option in the Processor variant section and click on the menu button to the right. 2018 Copyright, Active-Semi International, Inc. - 7 - Revised 2018/02/15

Select a PAC52xx device, such as PAC52XX or PAC5223. The Device box should now display the PAC52xx device you selected. 2018 Copyright, Active-Semi International, Inc. - 8 - Revised 2018/02/15

Select the General Options->Library Configuration tab. Check the box next to Use CMSIS in the CMSIS section. 2018 Copyright, Active-Semi International, Inc. - 9 - Revised 2018/02/15

4.3 Create a New Source File Open the project directory by right-clicking on pac52xx_iar and selecting Open Containing Folder Create a new main.c file in the project directory. 2018 Copyright, Active-Semi International, Inc. - 10 - Revised 2018/02/15

Add a new source file to the blank project by right-clicking on pac52xx_iar and selecting Add->Add Files 2018 Copyright, Active-Semi International, Inc. - 11 - Revised 2018/02/15

Select the main.c file in the project directory. A blank main.c file should now be in the project. 2018 Copyright, Active-Semi International, Inc. - 12 - Revised 2018/02/15

Edit main.c as shown below. 4.4 Add the PAC52xx SDK Install the PAC52xx SDK into your project directory, being sure to read and accept the License Agreement. The example below uses the project directory C:\PAC52XX\ and installs the PAC52xx SDK into the directory C:\PAC52XX\pac5xxx_sdk 2018 Copyright, Active-Semi International, Inc. - 13 - Revised 2018/02/15

Add a Group to the project by right-clicking on pac52xx_iar and selecting Add->Add Group Name the group pac5xxx_sdk Create three more subgroups under the pac5xxx_sdk group as shown. 2018 Copyright, Active-Semi International, Inc. - 14 - Revised 2018/02/15

Add the PAC52xx SDK files to the pac5xxx_boot subgroup by right-clicking on it and selecting Add Files Browse to the PAC52xx SDK folder inside the project directory. For the pac5xxx_boot subgroup, add the files from the pac5xxx_boot_iar folder. 2018 Copyright, Active-Semi International, Inc. - 15 - Revised 2018/02/15

Repeat this process for the pac5xxx_drivers and pac5xxx_peripheral subgroups by adding the files from the folders with their respective names. 2018 Copyright, Active-Semi International, Inc. - 16 - Revised 2018/02/15

Add the pac5xxx_sdk_version.h file to the pac5xxx_sdk group. 4.5 Add PAC52xx SDK folders to Include Paths Select Project->Options for Target in the menu. 2018 Copyright, Active-Semi International, Inc. - 17 - Revised 2018/02/15

Select the C/C++ Compiler->Preprocessor tab. 2018 Copyright, Active-Semi International, Inc. - 18 - Revised 2018/02/15

In the Additional include directories box, add the directories shown below. IAR IDE Installation 2018 Copyright, Active-Semi International, Inc. - 19 - Revised 2018/02/15

4.6 Add Defined Symbols In the Defined symbols box, add IAR as shown below. 2018 Copyright, Active-Semi International, Inc. - 20 - Revised 2018/02/15

4.7 Build the Project To build the project, select Project->Make in the menu. When prompted, save the workspace as pac52xx_iar If the build is successful, the Build window will show 0 errors. 2018 Copyright, Active-Semi International, Inc. - 21 - Revised 2018/02/15

5 LINKING FUNCTIONS INTO RAM This section will discuss how to create functions that are placed into RAM, instead of FLASH, for quicker execution. 5.1 Create a RAM Function Modify main.c as shown below. In this example, the gpio_init function will be placed into FLASH but the gpio_toggle function will be placed into RAM instead because of the PAC5XXX_RAMFUNC attribute. This can be verified by checking the map file. 2018 Copyright, Active-Semi International, Inc. - 22 - Revised 2018/02/15

The pac52xx_iar.map file is located in the List folder where the project is saved. The example below uses the project directory C:\PAC52XX\ 6 CONCLUSION IAR Embedded Workbench for ARM should now be installed and properly configured for use with PAC5xxx. 2018 Copyright, Active-Semi International, Inc. - 23 - Revised 2018/02/15

ABOUT ACTIVE-SEMI Active-Semi, Inc., headquartered in Dallas, TX, is a leading innovative semiconductor company with proven power management, analog, and mixed-signal products for end-applications that require power conversion (AC/DC, DC/DC, DC/AC, PFC, etc.), motor drivers and control, and LED drivers and control along with ARM microcontrollers for system development. Active-Semi s latest family of (PAC ) ICs offer high-level of integration with 32-bit ARM Cortex -M0, along with configurable power management peripherals, a Configurable Analog Front End with high-precision high-speed data converters, single-ended and differential PGAs, and integrated low-voltage and high-voltage gate drives. PAC ICs offer unprecedented flexibility and ease in the systems design of various end-applications such as Wireless Power Transmitters, Motor drives, UPS, Solar Inverters, and LED lighting that require a microcontroller, power conversion, analog sensing, high-voltage gate drives, open-drain outputs, analog and digital general purpose IO, as well as support for wired and wireless communication. More information and samples can be obtained from http://www.active-semi.com or by emailing marketing@active-semi.com Active-Semi shipped its 1 Billionth IC in 2012, and has over 120 in patents awarded and pending approval. LEGAL INFORMATION & DISCLAIMER Copyright 2018 Active-Semi, Inc. All rights reserved. All information provided in this document is subject to legal disclaimers. Active-Semi reserves the right to modify its products, circuitry or product specifications without notice. Active-Semi products are not intended, designed, warranted or authorized for use as critical components in life-support, life-critical or safety-critical devices, systems, or equipment, nor in applications where failure or malfunction of any Active-Semi product can reasonably be expected to result in personal injury, death or severe property or environmental damage. Active-Semi accepts no liability for inclusion and/or use of its products in such equipment or applications. Active-Semi does not assume any liability arising out of the use of any product, circuit, or any information described in this document. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of Active-Semi or others. Active-Semi assumes no liability for any infringement of the intellectual property rights or other rights of third parties which would result from the use of information contained herein. Customers should evaluate each product to make sure that it is suitable for their applications. Customers are responsible for the design, testing, and operation of their applications and products using Active-Semi products. Customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. All products are sold subject to Active-Semi's terms and conditions of sale supplied at the time of order acknowledgment. Exportation of any Active-Semi product may be subject to export control laws. Active-Semi, the Active-Semi logo, are registered trademarks of Active-Semi, Inc. Active-Semi logo, Solutions for Sustainability, Micro Application Controller, Multi-Mode Power Manager, Configurable Analog Front End, and Application Specific Power Drivers are trademarks of Active-Semi, Inc. ARM and Cortex are registered trademarks of ARM Limited. All referenced brands and trademarks are the property of their respective owners. 2018 Copyright, Active-Semi International, Inc. - 24 - Revised 2018/02/15