Texas Instruments TMS470R1x manual These variables are set up in the registry under

Page 24

Setting Up the Code Generation Environment

2.3 Setting Up the Code Generation Environment

Before or after you install the code generation tools, you can define environ- ment variables that set certain software tool parameters you normally use. An environment variable is a special system symbol that you define and assign to a string. A program uses this symbol to find or obtain certain types of in- formation.

When you use environment variables, default values are set, making each individual invocation of the tools simpler because these parameters are auto- matically specified. When you invoke a tool, you can use command-line options to override many of the defaults that are set with environment vari- ables.

The code generation tools use the following environment variables:

-A_DIR

-C_DIR

-C_OPTION

-TMP

By default, the installation program modifies your autoexec.bat file and sets up these environment variables:

set PATH=c:\tool_dir;%PATH% set A_DIR=c:\tool_dir

set C_DIR=c:\tool_dir

These variables are set up in the registry under:

HKEY_CURRENT_USER\Environment

If you choose not to have the environment variables set up automatically, you can set them up yourself in one of the following ways:

-If you are running Windows 95, you can modify your autoexec.bat file to include the set commands above.

-If you are running Windows NT, you can set up the environment variables in the System applet of the Control Panel. Enter the same commands that you would enter on the command line in the System applet.

In addition to setting up environment variables, you must modify your path statement. The following subsections describe how to modify your path state- ment and how to define the environment variables that the code generation tools use.

2-4

Image 24
Contents Getting Started Guide SPNU117B TMS470R1x Code Generation Tools Getting Started Guide Important Notice About This Manual Notational ConventionsRelated Documentation From Texas Instruments Set PATH=c\tooldir%PATH%SET CDIR=pathname1 pathname2 Trademarks If You Need Assistance North America, South America, Central AmericaContents Setting Up the Code Generation Tools With SunOS Defines terms and acronyms used in this book Page Setting Up the Code Generation Tools With DOS or Windows Hardware checklist Software checklistSystem Requirements Installing the Code Generation Tools Installing the tools on DOS systemsInstalling the tools on Windows 3.1x systems InstallSetting Up the Code Generation Environment Adir Cdir Coption TMP\tooldir Set ADIR=pathname1 pathname2Setting default shell options Coption TMS470R1x Assembly Language Tools Users GuideSet COPTION=±qs ±z Resetting defined environment variables Specifying a temporary file directory TMPVerifying that the environment variables are set Where to Go From Here Performance ConsiderationsChapter TMS470R1x Code Generation Tools \setup.exe These variables are set up in the registry under \tooldir Set COPTION=option1 option2 Set variablename= Set ADIR=Where to Go From Here Setting Up the Code Generation Tools With SunOS Disk space Boot ±r Mounting the CD-ROMMount ±rt hsfs /dev/sr0 /cdrom exit Cd /cdrom/sunos Mount ±rF hsfs /dev/sr0 /cdrom exit Cd /cdrom/cdrom0/sunosCopying the files Unmounting the CD-ROMUmount /cdrom eject /dev/sr0 exit Cd ejectSetting Up the Code Generation Environment Yourpathname /tooldir Set path=/yourpathname /tooldir $pathSetenv Adir ºpathname1 pathname2 . . .º ADIR=ºpathname1 pathname2 . . .º export AdirSetenv Cdir ªpathname1 pathname2 . . .º CDIR=ªpathname1 pathname2 . . .º export CdirSetenv Coption º±qs ±zº Reinitializing your shell Setenv TMP º/tempºTMP=º/tempº export TMP Source ~/.cshrcTo verify that the environment variables are set, enter Setting Up the Code Generation Tools on an HP Workstation An HP 9000 Series 700 PA-RISC computer Mount ±rt cdfs /dev/dsk/yourcdromdevice /cdrom exit Cd /cdrom/hpSetting up the software tools using a C shell Setting up the software tools using a Korn shellPATH=tooldir$PATH Umount /cdrom exitSetting Up the Code Generation Environment Identifying alternate directories for the assembler Adir Setenv Adir ºpathname1 pathname2 … ºADIR=ºpathname1 pathname2 … º export Adir Identifying alternate directories for the compiler Cdir Setenv Cdir ªpathname1 pathname2 . . .ºSpecifying a temporary file directory TMP Unsetenv variable name Where to Go From Here Getting Started With Code Generation Tools Getting Started With the Assembler and Linker Example 5±2. file2.asmGetting Started With the Code Generation Tools Example 5±4. Output Map File, lnker2.map Example 5±5. Sample Linker Command File, linker2.cmd Entry Point Symbol Memory Configuration Getting Started With the C Compiler Cl470 ±o ±mt funtionCl470 ±o ±k function Cl470 ±s function ±z lnk32.cmd ±o function.out Release Notes Media Contents ±2. Media Contents for PCs Release Enhancements General enhancementsAssembler enhancements Compiler enhancements Page Troubleshooting DOS Systems Troubleshooting in the Protected-Mode Environment Error Messages PMINFO32.EXE programTable A±1. Pminfo Fields Kernel Error Messages Action Recopy the file from the source mediaAction Make more memory available and try again Action Reinstall and run the tools on a 386 or later PC Action Contact technical supportExecution Action Rerun the program and/or restart your computerCause this error Memory is available to non-Windows programs. Under OS/2Increase the Dpmimemorylimit in the DOS box set TingsDOS/4G Error Messages Action Free some memory for the DOS/4G applicationAction Make sure that the filename was spelled correctly DOS/4G Error Messages Glossary Glossary Glossary B-3 Page Index Index MS-DOS Pminfo Setup.exe For DOS systems For Windows 3.1x systems Windows 95/NT systems Index-6 Important Notice

TMS470R1x specifications

The Texas Instruments TMS470R1x series is an advanced family of microcontrollers designed for automotive and industrial applications, renowned for their robust performance, flexibility, and reliable functionality. Built on a 32-bit RISC architecture, this series provides a powerful computing platform, tailored for embedded control systems.

One of the standout features of the TMS470R1x is its high-performance processing capabilities. Operating at clock speeds of up to 120 MHz, these microcontrollers can handle complex calculations and control algorithms efficiently. The TMS470R1x also incorporates a rich set of peripherals, including timers, pulse width modulation (PWM) modules, and communication interfaces like CAN, SPI, and UART. This versatility makes the series suitable for a wide range of applications, from automotive engine control units to industrial automation systems.

Incorporating advanced memory options, the TMS470R1x features Flash memory sizes ranging from 128 KB to 512 KB, along with RAM ranging from 20 KB to 64 KB. This ample memory is crucial for storing firmware and handling multiple data streams in real time. The microcontrollers also support in-system programming, allowing for easy updates and code modifications during the product lifecycle.

The TMS470R1x series is designed with safety in mind. It adheres to ISO 26262 standards, ensuring high levels of functional safety necessary for automotive systems. Features such as redundancy, error correction, and built-in safety mechanisms ensure operations remain reliable even in fault conditions.

Another important characteristic of the TMS470R1x is its low power consumption, making it ideal for battery-operated devices and equipment. The series employs various power management techniques, including low-power sleep modes, enabling manufacturers to optimize their systems without sacrificing performance.

The integrated Debug and Trace capabilities of the TMS470R1x facilitate effective development and troubleshooting. Engineers can debug their applications in real time, significantly reducing time-to-market and enhancing overall product quality.

In summary, the Texas Instruments TMS470R1x microcontroller series offers a powerful and versatile platform for complex automotive and industrial applications. With its high processing speed, extensive memory options, compliance with safety standards, low power consumption, and robust debugging capabilities, the TMS470R1x is a reliable choice for developers seeking to create innovative and efficient embedded systems. These features combine to position the TMS470R1x series as a leading choice in the expanding field of advanced microcontrollers.