Page 1 of 1

How to activate ETM on M48x ?

Posted: 29 Aug 2018, 07:19
by kojima
Dear staffs,

Finally, I could obtain a Nuvoton's new great MCU chip M48x and its evaluation boards.
One of the most exciting new features is ETM, which had not been found on the other Nuvoton's Cortex-M MCUs.
To evaluate this feature very quickly, I got NuMaker-ETM-M487, on which ETM-connector is already mounted on the board.

Anyway, how can I activate and utilize it with may Keil MDK ARM + UlinkPro(ICE with ETM feature) ?

I've been searching for technical information about that thru NuMaker-ETM-M487 User manual(Rev.1.00) and Technical Reference Manual for M480 serise (Rev.1.01). But, no helpful information....

Even in Technical Reference manual, the only thing I could find was corresponding block called "ETMC" is placed near "SWDC".
Another interresting feature (just by name, now) is that DMA can be triggered by "ETMC_RX" as #65th request source.

Does anyone have helpful information about those?

Thanks,

Re: How to activate ETM on M48x ?

Posted: 15 Feb 2019, 16:07
by Dylan Hsieh
Hi,

To enable the ETM trace function, you need to add some code to switch the pin's multi-function to ETM trace pin at the initial state:
/* Setup ETM Pin Usage
- PE.8: DAT3
- PE.9: DAT2
- PE.10: DAT1
- PE.11: DAT0
- PE.12: CLK */


SYS->GPE_MFPH &= ~(SYS_GPE_MFPH_PE8MFP_Msk | SYS_GPE_MFPH_PE9MFP_Msk | SYS_GPE_MFPH_PE10MFP_Msk | SYS_GPE_MFPH_PE11MFP_Msk | SYS_GPE_MFPH_PE12MFP_Msk);

SYS->GPE_MFPH |= (SYS_GPE_MFPH_PE8MFP_TRACE_DATA3 | SYS_GPE_MFPH_PE9MFP_TRACE_DATA2 | SYS_GPE_MFPH_PE10MFP_TRACE_DATA1 | SYS_GPE_MFPH_PE11MFP_TRACE_DATA0 | SYS_GPE_MFPH_PE12MFP_TRACE_CLK);
Thanks

How to activate ETM on M48x

Posted: 18 Aug 2019, 04:00
by Fanniehit
Can somebody explain to me how to link the picture from another post for the nomination. I copied the flickr link for ATs nomination and got the link and not the picture.
Certainly you dont have to save it and reinsert it.

____
XEvil 4.0: NEW the best program for solving any CAPTCHA, including Google ReCaptcha-2