MA000-095-00-00Doc. ver.: 1.13EDEEmbeddedDevelopmentEnvironment Manual
Manual Purpose and StructureIX••••••••CONVENTIONS USED IN THIS MANUALThe notation used to describe the format of call lines is given below:{ } Items s
Manual Purpose and StructureXMANUAL STRUCTUREThis illustration indicates actions you can perform with the mouse.This illustration indicates keyboard i
1OVERVIEWCHAPTER
Chapter 11-2OVERVIEW1CHAPTER
Overview1-3••••••••1.1 EDE PROGRAM DEVELOPMENTThe TASKING Embedded Development Environment EDE can be dividedinto three main parts:1. Edit / Project m
Chapter 11-4OVERVIEWIn the Build part a makefile (created by the Edit part) is used to invokethe needed toolchain components, resulting in an absolute
2GETTING STARTEDWITH EDECHAPTER
Chapter 22-2STARTING2CHAPTER
Getting Started with EDE2-3••••••••2.1 STARTING EDEYou can launch EDE by double-clicking on the EDE shortcut on yourdesktop. Or you can launch EDE via
Chapter 22-4STARTINGOutput WindowContains several tabs to displayand manipulate results of EDEoperations. For example, to viewthe results of builds or
A publication ofAltium BVDocumentation DepartmentCopyright 2004 Altium BVAll rights reserved. Reproduction in whole or part is prohibitedwithout the
Getting Started with EDE2-5••••••••2.3 SELECTING A TOOLCHAINEDE supports all the TASKING toolchains. When you first start EDE, thetoolchain of the pro
Chapter 22-6STARTING2.4 PROJECT MANAGEMENTEDE is a complete project environment in which you can create andmaintain project spaces and projects. EDE g
Getting Started with EDE2-7••••••••2.4.1 CREATE A NEW PROJECT SPACE WITH APROJECTCreating a project space is in fact nothing more than creating a proj
Chapter 22-8STARTINGAdd a new project to the project space4. In the Project Properties dialog, click on the Add new project to projectspace button.The
Getting Started with EDE2-9••••••••A project file with the name demo.pjt is created and the Project Propertiesdialog box appears with the project sele
Chapter 22-10STARTINGb. Enter a new filename and click OK.A new empty file is created and added to the project.Method 2: Scan existing files into a pr
Getting Started with EDE2-11••••••••d. Click OK.The files that match the specified pattern(s) are added to your project.Method 3: Add existing files t
Chapter 22-12STARTINGEDE automatically creates a makefile for the project. This file contains therules to build your application. EDE updates the make
Getting Started with EDE2-13••••••••Include a sub-projectProjects not only contain files, but can also contain sub-projects. This canbe useful for inc
Chapter 22-14STARTING2. Select the file(s) you want to open (hold down the Ctrl key to select morethan one file) and click OK.EDE loads the selected f
The information in this document has been carefully reviewed and isbelieved to be accurate and reliable. However, Altium assumes no liabilitiesfor ina
Getting Started with EDE2-15••••••••The Cancel button closes the dialog without saving your changes. Withthe Defaults button you can restore the defau
Chapter 22-16STARTING2.8 HOW TO BUILD YOUR APPLICATIONThe next step is to compile the file(s) together with its dependent files soyou can debug the ap
Getting Started with EDE2-17••••••••2.8.1 ADVANCED BUILD OPTIONSThese steps are optional. Follow these steps if you want to specifyadditional build op
Chapter 22-18STARTING2.9 STARTING THE CROSSVIEW PRO DEBUGGEROnce the files have been compiled, assembled, linked, located andformatted they can be exe
Getting Started with EDE2-19••••••••2.10 HOW TO LOAD/SAVE OPTIONSYou can save the settings of your toolchain options into an option file(.opt) so that
Chapter 22-20STARTING2. Enter the filename of a previously saved option file.3. Optionally, enable the Load Options from the specified file when thepr
3USE EDE WITHCODEWRIGHTCHAPTER
Chapter 33-2EDE AND CODEWRIGHT3CHAPTER
Using EDE with CodeWright3-3••••••••3.1 INTRODUCTIONInstead of using the editor delivered with EDE (which is also based onCodeWright technology) you c
Chapter 33-4EDE AND CODEWRIGHT3.2 FILES USED BY EDEThe following files are used by EDE:\product\bin\ede32.dllEDE program as a 32-bits DLL\product\bin\
TABLE OFCONTENTSCONTENTS
4EDITORCHAPTER
Chapter 44-2EDITOR4CHAPTER
Editor4-3••••••••4.1 INTRODUCTIONEDE is based on CodeWright technology. For a detailed description of theeditor refer to the on-line manual of the edi
Chapter 44-4EDITOR4.3 PRACTICAL TIPSKeystroke Macros DialogYou can record keystrokes and play them back by pressing the F7 and F8keys respectively. On
Editor4-5••••••••Language DialogThis is a place where a lot of the "good stuff" is hiding. You turn onChromaCoding from here, Language Templ
Chapter 44-6EDITOREnvironment DialogLet us consider the settings available under the Environment dialog. SelectEnvironment from the Customize menu. Th
APYTHONAPPENDIX
Appendix AA-2PYTHONAAPPENDIX
PythonA-3••••••••1 INTRODUCTIONYou can configure EDE to use Python scripts. The purpose of integratingthe Python interpreter with EDE is to control ED
Appendix AA-4PYTHONHoriz. ScrollbarToggles the presence of a horizontal scrollbar the Python Output Window.Run...Executes a Python script, selected us
Table of ContentsIVCONTENTSCONTENTS
PythonA-5••••••••3 RUNNING PYTHON SCRIPTSThe Python extension adds API calls to EDE which you can issue asregular API function calls. To give an API c
Appendix AA-6PYTHON4 FILES USED BY PYTHON FOR EDEThe following files are present in the bin directory:cwpythoni.dllProvides language support for Pytho
PythonA-7••••••••5 DDECLT PYTHON EXTENSION MODULEddeclt is a strings data based DDE client. A module which does not relyon MFC. It provides a DDE serv
Appendix AA-8PYTHON3. Failure to handle errors when using synchronous transactions.DDE is an asynchronous process, but is made to appear synchronouswh
PythonA-9••••••••GetAdvisedItemNoWait(connection, itemname)Returns a tuple (value, data-event) where value is the data receivedaccompanying a data cha
Appendix AA-10PYTHONUninitialize()Frees all Dynamic Data Exchange Management Library (DDEML) resourcesassociated with the specified application.Return
PythonA-11••••••••Execute(connection, command_string[, timeout])Send a command to the connected DDE peer, usually a server. Thetimeout is default set
Appendix AA-12PYTHONAdvise(connection, item[, timeout][, use_ACKREQ=0][, use_NODATA=0])Establish an advise loop with a server.The server will send dat
PythonA-13••••••••6 PY2CWAPIThis module wraps most of the EDE API functions, for direct usage fromPython.The number of API functions is far too big to
Appendix AA-14PYTHON7 REDIR2CWConsoleHorScrollBar( request )Determine the new state of the scrollbar, or query its current state.Value Function>0 T
Table of ContentsV••••••••OVERVIEW 1-11.1 EDE Program Development 1-3. . . . . . . . . . . . . . . . . . . . . . . 1.2 Working in an Embedded Environm
PythonA-15••••••••CallCwFunction( function_name [,arg...] )Invoke an EDE API function. Conversions are done under water. Thefunction name and argument
Appendix AA-16PYTHON8 MATLAB VIA ACTIVEX WRAPPER CLASSA Python module has been included which declares the class Matlab,wrapping Matlab instantiation
PythonA-17••••••••The imaginary matrix has the same dimensions as the real one. Alwaysreturns them as a matrix, even if they have one row. Both matric
Appendix AA-18PYTHON8.2 INSTALLATION REQUIREMENTSMatlab must be registered as an automation server before it can be used asan ActiveX object. Run matl
INDEXINDEX
IndexIndex-2INDEXINDEX
IndexIndex-3••••••••AAdvise, A-12auto-save, 4-6Bbuild, viewing results, 2-16CCallCwFunction, A-15ClearConsole, A-14compile, 2-16Connect, A-10ConnectLi
IndexIndex-4INDEXIInitialize, A-11Mmakefileautomatic creation of, 2-12updating, 2-12Matlab, A-16MaximizeCommandWindow, A-17MinimizeCommandWindow, A-17
Table of ContentsVICONTENTSPYTHON A-11 Introduction A-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Installation and Conf
Manual Purpose and StructureVII••••••••MANUAL PURPOSE AND STRUCTUREPURPOSEThis manual is aimed at users of the TASKING Embedded DevelopmentEnvironment
Manual Purpose and StructureVIIIMANUAL STRUCTURERELATED PUBLICATIONS• CODE COMPLETEA Practical Handbook of Software Construction[Steve McConnel, Micr
Comments to this Manuals