13
ZL70550 Application Development Kit (ADK) Source Code Overview

ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

ZL70550 Application Development Kit (ADK) Source Code Overview

Page 2: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

ZL70550 Application Development Kit (ADK) Source Code Overview

Revision 1 2

Table of Contents

1 – Introduction .............................................................................................................................................. 3

2 – ZL70550 ADK Source Code Installation .................................................................................................. 4

3 – Software Components ............................................................................................................................. 5

4 – Source Tree ............................................................................................................................................. 6 4.1 55XAdk Folder Tree ........................................................................................................................ 6 4.2 55XCommon Folder Tree ............................................................................................................... 6 4.3 Common Folder Tree ...................................................................................................................... 7

5 – IAR for Firmware ...................................................................................................................................... 8

6 – Visual Studio for GUI and API ................................................................................................................. 9

A References ............................................................................................................................................. 10

B Glossary ................................................................................................................................................. 11

C List of Changes ...................................................................................................................................... 12

List of Figures Figure 1 • ZL70550 ADK Software Components ...................................................................................... 5

Page 3: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 3

1 – Introduction This document is for customers who purchase the ZL70550 Application Development Kit and request the source code. It provides an overview of the source code for the ZL70550 Application Development Kit and is intended to help software developers get started using the source code. This document applies to ZL70550 ADK version 1.0.X.

Page 4: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 4

2 – ZL70550 ADK Source Code Installation The ZL70550 ADK source code is available upon request to anyone who purchases the ZL70550 ADK and signs a separate source code license agreement. The source code can be downloaded via the Internet as a ZIP file, which contains this document and the ADK source tree. Be sure to keep the download and the source tree in a secure location. To install the source code, unzip the ZIP file into a secure location. The top folder of the source tree is named ZL70550AdkSource by default, but you can rename it if desired, and it can be located anywhere (provided it is secure). For more information, refer to “4 – Source Tree” on page 6.

Page 5: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 5

3 – Software Components This chapter is intended to familiarize developers with the various software components in the ZL70550 ADK so the developers can relate the components to the source code. The software includes three main categories: Graphical User Interfaces (GUIs), Application Programming Interfaces (APIs), and firmware (the software that runs on the base unit and remote unit). The base unit consists of a BASE550 board mated to an ADP200 board, and the remote unit consists of a REMOTE550 board mated to an ADP200 board. The ADP200 board for each unit has a microcontroller that runs the firmware for the unit. Figure 1 illustrates where the various software components reside in the system and the communication links.

Figure 1 • ZL70550 ADK Software Components

As shown in Figure 1 above, the GUI and API run on the PC. The GUI calls the API to perform all operations, and the API sends commands to the base unit and remote unit via USB. Note that all of the API functions are included in a single DLL on the PC (for example, ZL7055XAdkDll_1_0_X.dll).

Page 6: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 6

4 – Source Tree The top folder of the source tree is named ZL70550AdkSource by default, but you can rename it if desired. Do not rename anything under the source tree because that might cause build errors. Note that the top folder of the source tree is also referred to as [SourceTree] in this document. The top folder has three folder trees under it: 55XAdk, 55XCommon, and Common. These folder trees are described below.

4.1 55XAdk Folder Tree The 55XAdk folder tree contains software that is used only by the ZL70550 ADK. The major folders under this tree are as follows:

• 55XAdk\Sw\Includes: This contains public include files. Note that when compiling, this folder must be specified as one of the include directories.

• 55XAdk\Sw\Mc\BaseAndRemote\Standard: This contains microcontroller firmware for the standard base unit and the standard remote unit. Note that the base unit and remote unit both use these files, but the resulting firmware for the base unit is different than the resulting firmware for the remote unit.

• 55XAdk\Sw\Mc\Libs: This contains microcontroller firmware libraries. These libraries are used as needed by the firmware on the base unit and the remote unit.

• 55XAdk\Sw\Mc\IarWorkspace: This contains the IAR workspace used to build the microcontroller firmware for the base unit and remote unit. For more information, refer to “5 – IAR for Firmware” on page 8.

• 55XAdk\Sw\Pc\Guis: This contains software for the ADK GUI on the PC. Note that this software uses the C# programming language.

• 55XAdk\Sw\Pc\Libs: This contains C libraries for the PC. Note that these libraries are included in the DLL for the ADK API (for example, ZL7055XAdkDll_1_0_X.dll).

• 55XAdk\Sw\Pc\VisualStudio: This contains the Visual Studio solution used to build the ADK GUI and API (DLL) on the PC. For more information, refer to “Visual Studio for GUI and API” on page 9.

4.2 55XCommon Folder Tree The 55XCommon folder tree contains software pertaining to the ZL70550 that is used by multiple ZL70550 kits, including the ZL70550 ADK. The major folders under this tree are as follows:

• 55XCommon\Sw\Includes: This contains public include files. Note that when compiling, this folder must be specified as one of the include directories.

• 55XCommon\Sw\Mc\Libs: This contains microcontroller firmware libraries. These libraries are used as needed by the firmware on the base unit and the remote unit.

• 55XCommon\Sw\Pc\Guis: This contains GUI software for the PC. The ADK GUI uses this software as needed. Note that this software uses the C# programming language.

• 55XCommon\Sw\Pc\Libs: This contains C libraries for the PC. The ADK PC software uses these libraries as needed. Note that these libraries are included in the DLL for the ADK API (for example, ZL7055XAdkDll_1_0_X.dll).

Page 7: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

ZL70550 Application Development Kit (ADK) Source Code Overview

Revision 1 7

4.3 Common Folder Tree The Common folder tree contains general-purpose software that is used by multiple kits, including the ZL70550 ADK. The major folders under this tree are as follows:

• Common\Sw\Includes: This contains public include files. Note that when compiling, this folder must be specified as one of the include directories.

• Common\Sw\Mc\Libs: This contains microcontroller firmware libraries. These libraries are used as needed by the firmware on the base unit and the remote unit.

• Common\Sw\Pc\Guis: This contains GUI software for the PC. The ADK GUI uses this software as needed. Note that this software uses the C# programming language.

• Common\Sw\Pc\Libs: This contains C libraries for the PC. The ADK PC software uses these libraries as needed. Note that these libraries are included in the DLL for the ADK API (for example, ZL7055XAdkDll_1_0_X.dll).

Page 8: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 8

5 – IAR for Firmware The ZL70550 ADK uses IAR’s Embedded Workbench for Atmel AVR to build the firmware for each unit. This must be purchased separately from IAR Systems. The IAR workspace file for the ZL70550 ADK is [SourceTree]\55XAdk\Sw\Mc\IarWorkspace\55XAdkWorkspace.eww. To open the workspace in IAR, either start IAR and open the workspace file via File > Open > Workspace, or double-click the workspace file in Windows Explorer. The workspace contains the following projects:

• Base550: This project is used to build the firmware that runs on the base unit (a BASE550 board mated with an ADP200 board).

• Remote550: This project is used to build the firmware that runs on the remote unit (a REMOTE550 board mated with an ADP200 board).

For more information about IAR, please refer to the IAR documentation.

Page 9: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 9

6 – Visual Studio for GUI and API The ZL70550 ADK uses Microsoft's Visual Studio (Professional Edition) to build the GUI and API (DLL). Visual Studio must be purchased separately from Microsoft. The Visual Studio solution file for the ZL70550 ADK is [SourceTree]\55XAdk\Sw\Pc\VisualStudio\ZL7055XAdk.sln. To open the solution in Visual Studio, either start Visual Studio and open the solution file via File > Open > Project/Solution or double-click the solution file in Windows Explorer. The solution contains the following projects:

• ZL7055XAdkGui: The project is used to build the GUI. • ZL7055XAdkDll_[Major]_[Minor]_X: This project is used to build the API (DLL), where

[Major] is the release major version, and [Minor] is the release minor version. For more information about Visual Studio, please refer to the Visual Studio documentation.

Page 10: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 10

A References

Document

Document Title 153552 ZL70550 Programmer User’s Guide

152078 ZL70550 Datasheet

154566 ZL70550 ADK Release Notes

N/A ZL70550 ADK User’s Guide

Page 11: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 11

B Glossary

Term Definition

ADK Application development kit

API Application programming interface

DLL Dynamic link library or the three-character file extension on such a file

GUI Graphical user interface

IAR IAR Embedded Workbench™, the development tool used to build the firmware for the boards

PC Personal computer

SPI Serial peripheral interface

SW Software

USB Universal serial bus

ZIP Zone information protocol (a protocol that allows compression of files) or the three-character file extension on such a compressed file

Page 12: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Revision 1 12

C List of Changes The following table lists substantive changes that were made in the ZL70550 Application Development Kit (ADK) Source Code Overview.

Revision Change Page

Revision 1 (March 2016)

Initial revision for ZL70550 ADK release 1.0.0. –

Page 13: ZL70550 Application Development Kit (ADK) Source Code Overview · 2016. 7. 7. · ZL70550 Application Development Kit (ADK) Source Code Overview . Revision 1 7 . 4.3 . Common. Folder

Microsemi Corporate Headquarters One Enterprise, Aliso Viejo, CA 92656 USA

Within the USA: +1 (800) 713-4113 Outside the USA: +1 (949) 380-6100 Sales: +1 (949) 380-6136 Fax: +1 (949) 215-4996

E-mail: [email protected]

© 2016 Microsemi Corporation. All rights reserved. Microsemi and the Microsemi logo are registered trademarks of Microsemi Corporation. All other trademarks and service marks are the property of their respective owners.

Microsemi Corporation (Nasdaq: MSCC) offers a comprehensive portfolio of semiconductor and system solutions for communications, defense and security, aerospace, and industrial markets. Products include high-performance and radiation-hardened analog mixed-signal integrated circuits, FPGAs, SoCs, and ASICs; power management products; timing and synchronization devices and precise time solutions; voice processing devices; RF solutions; discrete components; enterprise storage and communications solutions; security technologies and scalable anti-tamper products; Ethernet solutions; Power-over-Ethernet ICs and midspans; custom design capabilities and services. Microsemi is headquartered in Aliso Viejo, California and has approximately 4,800 employees world-wide. Learn more at www.microsemi.com

Microsemi makes no warranty, representation, or guarantee regarding the information contained herein or the suitability of its products and services for any particular purpose, nor does Microsemi assume any liability whatsoever arising out of the application or use of any product or circuit. The products sold hereunder and any other products sold by Microsemi have been subject to limited testing and should not be used in conjunction with mission-critical equipment or applications. Any performance specifications are believed to be reliable but are not verified, and Buyer must conduct and complete all performance and other testing of the products, alone and together with, or installed in, any end-products. Buyer shall not rely on any data and performance specifications or parameters provided by Microsemi. It is the Buyer’s responsibility to independently determine suitability of any products and to test and verify the same. The information provided by Microsemi hereunder is provided “as is, where is” and with all faults, and the entire risk associated with such information is entirely with the Buyer. Microsemi does not grant, explicitly or implicitly, to any party any patent rights, licenses, or any other IP rights, whether with regard to such information itself or anything described by such information. Information provided in this document is proprietary to Microsemi, and Microsemi reserves the right to make any changes to the information in this document or to any products and services at any time without notice.

ZLE70550_SCO/Rev1/03.16