Keil Logo

µVISION DEBUGGER: DISPLAY TMS470 PERIPHERALS

Information in this article applies to:

  • MDK-ARM Version 3 or higher
  • TI TMS470 Devices

QUESTION

Is there a way to display the peripherals the peripherals of the TMS470 devices. It appears that the Target DLL is not yet available.

ANSWER

Yes you may add the following module (name the source file Peripherals.c) to your project. The module defines struct pointers that you can display in the Watch window of µVision to show the on-chip peripherals of the TMS470 device.

#include <TMS470R1.h>          // TMS470R1 definitions
#pragma Ono_remove_unused_constdata

static const volatile regSM_t *         SM = pSM;
static const volatile regIEM_t *       IEM = pIEM;
static const volatile regMSM_t *       MSM = pMSM1;
static const volatile regMSM_t *      MSM2 = pMSM2;
static const volatile regHET_t *       HET = pHET;
static const volatile regSPI_t *      SPI1 = pSPI1;
static const volatile regSCI_t *      SCI3 = pSCI3;
static const volatile regSCI_t *      SCI2 = pSCI2;
static const volatile regSCI_t *      SCI1 = pSCI1;
static const volatile regMIBADC_t * MIBADC = pMIBADC;
static const volatile regECP_t *       ECP = pECP;
static const volatile regGIO_t *       GIO = pGIO;
static const volatile regEBM_t *       EBM = pEBM;
static const volatile regI2C_t *      I2C4 = pI2C4;
static const volatile regI2C_t *      I2C3 = pI2C3;
static const volatile regI2C_t *      I2C2 = pI2C2;
static const volatile regI2C_t *      I2C1 = pI2C1;
static const volatile regI2C_t *      I2C5 = pI2C5;
static const volatile regSPI_t *      SPI2 = pSPI2;
static const volatile regC2SIB_t *   C2SIB = pC2SIB;
static const volatile regFM_t *         FM = pFM;
static const volatile regMPU_t *       MPU = pMPU;
       const volatile int   ___peripherals = 0;

In addition you must enter under Project - Options for Target - Linker under Misc COntrols: --keep peripherals.o so that the linker does not remove the unused symbols.

When you use in µVision View - Symbol Window you may drag and drop the peripheral symbols to a Watch window which allows you then to display the peripheral symbols.

MORE INFORMATION

SEE ALSO

Last Reviewed: Friday, February 22, 2008


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.