Page 1
QuickStart Instructions Using PHYTEC FlashTools 16W and the Tasking C166/ST10 Embedded Development Environment (EDE) evaluation version Note: The PHYTEC Spectrum CD includes the electronic version of the English phyCORE-167 Hardware Manual Hinweis: Die PHYTEC Spectrum CD beinhaltet die elektronische Version des deutschen phyCORE-167 Hardware Manuals...
Page 2
The information in this document has been carefully checked and is believed to be entirely reliable. However, PHYTEC Meßtechnik GmbH assumes no responsibi- lity for any inaccuracies. PHYTEC Meßtechnik GmbH neither gives any guarantee nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product.
1.4 The PHYTEC phyCORE-167............4 1.5 The Tasking C166/ST10 Embedded Development Environment (EDE)....................7 Getting Started...................11 2.1 Installing Rapid Development Kit Software.......11 2.2 Interfacing the phyCORE-167 on the Development Board to a Host-PC..................18 2.3 Downloading Example Code with FlashTools 16W ....20 2.3.1 “Hello”................25 2.3.2...
Page 4
Memory Window............54 4.5.2 Stack Window ............... 55 4.5.3 Simulated I/O ..............55 4.6 Resetting CrossView Pro and the phyCORE-167 ...... 56 Advanced User Information............. 57 5.1 FlashTools 16W................57 5.2 Start.asm ..................58 5.3 Linking and Locating ..............59 5.4 Debugging using Monitor Kernel..........
Introduction 1 Introduction to the Rapid Development Kit This tutorial provides: • general information on the PHYTEC phyCORE-167 Single Board Computer, • an overview of Tasking C166/ST10 Embedded Development Environment (EDE) evaluation version, and • instructions on how to run example programs on the phyCORE-167, mounted on a PHYTEC Development Board, in conjunction with Tasking software tools.
200-pin Molex SMT pin header connectors (pin width is 0.635 mm./25mil) lining the circuit board edges. This enables the phyCORE-167 to be plugged like a “big chip” into target hardware. The standard board runs at a 20 MHz internal clock speed (delivering 100 ns instruction cycle.) and offers 256 kByte (up to 1 MB) SRAM...
Tasking a.out format. The IHEX166 Object-to-Hex converter converts an absolute object file into an Intel-hexfile that is suitable for programming into an EPROM device or downloading into external Flash on the PHYTEC phyCORE-167 target board. The Tasking software tool chain consists of the following executables: •...
Page 13
The evaluation version does not have a starting address res- triction and produces useful object code. This allows you to fully evaluate the features and power of Tasking products on a PHYTEC target board. The full version has no restrictions and is fully ANSI compliant.
Flash memory using FlashTools 2.1 Installing Rapid Development Kit Software When you insert the PHYTEC Spectrum CD into the CD-ROM drive of your host-PC, the PHYTEC Spectrum CD should automatically launch a setup program that installs the software required for the Rapid Development Kit as specified by the user.
Page 18
QuickStart Instructions All software and tools for this phyCORE-167 Kit will be installed to the \PHYBasic directory on your hard-drive. In the next dialog you must choose whether to copy the selected documentation as *.pdf-files to your hard-drive or to install a link to the doc.
QuickStart Instructions 2.2 Interfacing the phyCORE-167 on the Development Board to a Host-PC Connecting phyCORE-167, mounted PHYTEC Development Board, to your computer is simple: • As shown in the figure below, if the phyCORE is not already pre- installed, mount it pins-down onto the Development Board’s interior receptacle footprint (X6).
Development Board to a host-PC and power supply. After executing a Reset and rendering the board in Bootstrap mode, you are now ready to program the phyCORE-167 on the Development Board. This phyCORE/Development Board combination shall also be referred to as “target hardware”.
QuickStart Instructions 2.3 Downloading Example Code with FlashTools 16W Start FlashTools 16W by double-clicking on the FlashTools 16W icon or by selecting FlashTools 16W from within the Programs|PHYTEC program group. • The Connect tab of the FlashTools 16W Worksheet window will now appear.
Page 33
COM parameters and the RS-232 connection. The demo application within the file hello.hex initializes the serial port of your phyCORE-167 to 9600 baud. The initialization values are based on the assumption that the microcontroller runs at a 20 MHz internal clock frequency.
• Resetting the Development Board (at S2) will execute the hello2.hex file loaded into the Flash. • Successful execution will send the modified character string "PHYTEC... Stick It In!" to the HyperTerminal window. • Click the Disconnect icon • Close the HyperTerminal program...
Almost all registers, including the system stack pointer and program counter are initialized. • The PHYTEC Development Board does not have a hardware NMI button. A NMI is the most reliable way to stop a running program. This is even more important when you are using the Bootstrap version of the Monitor because it is difficult to re-synchronize CrossView Pro and the monitor program.
Flash. Additionally, the re-programmable Flash device on the phyCORE-167 enables easy update of user code and the target application in which the phyCORE-167 has been implemented.
EDE according to the settings in EDE|CPU Options. Most important in combination with the phyCORE-167 is the correct Chip Select (CS) setup via the Buscon and Addrsel registers. Because the startup code is modified by macro preprocessor defines it is not necessary to copy the start.asm file (located in \lib\src folder)
User’s Guide in section 3.2.2, “Section Allocation”. It is required that all RAM data sections are located to any internal RAM of the C167 or to any external RAM of the phyCORE-167. All ROM code and –data sections must also be located to any internal non-volatile memory (e.g.
Page 64
For instance if you adjust Chip Select Signal /CS1 to be active within an address range of 1 MB and the actually memory size populating the phyCORE-167 is just 256 kByte, you will get three mirrors of your RAM. We recommend that you generate a *.map map file for your project and inspect the memory map information within this file.
Need help?
Do you have a question about the phyCORE-167 and is the answer not in the manual?
Questions and answers