Home

TSC695 Evaluation Kit Getting Started Guide

image

Contents

1. In s lt install_dir gt leccs cygwin 1 1 5 3 rtems 4 Add opt rtems bin to your search path Warning As Linux does not support paths containing blank characters avoid to use the Home path inherited from Windows to locate your own development folders if this one contains blank characters Compile and link your application program as follows sparc rtems gcc g 03 application c o application TSC695 Evaluation Kit Getting Started Guide AIMEL 4 9 7831A AERO 04 09 LECCS Software Packages 4 4 Opening the Application Terminal Window 4 5 Transfering the Executable File to the Board RAM 4 6 Remotely Debugging your Program 4 10 7831 A AERO 04 09 You must open an Hyperterminal Window so that your application can display results After launching Hyperterminal select the appropriate COM port number and use the fol lowing port settings Bits per second 19200 Data bits 8 Parity None Stop bits 1 Flow control None You may load and debug your application through GDB only but working with GDB through DDD is much more easier To start DDD with the debugger use ddd debugger sparc rtems gdb attach window lt your_application gt You may also type only ddd debugger sparc rtems gdb attach window and then specify the application to be loaded with the DDD File gt Open Program command You should now have two windows opened to debug your application a termi
2. E Evaluation board equipped with TSC695 processor 512Kbytes FLASH containing the rdbmon monitor program 4Mbytes RAM m Cables and adapters RS232C standard serial straight thru cables DB9 DB9 Null modem adpaters DB9 DB9 RS232C serial adapters DB9 DB25 DC power cable m TSC695 Starter kit s CD ROM m Documentation This Getting Started Guide Launch welcome htm file to have a graphic overview of CD ROM contents The CDROM is organized as follows bsdl contains the TSC695 BSDL file code_example contains the code source of a short application displaying an hello word string doc contains datasheets specifications and user s guides in pdf format erc32ccs contains the software packages of ERC32 GNU Cross Compiler System graf contains images files html contains html files leccs contains the software packges of LEON ERC32 GNU Cross Compiler System patches contains files to patch the CCS packages vhdl contains the TSC695 VHDL model and related files TSC695 Evaluation Kit Getting Started Guide ANIEL 1 1 7831A AERO 04 09 Getting Started 1 3 Minimum Hardware Configuration 1 4 Getting Started with the Evaluation Kit 1 2 7831 A AERO 04 09 CD ROM updates may be downloaded from https www atmel nantes fr aedos It s necessary to get a User login and Password to access this web site They can be requested through our hotlines by sending an e
3. gt DDD Icyedrive d work dev world world c File Edit View Program Commands Status Source Data 00 TARA rama Lookup Find Break Watch Print Display Plot Show Rotate Set Undisp include lt stdio h gt main puts Hello World n Dump of assembler code from 0x2001300 to 0x2001400 0x2001300 lt main 20 gt ret 0x2001304 lt main 24 gt restore 0x2001308 lt _puts_r gt save sp 136 sp 0x200130c lt _puts_r 4 gt call 0x200138c lt strlen gt 0x2001310 lt _puts_r 8 gt mov il o0 0x2001314 lt _puts_r 12 gt mov o0 g2 0x2001318 lt _puts_r 16 gt 1d i0 8 o0 0x200131c lt _puts_r 20 gt sethi hi 0x2003800 o1 0x2001320 lt _puts_r 24 gt or ol 0x2d0 o1 1 0x2003ad0 lt _rodata_start 16 gt 0x2001324 lt _puts_r 28 gt add g2 1 05 0x2001328 lt _puts_r 32 gt add fp 40 o4 0x200132c lt _puts_r 36 gt mov 1 02 0x2001330 lt _puts_r 40 gt mov 2 03 0x2001334 lt _puts_r 44 gt st ol 32 0x2001338 lt _puts_r 48 gt st sil 40 0x200133c lt _puts_r 52 gt st o2 28 0x2001340 lt _puts_r 56 gt st o5 16 0x2001344 lt _puts_r 60 gt st o4 24 0x2001348 lt _puts_r 64 gt st 03 20 0x200134c lt _puts_r 68 gt st g2 fp 36 0x2001350 lt _puts_r 72 gt call 0x2001400 lt __sfvwrite gt 0x2001354 lt _puts_r 76 gt add fp 24 ol 0x2001358 lt _puts_r 80 gt cmp 500 0 0x200135c lt _puts_r 84 gt be 0x2001368 lt _puts_r 9
4. V5 2e VHDL simulator The model is already back annotated by a SDF file in typical conditions 5V 25C Before using the model you must copy the VITAL libraries and the modelsim ini file from the CDROM then modify the modelsim ini file so that it fits with the libraries installation directory path For the VHDL model to operate properly you must force some internal nets for a few cycles A bus called D_INIT 33 bits wide is declared in the model entity This bus is for the TSC695 VHDL model initialization purpose only There is no D_INIT bus on the device When writing your VHDL test bench or the VHDL description of the TSC695 hardware environment you must declare a S_D_INIT 33 bit wide std_logic_vector signal that you will connect to the D_INIT one in the instanciation part of your VHDL design You then add the following three lines to your startup do file or you keep them in a standalone file that you load on demand but always at the very beginning of the simulation session force freeze lt test_bench_entity gt S_D_INIT 1640 run lt 10 cycles periods gt force freeze lt test_bench_entity gt S_D_INIT 16 Z If the system clock period is 100ns the run statement is run 1000ns S_D_INIT is a suggestion for the signal name You may use any other signal name TSC695 Evaluation Kit Getting Started Guide AIMEL 5 13 7831A AERO 04 09 Using the TSC695 VHDL Model 5 14 AIMEL TSC695 Evaluation Kit Getting Started Guide 783
5. program to communicate with GDB application running on the host The host needs to have two available serial ports lt can be SUN or PC machines but the shape and pinout are rather different between those platforms This is why adapters are provided in this kit in addition to the RS232C standard cables 2 1 1 SUN Machines Connect the serial ports of the evaluation board to the ports of the host by means of RS232C serial straight thru DB9 male female cables serial DB9 male DB25 male adpater and serial null modem DB9 male female adpaters application DDD GDB output window messages uses port A uses port B RS232C serial DB9 male DB25 female adpater TSC695 Evaluation Kit RS232C serial straight thru DB9 male female Serial A 110 SUN Machines Serial B q dh g J11 RDBMON RS232C serial null modem DB9 male female adapters TSC695 Evaluation Kit Getting Started Guide AIMEL 2 3 7831A AERO 04 09 Hardware Installation 2 1 2 PC Machines Connect the serial ports of the evaluation board to the ports of the host by means of RS232C serial straight thru DB9 male female cables and serial null modem DB9 male female adapters application DDD GDB output window messages uses Coml port uses Com2 port RS232C serial straight thru ISIS Evaluation Kit DB9 male female TSC695 Coml g J10 PC Platform Com2 qa Ji
6. 1A AERO 04 09 Where to go from here Section 6 Where to go from here The opt doc folders contains getting started guides and the DDD GDB and GCC manuals in paf format You should also read the TSC695 User s Manual and Data Sheet as well as the evalua tion board User s Manual which describes the numerous capabilities of the evaluation hardware TSC695 Evaluation Kit Getting Started Guide AIMEL 6 15 7831A AERO 04 09 Where to go from here 6 16 AIMEL TSC695 Evaluation Kit Getting Started Guide 7831A AERO 04 09 ANIEL T O Atmel Corporation Atmel Operations 2325 Orchard Parkway Memory RF Automotive San Jose CA 95131 USA 2325 Orchard Parkway Theresienstrasse 2 Tel 1 408 441 0311 San Jose CA 95131 USA Postfach 3535 Fax 1 408 487 2600 Tel 1 408 441 0311 74025 Heilbronn Germany Fax 1 408 436 4314 Tel 49 71 31 67 0 Fax 49 71 31 67 2340 Regional Headquarters Microcontrollers Europe as 0 1150 East Cheyenne Min Blvd naa Sarl lio i Colorado Springs CO 80906 USA Tel 1 408 441 0311 Tel 1 719 576 3300 Route des Arsenaux 41 Fax 1 408 436 4314 da 3 Case Postale 80 Fax 1 719 540 1759 alei Poou La Chantrerie Biometrics Imaging Hi Rel MPU witzerland BP 70602 High Speed Converters RF Datacom Tel 41 26 426 5555 44306 Nantes Cedex 3 France venue de Rochepleine Fax 41 26 426 5500 Tel 33 2 40 18 18 18 BP 123 Asia Fax 33 2 40 18 19 60 38521 Saint Egreve Cedex France Room 1219 IIET si Tel 3
7. 3 4 76 58 30 00 Chinachem Golden Plaza MAT ECTS Fax 33 4 76 58 34 80 Zone Industrielle 77 Mody Road Tsimshatsui 13106 Rousset Cedex France East Kowloon Tel 33 4 42 53 60 00 Hong Kong Fax 33 4 42 53 60 01 Tel 852 2721 9778 Fax 852 2722 1369 1150 East Cheyenne Min Blvd Japan Colorado Springs CO 80906 USA 9F Tonetsu Shinkawa Bldg Tel 1 719 576 3300 1 24 8 Shinkawa Fax 1 719 540 1759 Chuo ku Tokyo 104 0033 i Japan Scottish Enterprise Technology Park Tel 81 3 3523 3551 Maxwell Building Fax 81 3 3523 7581 East Kilbride G75 OQR Scotland Tel 44 1355 803 000 Fax 44 1355 242 743 Literature Requests www atmel com literature Disclaimer Atmel Corporation makes no warranty for the use of its products other than those expressly contained in the Company s standard warranty which is detailed in Atmel s Terms and Conditions located on the Company s web site The Company assumes no responsibility for any errors which may appear in this document reserves the right to change devices or specifications detailed herein at any time without notice and does not make any commitment to update the information contained herein No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products expressly or by implication Atmel s products are not authorized for use as critical components in life support devices or systems Atmel Corp
8. 5 Evaluation Kit Getting Started Guide AIMEL 3 7 7831A AERO 04 09 ERC32CCS Software Package 3 8 AIMEL TSC695 Evaluation Kit Getting Started Guide 7831A AERO 04 09 4 1 4 2 4 3 Supported Platforms Installing the Software Development Packages for MS Windows Compiling and Linking your Program LECCS Software Packages Section 4 LECCS Software Packages The Software Packages are available from Veccs folder of the starter kit CD ROM LECCS is a multi platform development system based on the GNU family of freely avail able tools It is provided for three host platforms Platform OS Version Linux x86 Linux 2 2 x glibc 2 2 or higher Solaris solaris 2 7 or higher gunzip MS Windows Cygwin 1 1 7 or higher Further information is provided in leccs 1 1 1 pdf document supplied in rtems doc tools directoty of leccs docs tools 1 1 tar gz package To run on Windows platforms Cywin unix emulation layer needs to be installed Cygwin is not provided in this starter kit It can be freely installed from www cygwin com web site The LECCS directory tree is compiled to reside in opt rtems directory If the installation directory is not opt rtems then you will have to create a link to the location of the LECCS directory 1 Copy the leccs cygwin 1 1 5 3 tar gz file from the CDROM to your disk 2 Uncompress and extract the tar file 3 On your platform create the link cd opt
9. 6 gt 0x2001360 lt _puts_r 88 gt mov Oxa i0 0x2001364 lt _puts_r 92 gt mov 1 i0 0x2001368 lt _puts_r 96 gt ret 0x200136c lt _puts_r 100 gt restore 0x2001370 lt puts gt save sp 104 sp 0x2001374 lt puts 4 gt sethi hi 0x2003c00 o1 0x2001378 lt puts 8 gt ld o1 0x21c 00 0x2003e1c lt _impure_ptr gt 0x200137c lt puts 12 gt call 0x2001308 lt _puts_r gt 0x2001380 lt puts 16 gt mov il ol 0x2001384 lt puts 20 gt ret 0x2001388 lt puts 24 gt restore gl o0 00 GNU DDD 3 3 9 1686 pc cygwin by Dorothea L tkehaus and Andreas Zeller Copyright 1995 1999 Technische Universitat Braunschweig Germany Copyright 1999 2001 Universitat Passau Germany Copyright 2001 Universitat des Saarlandes Germany Copyright 2001 2004 Free Software Foundation Inc gdb set remotebaud 19200 gdb target extended remote dev ttyS0 0x02000000 in text_start gdb load Loading section text size 0x3b20 Ima 0x2000000 Loading section data size 0x750 Ima 0x2003b20 Start address 0x2000000 load size 17008 Transfer rate 7161 bits sec 274 bytes write gdb cont Program exited with code 0220 gdb A Program exited with code 0220 4 12 AIMEL TSC695 Evaluation Kit Getting Started Guide 7831 A AERO 04 09 Section 5 Using the TSC695 VHDL Model The starter kit contains a precompiled VHDL model of the TSC695 device The model has been compiled for use with the ModelSim
10. TSC695 Evaluation Kit Getting Started Guide AMEL 40 2 ANIEL TSC695 Evaluation Kit Getting Started Guide 7831A AERO 04 09 4 AIMEL TSC695 Evaluation Kit Getting Started Guide 7831 A AERO 04 09 Table of Contents AMEL Getting Saca 1 1 1 1 TSC695 Evaluation kit contents oooocinniccnnnccnnnnccnnncccnnncccnonancnnrra narran 1 1 1 2 CDROM contents ras 1 1 1 3 Minimum hardware configuration nenea nenea 1 2 1 4 Getting started with the evaluation Kit men eee 1 2 Hatawars Instala asocian arre i tate 1 3 2 1 Connecting the serial links nenea 1 3 2 2 Connecting the power supply cena nana 1 4 Software Configuration u nenen nea 1 5 3 1 Supported plato MSc italia 1 5 3 2 Installing the software development package ooooccccionccccccccnocccccononanancnnnn 1 5 3 3 Compiling and linking your program men nea ana ana 1 5 3 4 Opening the application terminal window nenea neam 1 5 3 5 Transfering the executable file to the board RAM nenea 1 5 3 6 Remote debugging your program nenea nana nana 1 6 Using the TSC695 VHDL Model nenea nenea 1 9 Where to 00 from here nennen 1 11 TSC695 Evaluation Kit Getting Started Guide i 7831A AERO 04 09 ii AIMEL TSC695 Evaluation Kit Getting Started Guide 7831A AERO 04 09 1 1 1 2 TSC695 Evaluation Kit Contents CD ROM Contents Section 1 Getting Started The TSC695 starter kit contains the following parts
11. ext loading data starting mon rdbmon v1 1 In the DDD command window perform the following steps gdb set remotebaud 19200 gdb target erc32 dev ttyb Remote debugging using dev ttyb 0x2000000 in gdb load Loading section text size Ox69a0 vma 0x2000000 Loading section data size 0x530 vma 0x20069a0 gdb run You are now ready for a remote debugging session The following figure shows a ses sion example AIMEL TSC695 Evaluation Kit Getting Started Guide ERC32CCS Software Package File Edit View Program Commands Status Source Data 0 GPIDATR f Lookup Find Break Watch Print Plot sas eee na sp el a an o m o J10 GPIDATR 11 GPICNFR printfC s n Set GPICO and clear GPI 7 GPIDATR GPIDATR 0x00000001 GPIDATR GPIDATR 0x00000080 for i 7000000 i gt 0 i printfC s n Clear GPICO and set GPI 7 GPIDATR GPIDATR 0x00000001 GPIDATR GPIDATR 0x00000080 forci 7000000 i gt 0 i 3 while C kbhit_X 03 Dump of assembler code from 0x2001630 to 0x2001730 0x2001630 lt main 144 gt or i0 0x3c0 04 0x2001634 lt main 148 gt ld 03 00 0x2001638 lt main 152 gt or 00 1 00 0x200163c lt main 156 gt st 00 03 Cgdb graph undisplay 3 gdb graph undisplay 1 gdb graph display GPIDATR tach graph display GPICNFR gdb i A Display 10 GPIDATR enabled scope 0810 TSC69
12. l iz RS232C serial null modem DB9 male female adapters 2 2 Connecting the Connect the board to a 5V 2A DC power supply as follows Power Supply y28 Cto VCC J20 C to GND 5V 2A DC eo oo J28 J20 TSC695 Evaluation Kit 2 4 AIMEL TSC695 Evaluation Kit Getting Started Guide 7831A AERO 04 09 ERC32CCS Software Package Section 3 ERC32CCS Software Package 3 1 Supported The Software Package is available from erc32ccs folder of the starter kit CD ROM Platforms ERC32CCS is a set of tools supporting two host platforms SPARC Solaris 2 5 1 or higher x86 linux libc5 Further information is provided in erc32ccs 2 0 7 pdf document supplied in erc32 doc directory of erc32ccs 2 0 7 linux tar gz package 3 2 Installing the The ERC32CCS directory tree is compiled to reside in opt gnu on Solaris platforms If Software the installation directory is not opt gnu then you will have to create a link to the location Development of the ERC32CCS directory after installation Package for 1 Copy the erc32ccs 2 0 6 solaris tar gz file from the CDROM to your disk Solaris 2 Uncompress and extract the tar file 3 On your platform create the link Solaris1 gt cd opt gnu Solaris1 gt In s lt install_dir gt erc32ccs 2 0 6 solaris erc32 4 Add opt gnu erc32 bin to your search path 3 3 Compiling and Compile and link your application program as follows Linking
13. mail providing the following requester s data First name Last name Company name Email address Starter kit name or reference The hotlines adresses are available from URL http www atmel com products radhard The following hardware must be provided by the user to have a complete working con figuration A SUN or PC machine with 2 available serial ports USB RS232C dongles can be used on PC platforms to get additionnal COM ports A5V DC power supply capable of supplying at least a current of 1A To get the software running on the TSC695 evaluation board you will need to follow the steps below detailed in the next paragraphs 1 Connect the evaluation board serial connectors A and B to the host machine serial ports Connect the evaluation board to the DC power supply Install the software development package from the CDROM on your machine Compile and link your program Transfer your program executable file to the evaluation board RAM Debug Run your program on board with GDB and its graphical user interface DDD PALE ANIEL TSC695 Evaluation Kit Getting Started Guide Hardware Installation Section 2 Hardware Installation 2 1 Connecting the The evaluation board provides two serial ports Serial Links Serial A port is used by the application running on the evaluation board to establish a full duplex connection and output data to the host Serial B port enables RDBMON the on board monitor
14. nal win dow and a DDD one Reset the board with the S1 RESET switch The terminal window should display ERC32 boot loader v1 1 watchdog clock 3 7 Mhz Baudrate 19200 baud Prom 512K 4 ws ram 4069 K 2 banks 00 ws r w edac enabled parity enabled write protect 0x023f9000 Ox023fadcO initialising ram memory loading text loading data starting mon rdbmon v1 1 AIMEL TSC695 Evaluation Kit Getting Started Guide TSC695 HyperTerminal ERC32 boot loader v1 1 watchdog clock 4 ws parity write protect watchdog enabled 0x023f9000 OxO23fadcB enabled initialising ram loading text loading data starting mon rdbmon v1 1 Hello World LECCS Software Packages In the DDD command window perform the following steps gdb set remotebaud 19200 gdb target erc32 dev ttyb Remote debugging using dev ttyb 0x2000000 in gdb load Loading section text size 0x69a0 vma 0x2000000 Loading section data size 0x530 vma 0x20069a0 gdb cont You are now ready for a remote debugging session The following figure shows a session example 3 7 MHz baud rate 19200 baud prom 512 K 4096 K 2 banks 0 0 ws r w edac enabled memory bug reports to Jiri Gaisler ESA jgais ws estec esa nl Connected 0 15 20 Auto detect 19200 8 N 1 TSC695 Evaluation Kit Getting Started Guide AIMEL 4 11 7831A AERO 04 09 LECCS Software Packages
15. oration 2003 All rights reserved Atmel and combinations thereof aaa bbb and ccc are the registered trademarks and aaa bbb and ccc are the trademarks of Atmel Corporation or its subsidiaries aaa bbb and ccc are the registered trademarks and aaa bbb and ccc are the trademarks of xxxx Company Other terms and product names may be the trademarks of others 3 Printed on recycled paper 7831A AERO 04 09 xM 2 ANIEL TSC695 Evaluation Kit Getting Started Guide 7831A AERO 04 09
16. your Program Solaris1 gt sparc rtems gcc g 03 application c o application 3 4 Opening the You must open a terminal window on the Solaris platform so that your application can Application display results You do this with the command Terminal Window Solaris1 gt xterm e tip 19200 dev ttya amp 3 5 Transfering the You may load and debug your application through GDB only but working with GDB Executable File through DDD is much more easier to the Board To start DDD with the debugger use RAM Solaris1 gt ddd debugger sparc rtems gdb no data window attach source win dow lt your_application gt TSC695 Evaluation Kit Getting Started Guide AIMEL 3 5 7831A AERO 04 09 ERC32CCS Software Package 3 6 Remotely Debugging your Program 3 6 7831A AERO 04 09 A script dddx is provided to start DDD in this configuration Use dddx as follows Solaris1 gt dddx lt your_application gt You may also type dddx only and then specify the application to be loaded with the DDD File gt Open Program command You should now have two windows opened to debug your application a terminal win dow and a DDD one Reset the board with the S1 RESET switch The terminal window should display ERC32 boot loader v1 1 watchdog clock 3 7 Mhz Baudrate 19200 baud Prom 512K 4 ws ram 4069 K 2 banks 00 ws r w edac enabled parity enabled write protect 0x023f9000 Ox023fadcO initialising ram memory loading t

Download Pdf Manuals

image

Related Search

Related Contents

llp_18th_history_tokushima  Garantía Bombas de Agua  Laughtop™ Ordinateur Malin  SN65DSI86/SN65DSI96 EVM User`s Manual    ECOsine™ Active Harmonics compensation in real-time  GSED 3.0 User's Manual (April 2010)  Saeco Syntia Super-automatic espresso machine HD8836/19  

Copyright © All rights reserved.
Failed to retrieve file