ARM Technical Support Knowledge Articles

DISPLAY TMS470 PERIPHERALS

Applies to: uVision Debugger

Answer

Information in this article applies to:


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 uVision 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 uVision 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

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2008-02-22 02:46:23

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential