Actions

EmSys

Hardware And Software Setup

From EdWiki

Revision as of 08:52, 29 February 2020 by Jshankar (Talk | contribs) (Created page with "__NOTOC__ == Hardware And Software Setup == <ul class="tabs" data-tab> <li class="tab-title active"><a href="#hwswpanel1">Toolchain Setup</a></li> <li class="tab-title"><a...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hardware And Software Setup

Code Composer Studio

Code Composer Studio includes a Linaro distribution of the ARM GNU compiler, so programmers have the option of using this GCC Compiler instead of the TI compiler to build their projects.

Objective

The objective of this lab exercise is to download and install Code Composer Studio, as well as download the various other support documents and software to be used with this course. These development tools will be used throughout the remaining lab exercises in this course.

CCS v9 - Hardware Requirements

Memory Recommended
Memory 2GB 6GB
Disk Space 900MB 2GB average (1 or 2 device families) 3.5GB all features
Processor 1.0GHz x86 compatible processor Dual core x86 compatible processor
Table: CCS v9 - Hardware Requirements


  • Disk space listed depends on features selected during installation. 900MB is for a bare minimal installation. Does not include temporary space required by the installer.
  • Note that the most important requirement is memory. At least 4GB of memory or more is highly recommended.

CCS v9 - Operating System Requirements

  1. Windows
    Windows 7 (SP1 or later), Windows 8.x and Windows 10
  2. Ubuntu 18.04 LTS
    update system and Install dependent libraries
sudo apt-get update
sudo apt-get install libc6-i386 libusb-0.1-4 libgconf-2-4 build-essential

Tiva C Series EK-TM4C123GXL LaunchPad Boad

Tiva C Series EK-TM4C123GXL Evaluation Kit

Description

The TM4C123G LaunchPad Evaluation Kit is a low-cost evaluation platform for ARM Cortex-M4F based microcontrollers from Texas Instruments. The design of the TM4C123G LaunchPad highlights the TM4C123GH6PM microcontroller with a USB 2.0 device interface and hibernation module.

The EK-TM4C123GXL also features programmable user buttons and an RGB LED for custom applications. The stackable headers of the TM4C123G LaunchPad BoosterPack™ XL Interface make it easy and simple to expand the functionality of the TM4C123G LaunchPad when interfacing to other peripherals with Texas Instruments MCU BoosterPack.

Features

The ARM Cortex-M4F Based MCU TM4C123G LaunchPad Evaluation Kit (EK-TM4C123GXL) offers these features:

  • High Performance TM4C123GH6PM MCU:
    1. 80MHz 32-bit ARM Cortex-M4F CPU
    2. 256KB Flash, 32KB SRAM, 2KB EEPROM
    3. Two Controller Area Network (CAN) modules
    4. Dual 12-bit 2MSPS ADCs, motion control PWMs
    5. 8 UART, 6 I2C, 4 SPI
  • On-board In-Circuit Debug Interface (ICDI)
  • USB Micro-B plug to USB-A plug cable
  • Preloaded RGB quick-start application
  • Tiva C Series TM4C123G LaunchPad -- Readme First

Tiva C Series TM4C123G LaunchPad Evaluation Board

Ek-tm4c12gxl-board.png

Switch and LED interface

Switch and LED interfaces
  • PC0-PC3 is used for JTAG connections to the debugger on the LaunchPad.
  • The LaunchPad connects PB6 to PD0, and PB7 to PD1.
  • If you wish to use both PB6 and PD0 you will need to remove the R9 resistor.
  • Similarly, to use both PB7 and PD1 remove the R10 resistor


GPIO Pin Pin Function USB Device
PF4 GPIO SW1
PF0 GPIO SW2
PF1 GPIO RGB LED (RED)
PF2 GPIO RGB LED (BLUE)
PF3 GPIO RGB LED (GREEN)
PC0 TCK/SWCLK ICDI
PC1 TMS/SWDIO ICDI
PC2 TDI ICDI
PC3 TDO/SWO ICDI
PA0 U0RX Virtual COM P0rt (RxD)
PA1 U0TX Virtual COM Port (TxD)
Table: EK-TM4c123GXl LaunchPad - Switches, LEDs and Virtual COM Port

Interface connectors

Ek tm123gxl launchpad headers.png


Pin J1 J3 J4 J2
1 3.3V 5V PF2 GND
2 PB5 GND PF3 PB2
3 PB0 PD0 PB3 PE0
4 PB1 PD1 PC4 PF0
5 PE4 PD2 PC5 RESET
6 PE5 PD3 PC6 PB7
7 PB4 PE1 PC7 PB6
8 PA5 PE2 PD6 PA4
9 PA6 PE3 PD7 PA3
10 PA7 PF1 PF4 PA2

References

  1. Tiva C Series TM4C123G LaunchPad -- Readme First
  2. Tiva C Series TM4C123G LaunchPad Evaluation Kit -- User's Manual
  3. TM4C123GH6PM Microcontroller -- Data Sheet

EduARM4 Trainer Board - A Tiva launchpad base board for academia

  • The Tiva Launchpad can be mounted directly on the trainer.
  • All signals needed from Tiva's headers to the trainer I/O female headers are connected.


EduARM4-Board.png

EduARM4-Tiva-Board.png


EduARM4 And Tiva Board Connections

Below are the connections:

Tiva Signals Tiva Header Pin NUmber EduARM4 Board Connections
PA4
J2 - 8
7-Seg Digit-A
PA5
J1 - 8
7-Seg Digit-B
PA6
J1 - 9
7-Seg Digit-C, DS1307+ SCL, LCD - RS
PA7
J1 - 10
7-Seg Digit-D, DS1307+ SDA, LCD - E
PB0
J1 - 3
7-Seg-A, LCD - D0
PB1
J1 - 4
7-Seg-B, LCD - D1
PB2
J2 - 2
7-Seg-C, LCD - D2
PB3
J4 - 3
7-Seg-D, LCD - D3
PB4
J1 - 7
7-Seg-E, LCD - D4
PB5
J1 - 2
7-Seg-F, LCD - D5
PB6
J2 - 7
7-Seg-G, LCD - D6
PB7
J2 - 6
7-Seg-DP, LCD - D7
PC4
J4 - 4
4X4 KEYPAD COL-0
PC5
J4 - 5
4X4 kEYPAD COL-1
PC6
J4 - 6
4X4 KEYPAD COL-2
PC7
J4 - 7
4X4 KEYPAD COL-3
PD0
J3 - 3
LTC1661CN8(DAC) - SCK
PD3
J3 - 6
LTC1661CN8(DAC) - DIN
PE0
J2 - 3
4X4 KEYPAD ROW-0
PE1
J3 - 7
4X4 KEYPAD ROW-1
PE2
J3 - 8
4X4 KEYPAD ROW-2, LM35 - Vout
PE3
J3 - 9
4X4 KEYPAD ROW-3, ADC INPUT
PF2
J4 - 1
LTC1661CN (DAC) - CS/LD

EduARM4 Board Jumper Selection

EduARM4 Board Jumper Selection

EduARM4 Board Interface Experiments

  1. 4x4 Keypad Interface
  2. 7-Segment LED Interface
  3. 16x2 LCD Interface
  4. On-Chip ADC Programming
  5. SPI Protocol and DAC Interfacing
  6. I2C and RTC Interfacing
  7. Interfacing LM35 Sensor

EduARM4 Board Schematic

EduARM4 Board Schematic
</p>
 </div>
   <p>

Hardware Setup

Kit Contents

You should find the following in your box:

Connecting the board

Tm4c123gxl board setup.png
Tiva™ C Series TM4C123G LaunchPad

The TM4C123GXL LaunchPad Board ICDI USB port (marked DEBUG and shown in the picture below) is a composite USB port and consists of three connections:

  • Stellaris ICDI JTAG/SWD Interface - debugger connection
  • Stellaris ICDI DFU Device - firmware update connection
  • Stellaris Virtual Serial Port - a serial data connection


Using the included USB cable,

  • connect the USB emulation connector on your evaluation board (marked DEBUG) to a free USB port on your PC.
    A PC’s USB port is capable of sourcing up to 500 mA for each attached device, which is sufficient for the evaluation board.
    If connecting the board through a USB hub, it must be a powered hub.
  • The drivers should install automatically.


LaunchPad


Make sure that the power switch in the upper left hand corner of your board is in the right-hand DEBUG position as shown:



Start

  • Switch the POWER SELECT switch to the right for DEBUG mode.
  • Connect the USB-A cable plug to an available port on the PC and the Micro-B plug to the Debug USB port on the Board.
  • Verify that the POWER LED D4 on the board is lit.</p>
</div>