| ||||||||
Technical Support Support Resources Product Information | µVISION DEBUGGER: DISPLAY TMS470 PERIPHERALSInformation in this article applies to:
QUESTIONIs there a way to display the peripherals the peripherals of the TMS470 devices. It appears that the Target DLL is not yet available. ANSWERYes 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 ALSOLast Reviewed: Friday, February 22, 2008 | |||||||
| ||||||||