Setting Up the Code Generation Environment

Identifying alternate directories for the compiler (C_DIR)

The compiler uses the C_DIR environment variable to name alternate direc- tories that contain #include files and libraries. To set the C_DIR environment variable, use this syntax:

-For C shells:

setenv C_DIR ªpathname1 [;pathname2 . . .]º

-For Bourne or Korn shells:

C_DIR=ªpathname1 [;pathname2 . . .]º export C_DIR

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

The pathnames are directories that contain #include files or libraries (such as stdio.h). You can separate pathnames with a semicolon or with blanks. In C source, you can use the #include directive without specifying path information. Instead, you can specify the path information with C_DIR.

Setting default shell options (C_OPTION)

You may find it useful to set the compiler, assembler, and linker shell default options using the C_OPTION environment variable. If you do this, the shell uses the default options and/or input filenames that you name with C_OPTION every time you run the shell.

Setting up default options with the C_OPTION environment variable is useful when you want to run the shell consecutive times with the same set of options and/or input files. After the shell reads the command line and the input file- names, it reads the C_OPTION environment variable and processes it.

The set the C_OPTION environment variable, use this syntax:

-For C shells:

setenv C_OPTION ºoption1 [option2 . . .]º

-For Bourne or Korn shells:

C_OPTION=ºoption1 [option2 . . .]º export C_OPTION

(Be sure to enclose the options within quotes.)

Setting Up the Code Generation Tools on an HP Workstation

4-7

Page 45
Image 45
Texas Instruments TMS470R1x manual Identifying alternate directories for the compiler Cdir

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.