Setting Up the Code Generation Environment

Identifying the directory that contains the executable files (path statement)

You must include the tool_dir directory in your path statement so that you can specify the assembler and compiler tools without specifying the name of the directory that contains the executable files.

-If you modify your .cshrc file (for C shells) or .profile file (for Bourne or Korn shells) to change the path information, add the following to the end of the path statement:

/your_pathname /tool_dir

-If you set the path statement from the command line, use this format:

J For C shells:

set path=(/your_pathname /tool_dir $path)

J For Bourne or Korn shells: PATH=/your_pathname /tool_dir $PATH

The addition of $path or $PATH ensures that this path statement does not undo the path statements in the .cshrc or .profile file.

Identifying alternate directories for the assembler (A_DIR)

The assembler uses the A_DIR environment variable to name alternative directories for the assembler to search. To set the A_DIR environment vari- able, use this syntax:

-For C shells:

setenv A_DIR ºpathname1 [;pathname2 ]º

-For Bourne or Korn shells:

A_DIR=ºpathname1 [;pathname2 ]º export A_DIR

(Be sure to enclose the directory names within quotes.)

The pathnames are directories that contain copy/include files or macro librar- ies. You can separate the pathnames with a semicolon or a blank. Once you set A_DIR, you can use the .copy, .include, or .mlib directive in assembly source without specifying path information.

If the assembler does not find the file in the directory that contains the current source file or in directories named by the ±i option (which names alternate directories), it searches the paths named by the A_DIR environment variable. For more information on the ±i option, see the TMS470R1x Assembly Language Tools User's Guide or the TMS470R1x Optimizing C Compiler User's Guide.

4-6

Page 44
Image 44
Texas Instruments TMS470R1x Identifying alternate directories for the assembler Adir, Setenv Adir ºpathname1 pathname2 … º

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.