Category Archives: Getting Started With OMAP-L138 LCDK

Getting Started with the OMAP L-138

In this tutorial we will walk through the process of getting started with your OMAP L-138 out of the box and the book Real‐ Time Digital Signal Processing from MATLAB to C with the TMS320C6x DSPs, 2nd Edition (Welch, Wright, and Morrow; CRC 2012).

This book provides a valuable material for the understanding of the OMAP Digital Signal Processor (DSP) and has several examples of both Matlab and C code to implement DSP algorithms. In a further tutorial, we will walk you through the Code Composer Studio (CCS), which is the Texas Instruments’ integrated development environment (IDE) for developing routines on a wide variety of their DSPs. Now, all we want to do is to get your board ready to go and ready to process some digital signals.

To get started with your board, follow these steps:

  1. Unpack the OMAP LCDK. The SD card that comes in the box can be ignored — it contains a Linux OS distribution for use with other applications, not with the WWM book. You can also ignore the Quick Start Guide. Choose the correct power supply connector for your location and snap it into place on the power supply brick. Do not connect power to the LCDK yet. You will also need an XDS100v2 emulator pod (a very small board, sold separately), in addition to the LCDK. Unpack it also.

    XDS100v2 emulator attached to the OMAP DSP (click to enlarge)
    XDS100v2 emulator attached to the OMAP DSP (click to enlarge)
  2. Place the WWM textbook CD in your CD/DVD drive and follow the instructions given by the self‐ installer. The authors of the book recommend that you install all the files; the required disk space is modest.
  3. There is a website where the authors of this book provide updated files. It is a neat source for the latest software updates. After running the CD that comes with the book and installing all the files, please check the book’s website for new updates.
  4. After the WWM textbook CD files and any new files from the web site have been installed, you should have a directory called pc‐apps, and in that directory is a subdirectory called reflashing_OMAPL138_for_winDSK8. Note that this is NOT for the OMAP‐L138 LCDK, but for another board (the Logic PD Zoom Experimenters Kit). Instead, you need to follow the reflashing instructions for the LCDK; this enables use of the winDSK8 application and increases the stability of the LCDK board. For this project, we will use the winDSK8 application in many stages of implementation. Reflashing your OMAP is, therefore, the first step and you should not ignore it.
      1. Note: you need to know the PC’s COM port number for the port to which you have attached the OMAP‐L138 LCDK in order to correctly execute the command to reflash the board. The port number is dependent upon your installation. If you aren’t sure what it is, it can be found several ways, for example by selecting “Devices and Printers” in Windows 7 and looking for the entry for the USB port to which the LCDK is connected. Alternatively, you can start up winDSK8 even before you have reflashed the LCDK (with the LCDK connected directly to your PC via the USB connector J3), and on the main winDSK8 GUI screen, on the right side, you’ll see the choices for COM Port. Click the down arrow for the “COM Port:” list. Typically the highest number listed in the winDSK8 COM port choices is the port the LCDK is using. You may need to click on “Rescan COM Ports” if you’ve changed something since starting winDSK8.
      2. According to the authors, many users have found that the reflashed OMAP‐L138 LCDK is more stable even when running C programs using Code Composer Studio (CCS), so we encourage you to reflash the board before using CCS. This avoids potential issues with Linux kernel conflicts that appear to exist if you do not reflash the board.
      3. We recommend you run winDSK8 at this time, and at least click on the “Get BoardVersion” button, to be sure everything is working properly. When finished with winDSK8 for now, disconnect the LCDK’s USB connector J3 from the PC’s USB port.
  5. Install Code Composer Studio (CCS) software development environment from Texas Instruments. Do not connect the OMAP‐L138 LCDK to the PC (via the small XDS100 emulator pod) until after this installation, or the correct drivers may not be found. A newer version of the CCS may be available online.
      1. Note that a full installation of CCS supports many Texas Instruments processor types. If you choose a custom installation to reduce the disk space requirements, the choice for “Processor Support” depends on what you plan to use with CCS. If you will only use one of the OMAP‐L138 boards (e.g., the LCDK or the Experimenter Kit), you can choose just “OMAP.” If you will also use the C6713 DSK, then also select “C6000 Single Core DSPs.” Similarly, for “Components,” you probably don’t need the C5500 and C5400 compiler tools, if you are trying to conserve disk space.
      2. After CCS is installed, verify that the LCDK board DIP switch SW1 is set with switch 1 OFF and switches 2, 3, 4 and 8 are ON. If you look closely, the switch positions are labeled.
      3. Remove the power connector from the LCDK if you haven’t already. Connect the XDS100v2 emulator pod to the LCDK (either directly or with the short ribbon cable supplied with the XDS100v2 board) using the 14‐pin header J6 on the LCDK. Note the header connection is keyed so that it can only be connected to the pod in the correct orientation. Connect the USB port on the XDS100v2 emulator pod to a USB port on your PC, and the correct drivers should now be found automatically. There is no need to turn the power on to the LCDK for this to occur; the USB port will be recognized.
  6. You are now ready to power up the LCDK again and use both winDSK8 and CCS with the OMAP‐ L138 LCDK, in conjunction with the WWM text. 

 

Important notes:

  •  If you wish to use winDSK8, be sure that switch SW1 switch 8 is set to ON (and SW1 switches 6 and 7 to the setting for your desired UART port speed; we suggest both switches ON). In this mode of operation, you communicate between your host PC and the OMAP‐L138 LCDK using the J3 UART USB connector on the LCDK.
  • If you want to use CCS and run compiled C programs, you also want to be sure that switch SW1 switch 8 is set to ON, except for the one situation described in the next bulleted item. When using CCS, you communicate between your host PC and the OMAP‐L138 LCDK via the XDS100v2 emulator pod’s USB connector. In this mode of operation, SW1 switches 6 and 7 settings can be read by a user program if desired. If this is your first time using CCS with the LCDK, we highly recommend you now turn to the Appendix A tutorial written for the LCDK and your version of CCS, as found on the www.rt‐dsp.com web site. This short document guides you through selecting the license options, creating a simple CCS