How to enable ETM In LPC5460X

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable ETM In LPC5460X

904 Views
PK_1114
Contributor II

Hai,

 

I have the Ulink Pro debugger, I need to see execution profile using ETM in LPC1769 it is working fine while coming to the LPC54606 and LPC54608 hardware it is not working and showing no synchronization error. If possible please provide the test code for it.

Thank You,

B Pavan Kumar 

Labels (1)
0 Kudos
Reply
4 Replies

847 Views
PK_1114
Contributor II

Hi

we try the above initializations and also initialization files also but it is not working.

PK_1114_0-1701175113442.png

Thank You,

B Pavan Kumar

0 Kudos
Reply

867 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As you know that the ETM requires dedicated device and dedicated tools, we have not tested ETM module for LPC546xx.

But we have tested the ETM module based on i.mxrt10xx, this is the link including the *.pdf and software.

The LPC546xx has TRACEx pin, supports ETM.

https://www.nxp.com/search?keyword=an12877&start=0

https://www.nxp.com.cn/docs/en/application-note/AN12877.pdf

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply

864 Views
PK_1114
Contributor II
Hi,
We already terminate the ETM Trace Pins (TraceCLK, Trace Data0, Trace Data1, Trace Data2, Trace Data 3) in Debugger Connector and we are using Ulink Pro Debugger for tracing and Keil UV5. But it is not working.

Thank You,
B Pavan Kumar
0 Kudos
Reply

859 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that your own code includes the pin assignment and the trace clock divider.

For example,the  PIO1_0 is assigned as Traceclk with func 5, for detail, pls refer to section Table 256. Type D I/O Control registers: FUNC values and pin functions in  UM10912.pdf

 

in pin_mux.c, add the code:

#defineIOCON_PIO_FUNC5

CLOCK_EnableClock(kCLOCK_Iocon);

const uint32_t port1_pin0_config = (
IOCON_PIO_FUNC5 |
/* No addition pin function */
IOCON_PIO_MODE_INACT |
/* Input function is not inverted */
IOCON_PIO_INV_DI |
/* Enables digital function */
IOCON_PIO_DIGITAL_EN |
/* Input filter disabled */
IOCON_PIO_INPFILT_OFF |
/* Standard mode, output slew rate control is enabled */
IOCON_PIO_SLEW_STANDARD |
/* Open drain is disabled */
IOCON_PIO_OPENDRAIN_DI);
/* PORT1 PIN0 (coords: B13) is configured as traceclk*/
IOCON_PinMuxSet(IOCON, 1U, 0U, port1_pin0_config);

//set the trace clock divider

 CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 10U, false);

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply