Trace disabled on STM32MP157A-DK1?
I am trying to record instruction traces on-chip via ETF on a stm32mp157a-dk1 board, but the data read from FIFO through RRD is always 0. During the debugging process, I found the value of ETM_AUTHSTAT is 0x08, which means non-secure non-invasive debug disabled.
...
uint32_t ret;
void __iomem *vaddr = ioremap(ETM_AUTHSTAT, 4);
ret = __raw_readl(vaddr);
iounmap(vaddr);
...
After that, I tried to read DBG_AUTHSTAT and BSEC_DENABLE respectively:
[10725.551984] Check some registers......
[10725.555600] BSEC_DENABLE:047F
[10725.565686] DBG_AUTHSTAT:00FFIt seems all debug signals are 1.
So what I want to confirm is whether the trace function is disabled on my board? Is it because stm32mp1 supports the Security Extensions?
