Table of Contents

Advertisement

Quick Links

nanoMODUL-164
QuickStart Instructions
Using PHYTEC FlashTools for Windows and the Keil µVision2
Software Evaluation Development Tool Chain
Note: The PHYTEC Spectrum CD includes the electronic version of
the English nanoMODUL-164 Hardware Manual
Edition: May 2003
A product of a PHYTEC Technology Holding company

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the nanoModul-164 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Phytec nanoModul-164

  • Page 1 QuickStart Instructions Using PHYTEC FlashTools for Windows and the Keil µVision2 Software Evaluation Development Tool Chain Note: The PHYTEC Spectrum CD includes the electronic version of the English nanoMODUL-164 Hardware Manual Edition: May 2003 A product of a PHYTEC Technology Holding company...
  • Page 2 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. PHYTEC Meßtechnik GmbH reserves the right to alter the information contained herein without prior notification and accepts no responsibility for any damages which might result.
  • Page 3: Table Of Contents

    1.4 The PHYTEC nanoMODUL-164..........3 1.5 The µVision2 Software Evaluation Development Tool Chain..6 Getting Started..................9 2.1 Installing Rapid Development Kit Software.........9 2.2 Interfacing the nanoMODUL-164 to a host-PC ......16 2.3 Downloading Example Code............18 2.3.1 Starting PHYTEC FlashTools for DOS ......18 2.3.2 Downloading Example Code with FlashTools for DOS ................20...
  • Page 4 In Line Assembler ............75 4.6 Single Stepping................76 4.6.1 Memory Window............77 4.6.2 Watch Window.............. 78 4.7 Resetting Simulator and the nanoMODUL-164......79 Advanced User Information............. 81 5.1 FlashTools .................. 81 5.1.1 FlashTools for DOS ............81 5.1.2 FlashTools for Windows ..........82 5.2 Start164.a66................
  • Page 5: Introduction To The Rapid Development Kit

    Introduction 1 Introduction to the Rapid Development Kit This tutorial provides: • general information on the PHYTEC nanoMODUL-164 Single Board Computer • an overview of Keil’s µVision2 software evaluation development tool chain, and • instructions on how to run example programs on the nanoMODUL-164, mounted on the PHYTEC Development Board, in conjunction with µVision2.
  • Page 6: Overview Of This Quickstart Instruction

    1.3 System Requirements Use of this ‘Rapid Development Kit’ requires: • the PHYTEC nanoMODUL-164, • the PHYTEC Development Board with the included DB-9 serial cable and AC adapter supplying 8-12 V / min. 500 mA., • the PHYTEC Spectrum CD, •...
  • Page 7: The Phytec Nanomodul-164

    PHYTEC FlashTools for Windows enable easy on-board download of user code to the external Flash device. The nanoMODUL-164 is fitted with one RS-232 transceiver, an I²C RTC and a CAN-bus interface. All controller signals and ports extend to pin rows aligning two edges of the board. These pins provide a 16- bit bi-directional I/O port and 64 free port lines, including 8 analog inputs with 10-bit resolution.
  • Page 8: Phytec Meßtechnik Gmbh 2003 L-379E

    • requires only +5V/300 mA power source in a temperature range of 0 to 70 degree C The PHYTEC Development Board, in EURO-card dimensions (160 x 100 mm.) is completely equipped with all mechanical and electrical components necessary for the speedy and secure insertion and subsequent programming of the PHYTEC nanoMODUL series Single Board Computer.
  • Page 9 • DB-9 connector (configured as an RS-232 interface) • second DB-9 interface for CAN • VG96-connector • simple jumper configuration • wire wrap field (64 x 69 mm) supporting development of user- designed peripheral hardware © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 10: The Μvision2 Software Evaluation Development Tool Chain

    OMF166 debugging specification. The Keil OH166 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 the Flash on the PHYTEC nanoMODUL-164 target board. µVision2 consists of the following executables: • C Compiler c166.exe...
  • Page 11 µVision2 contains a software simulator supporting debugging either via software on a host-PC or in target hardware. When operated in conjunction with the Keil Monitor resident in target hardware, µVision2 enable the following debugging functions: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 12 There are no other than these restrictions, the tool set works exactly as the full version does. This allows you to completely evaluate the features and power of Keil products on the PHYTEC target board. The full version has no restrictions and is completely ANSI compliant.
  • Page 13: Getting Started

    PC to the external Flash-Memory using FlashTools 2.1 Installing Rapid Development Kit Software When inserting 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 14 If you decide to individually choose different paths and/or drives you must consider this for all further file and path statements. We recommend that you accept the default destination location. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 15 All Kit-specific content will be installed to a Kit-specific subdirectory of the Rapid Development Kit root directory that you have specified at the beginning of the installation process. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 16 QuickStart Instructions All software and tools for this nanoMODUL-164 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.
  • Page 17 Depending on the Rapid Development Kit software you have selected, the applicable Keil µVision2 Evaluation Development tool chain will be installed to your hard-drive. Additional software, such as Adobe Acrobat Reader, will also be offered for installation. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 18 In the following windows you can decide to install FlashTools for Windows Beta Version and the Acrobat Reader. For better performance, you can use the DOS Flashtools which have already been installed. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 19 Getting Started Press Finish to complete the installation and decide if you want to begin the Quickstart Instruction immediately. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 20: Interfacing The Nanomodul-164 To A Host-Pc

    QuickStart Instructions 2.2 Interfacing the nanoMODUL-164 to a host-PC Connecting the nanoMODUL-164, mounted on the PHYTEC Development Board, to your computer is simple: • If the nanoMODUL is not already pre-installed, mount it pins- down onto the Development Board’s receptacle footprint (X3) as shown in the Figure below.
  • Page 21: Figure 2: Suitable Development Board Jumper Settings

    Boot (S2) switch. This sequence of pressing and releasing the Reset (S1) and Boot (S2) switches renders the nanoMODUL-164 into the Bootstrap mode. FlashTools for Windows must always be operated in this mode. See section 5.1.1 for more details. Ensure that the terminal program flasht.exe is always invoked only after first resetting the board.
  • Page 22: Downloading Example Code

    SBC to a host-PC enables the software portion of FlashTools to recognize and communicate with the firmware portion. If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash you must use the three files from the subdirectory FlashtMx in the Flasht directory.
  • Page 23 Development Kit|nanoMODUL-164 program group. We always recommend to use the installed icons. If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash use the icons FlashTools Max (COM1) or FlashTools Max (COM2). • You can also start FlashTools by running the executable from within a DOS box by typing flasht br(9600) x.
  • Page 24: Downloading Example Code With Flashtools For Dos

    Which icon to choose depends on the serial port used to connect to the target system. If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash use the icons FlashTools Max (COM1) or FlashTools Max (COM2).
  • Page 25 • After FlashTools has loaded, the main menu appears on the screen. At the FlashTools main menu you will see commands for the following: Flash Status information shows sector and address ranges in Flash memory: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 26 QuickStart Instructions Erase entire Flash-area enables erasure of the unprotected sectors of the whole user addressable Flash: Erase partial Flash-area enables erasure of user specified sectors of memory by entering a memory address range: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 27 Getting Started Load INTEL-hexfile downloads specified hexfiles to the target hardware: Software-Reset forces a software-reset of the microcontroller, resulting in execution of the Flash memory content: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 28 Flash, loading of a hexfile and a subsequent software-reset that executes the contents of the Flash memory. Return to the main FlashTools menu to run an example program as described in the next section. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 29: Hello

    FlashTools window as it transmits via the RS-232 connection from the host to the on-board Flash: If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash use the Demo file at the default location C:\PHYBasic\nM164\Demos\Keil\Hello\HelloMx\hello.h86).
  • Page 30 • From within the main menu press function key <F1>. Select ‘Y’ to exit the FlashTools. Monitoring the execution of the QuickStart demo requires use of a terminal program, such as the HyperTerminal program included within Windows. • Start HyperTerminal program within Windows Programs|Accessories bar: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 31 “COM1 Direct” and advances you to the next HyperTerminal window. • The “New Connections Properties” window will now appear. Specify Direct to COM1 under the Connect Using combobox (be sure to indicate the correct COM setting for your system). © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 32 = 8; Parity = None; Stop Bits = 1; Flow Control = None. • Selecting advances “COM1 Direct – HyperTerminal” monitoring window. Notice the connection status report in the bottom lower corner of the window. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 33 • Successful execution will send the character string "Hello World" from the target hardware to the HyperTerminal window. • Click the disconnect icon If no output appears in the HyperTerminal window check the power supply, the COM parameters and the RS-232 connection. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 34: Blinky

    QuickStart Instructions The demo application within the file hello.h86 initializes the serial port of your nanoMODUL-164 to 9600 baud. The initialization values are based on the assumption that the microcontroller runs at a 20 MHz internal clock frequency. Please note that the nanoMODUL-164 is populated with an oscillator with a frequency of just 5 MHz.
  • Page 35 Enter the correct drive and path to the demo file and press <Enter> (default location C:\PHYBasic\nM164\Demos\Keil\Blinky\blinky.h86). If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash use the Demo file at the default location C:\PHYBasic\nM164\Demos\Keil\Blinky\BlinkyMx\BlinkyMx.h86).
  • Page 36: Downloading Example Code With Flashtools For Windows

    2.3.3 Downloading Example Code with FlashTools for Windows • Start FlashTools for Windows by double-clicking on the FlashTools for Windows icon or by selecting FlashTools for Windows from within the Programs|PHYTEC FlashTools for Windows program group. • The Connect tab of the FlashTools for Windows Worksheet window will now appear.
  • Page 37 In this case, try other baud rates to establish a connection. Before further connection attempts, be sure to reset the target hardware and render it into Bootstrap mode as described in section 2.2. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 38 After the data transfer you will see FlashTools for Windows Worksheet window with the following tabs. Flash Information shows sector and address ranges in Flash- Memory: File Download downloads specified hexfiles to the target hardware: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 39 Getting Started Protected Areas Information shows protected areas of Flash- Memory: Sector Utilities allow erasure of individual sectors of Flash-Memory: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 40 QuickStart Instructions Communication Setup provides you with the possibility to disconnect the target and reconnect with an equal one. Programming of several targets is possible for you thereby. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 41: Hello

    Type in the correct drive and path to the nanoMODUL-164 Demo directory (default location C:\PHYBasic\nM164\Demos\Keil\Hello\hello.h86) click Open. • Click on the Download button. You can watch the status of the download of the hello.h86 into external Flash-Memory in the Download window. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 42 HyperTerminal program included within Windows. • Start HyperTerminal program within Windows Programs|Accessories bar. • The HyperTerminal main window will now appear: • Double-click on the HyperTerminal icon ‘Hyperterm’ to create a new HyperTerminal session. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 43 “COM1 Direct” and advances you to the next HyperTerminal window. • The “New Connections Properties” window will now appear. Specify Direct to COM1 under the Connect Using combobox (be sure to indicate the correct COM setting for your system). © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 44 = 8; Parity = None; Stop Bits = 1; Flow Control = None. • Selecting advances “COM1 Direct – HyperTerminal” monitoring window. Notice the connection status report in the bottom lower corner of the window. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 45 COM parameters and the RS-232 connection. The demo application within the file hello.h86 initializes the serial port of your nanoMODUL-164 to 9600 baud. The initialization values are based on the assumption that the microcontroller runs at a 20 MHz internal clock frequency.
  • Page 46: Blinky

    • Next choose the File Download tab and click on the File Open button • Type the complete pathway and name of the file you wish to download C:\PHYBasic\nM164\Demos\Keil\Blinky\blinky.h86 directory (default location) © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 47 • Successful execution of the program will flash the LED with equal on and off durations You have now successfully downloaded and executed two pre- existing example programs in *.h86-file format. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 48 QuickStart Instructions © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 49: Getting More Involved

    2.1. You can also manually install µVision2 by executing setup.exe from within the \Software\Keil\Ek166 directory of your PHYTEC Spectrum CD. Start the tool chain by selecting µVision2 from within the Programs program group.
  • Page 50: Creating A New Project And Adding An Existing Source File

    • Open the Project menu and choose New Project. This opens a standard Windows dialog that asks you for the new project file name. • Change to the project directory created by the installation procedure (default location C:\PHYBasic\nM164\Demos\Keil\Blinky2). © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 51 • Now use from the menu Project|Select Device for Target and double click on Siemens as manufacturer for the CPU. The nanoMODUL-164 is equipped with a C164 CPU. Choose this controller type from the list as shown below. This selection sets...
  • Page 52 User. • Click with the right mouse key in the Project Window to open a local menu. Choose the options Targets, Groups, Files..© PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 53 • Select the tab Groups / Add Files and type the new group name System Files in the Group to Add: section. • Click on Add and then on OK. • Your project file structure should now look like this: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 54 The option Add Files to Group ‘User’ opens the standard files dialog. • Select the file Blinky2.c. • Choosing Add adds the Blinky2.c file to your current project window. • Close the window. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 55 At this point you have created a project called blinky2.uv2 and added an existing C source file called blinky2.c and an existing assembler file called start164.a66. Next you modify the C source before building your project. This includes compiling, linking, locating and creating the hexfile. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 56: Modifying The Source Code

    P8_0 = 1; /* output to LED port for (i=0; i< 75000 ; i++) { /* delay for 150000 counts wait (); /* call wait function This will change the on/off ratio of the blinky program. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 57: Saving The Modifications

    Enter the changes as indicated below and leave all other options set to their default values. µVision2 allows you to set various options with mouse clicks and these are all saved in your project file. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 58 Open the Project|Options for Target ‘NM164’ menu and type the settings for the External Memory as shown below. Make sure that #1 is set to ROM. If you have a nanoModul-164 with 1 MB SRAM or 1 MB use the following settings for the External Memory: - 0x3FFF 0x100000 - 0x3FFF ©...
  • Page 59 Getting more Involved To configure the Output options: • Select the Output tab and activate the Create HEX-File option. With this option a INTEL *.HEX file will be created for download. • Click on OK © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 60: Building The Project

    .h86 as file name extension (in this case blinky2.h86). • If a list of errors appears, use the editor to correct them in the source code and save the file and repeat this section. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 61: Downloading The Output File

    Which icon to choose depends on the serial port used to connect to the target system. If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash use the icon´s FlashTools Max (COM1) or FlashTools Max (COM2).
  • Page 62 Blinky2 hexfile (default location C:\PHYBasic\nM164\Demos\Keil\Blinky2\blinky2.h86) download immediately starts. You can watch the process of the download in the FlashTools window as code transmits via the RS- 232 connection from the host-PC to the on-board Flash: © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 63 • If the modified hexfile properly downloads and executes, the LED should now flash in a different mode with different on and off durations. You have now modified source code, recompiled the code, created a modified download hexfile, and successfully executed this modified code. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 64: Downloading With Flashtools For Windows

    Click on the Download button and view the download procedure to the board in the status window • Returning to the Communication tab, click on the Disconnect button • Press the Reset button (S1) on the Development Board. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 65: Hello

    • Add hello2.c and start164.a66 from within the project directory to the project hello2.uv2. • Save the project At this point you have created a project called hello2.uv2 consisting of a C source file called hello2.c and an assembler file called start164.a66. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 66: Modifying The Example Source

    Start: 0x0 Size: 0x3FFF RAM: Start: 0x80000 Size: 0x3FFF If you have a nanoModul-164 with 1 MB SRAM or 1 MB use the following external memory spaces: - 0x3FFF 0x100000 - 0x3FFF • Modify the default options for the output file by selecting the...
  • Page 67: Building The New Project

    • If there are no errors, the code is assembled and linked and the executable code is ready to be downloaded to the board. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 68: Downloading The Output File

    Choose the icon that corresponds to the serial port used on your host-PC to connect to the target system. If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash use the icon´s FlashTools Max (COM1) or FlashTools Max (COM2).
  • Page 69 Flash memory. Then repeat the download procedure. • After the download is finished, FlashTools will return to the main menu automatically • Press function key <F1> and select ‘Y’ to confirm that you wish to exit FlashTools © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 70: Downloading Withflashtools For Windows

    • Click on the Download button and view the download procedure to the board in the status window • Returning to the Communication tab, click on the Disconnect button • Exit the FlashTools for Windows. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 71: Starting The Terminal Emulation Program

    • Resetting the Development Board (at S1) will execute the hello2.h86 file loaded into the Flash. • Successful execution will send the modified character string ‘PHYTEC...Stick it in!’ to the HyperTerminal window. • Click the Disconnection icon • Close the HyperTerminal program...
  • Page 72 QuickStart Instructions © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 73: Debugging

    • Use Advance GDI drivers, like Keil Monitor 166 interface. With the Advanced GDI interface you may connect the environment directly to emulators, OCDS debugging systems or the Keil Monitor program. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 74: Loading The Example File

    4.1 Loading the Example File Within the default location C:\PHYBasic\mM164\Demos\Keil\Debug you will find an already build project called Debug. • Close all possible open projects and open the project Debug.uv2 with the option Project | open Project. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 75: Preparing The Debugger

    • Please select the check-boxes near: Use: Keil Monitor –166 Driver and Load Aplication at Startup in the Project|Options for Target ‘nM164’|Debug dialog. • Click on the Settings button in the upper right corner of the Options for Target ´nM164´ window. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 76 Description section on the right side. If you have a nanoModul-164 with 1 MB SRAM or 1 MB select Phytec nM164 1MB from the Monitor Configuration listbox. • Select the right COM-Port in the PC Port Settings.
  • Page 77: Preparing The Target Hardware To Communicate With The Debugger

    • If a problem occurs during the data transfer you will see the following window: • You could now restart your nM164 as described in section 4.3 and press Try Again or choose Settings.. and make sure, that the right COM-port is selected. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 78 • Click once on StepInto! . You will see the assembly code of the initialization routine. DISWDT (disable watchdog) is the first instruction. EINIT (E8H) signals the end of the initialization routine of the CPU. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 79: Using The Keil Μvision2 Debug Features

    • Double click in line 48 to set a breakpoint. • Click on RUN a few times. This will continue the endless loop until program execution stops at the breakpoint. See how the value of bigcount changes with each RUN. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 80: Single Stepping

    • With the cursor on line 42 click on StepInto until you enter the function stepout(). Note that you must click on StepInto 10 times to exit the for loop within the function stepout(). © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 81: Memory Window

    • Set a breakpoint at line 47 (count++). Note that as you press Run, the contents of the memory changes as the structure values are incremented at lines 42 through 45. Remove the breakpoint at line 47 with a double mouse click. • Close the Memory Window. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 82: Watch Window

    WatchWindow #1. Till first is a structure with the members x and y the Watch Window shows a + symbol left from first. Click on + to see the structure members x and y. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 83: Resetting Simulator And The Nanomodul-164

    ‘infinite loop‘ in which your program might be stuck. With reset, you start again at address 0. • The PHYTEC Development Board does not have a hardware NMI button. A NMI is the most reliable way to stop a running program.
  • Page 84 QuickStart Instructions © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 85: Advanced User Information

    Programming tools for the Flash device are delivered with the nanoMODUL-164 in the form a set of executable and binary files to run under DOS. This tools make use of the Bootstrap mode to transfer executable code to the nanoMODUL-164 that, in turn, download user code into the Flash.
  • Page 86: Flashtools For Windows

    QuickStart Instructions If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash the memory model is different: RAM from 0x000000 to 0x0FFFFF, ROM from 0x1000000 to 0x1F7FFF). Using the Bootstrap mode to transfer the required microcontroller firmware to the nanoMODUL-164 the FlashTools maintains its independent Flash programming capability.
  • Page 87: Start164.A66

    Advanced User Information If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash the Memory-Model is different: RAM from 0x000000 to 0x0FFFFF, ROM from 0x1000000 to 0x1F7FFF). Using the Bootstrap mode to transfer the required microcontroller firmware to the nanoMODUL-164 the FlashTools maintains its independent Flash programming capability.
  • Page 88: Linking And Locating

    Von-Neumann architecture which uses the same read signal to fetch data and also code or constants. To distinguish between non-volatile and modifiable memory physically different memory devices must be addressable within different address ranges. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 89 It is required that all xDATA and xDATA0 classes segments are located to any internal RAM of the C164 or any external RAM of the nanoMODUL-164. Also all xCODE and xCONST classes must be located to any internal non-volatile memory (e.g. Flash, OTPROM) of the C164 or any external Flash-Memory of the nanoMODUL-164.
  • Page 90: Debugging Using Monitor Kernel

    This typically leads to variables containing not their assigned value, functions returning bad results and modified code. If you have a nanoModul-164 with 1 MB SRAM or 1 MB Flash use the files from the default location: C:\PHYBasic\nM164\Tools\Mon\MonMx To obtain information about the memory requirements of the Monitor, the corresponding memory map file monitor.m66 is made available...
  • Page 91 Flash bank 1 and RAM bank 1. Remember that you will have multiple additional mirrors of the physical devices actually mounted on the nanoMODUL-164 if their capacity is less than the maximum value of 1 MB. For instance if you have 256 kByte of RAM mounted on the nanoMODUL-164 you will have one additional mirror of the RAM within the reserved 512 kByte range.
  • Page 92 QuickStart Instructions © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 93: Appendices

    The serial FIFO buffer in Windows 95 can cause transmission problems. µVison2 debugger may have problems completing the communication initialization process. This can be intermittent. The FIFO disabled under Controlpanel|System|Device Manager|Port Settings|Advanced. Make sure Use FIFO buffers in this menu is not activated. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 94: A.ii Monitor Configuration Error

    If this happens, make sure that you have selected the right target hardware under Options for Target|Debug|Settings|Monitor configuration. This step is crucial to ensure proper communication between the target hardware and debug environment. © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 95 How would you improve this manual? Did you find any mistakes in this manual? page Submitted by: Customer number: Name: Company: Address: Return to: PHYTEC Technologie Holding AG Postfach 100403 D-55135 Mainz, Germany Fax : +49 (6131) 9221-33 © PHYTEC Meßtechnik GmbH 2003 L-379e_4...
  • Page 96 Published by © PHYTEC Meßtechnik GmbH 2003 Ordering No. L-379e_4 Printed in Germany...

Table of Contents