i.MX6 Trace Clock

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX6 Trace Clock

579 次查看
bcody
Contributor I

I've been having some difficulty dialing in the trace clock on the i.MX 6 DL. I believe it is attached to the ahb_clk_root (pg 782 of the RM) but there is no talk of a divider. Given the 792 MHz core clock (and two cores!) you need a fairly substantial clock to get data out without losing it to fifo full errors, especially since there's not guarantee of a 32-bit wide trace bus. However it seems like something has divided the clock to be half the frequency of the ahb. The trace clock is half-rate, so with the default ahb clock rate (132 MHz), the half-frequency trace clock (66 MHz) is sampling at 132 MHz. This is not nearly enough to keep up with the processor.

So two questions:
1) Is it possible to increase the trace clock rate to match the AHB, or is there any independent control?

2) Is it possible to suspend the cores when trace falls behind to reduce or eliminate data loss?

 

Thank you.

 

0 项奖励
回复
1 回复

549 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Brian

 

unfortunately answers are "no" for both questions.  Trace clocks are derived directly from

the AHB clock. There is no ability to change the trace clock frequencies other than changing

the AHB clock frequency, which will have multiple side effects in the system. So essentially,
no you cannot change the Trace clock frequency.

Usually it is recommended to use the ETB. In this mode you don't need to
configure ETM, IO pins and you don't need even special trace hardware: standard
JTAG signals are used. The trace is collected via JTAG. The disadvantage in this mode
is that the trace is not collected in real time and the maximal size of trace buffer is 4K.

 

Best regards
igor

0 项奖励
回复