2023-05-18 04:32 AM
I'm working with SR6P7G7C7 and I would like to start CoreSight trace from MCU without external tools. I configured Core0 ETM and TMC ETR, but trace doesn't start. I assume the problem is in TnDCM_CR register, I am not able to set HOST_DEBUG_EN. I use the key like below:
#define TnDCM_CR (*(volatile uint32_t*)(0x7100c000))
TnDCM_CR = 0xE0E05FE0;
TnDCM_CR = 0x10000000;
but it doesn't change the value in register.
Solved! Go to Solution.
2023-05-26 09:17 AM
Ok, I got it.
Then maybe you can help me to understand, why the trace is not recorded in RAM region, where I expect to see it?
With External Debugger the Trace is working and I see it in RAM, but without I don't see it, the value is always 0x0.
Here is current TMC ETR and ETM configuration, which I se with my application on Core0;
ETR_AXICTL
ADDRESS:0x7c109110
DATA:0xf00
ETR_DBALO
ADDRESS:0x7c109118
DATA:0x64022000
ETR_RSZ
ADDRESS:0x7c109004
DATA:0x2000
ETR_CTL
ADDRESS:0x7c109020
DATA:0x1
ETM_TRCPRGCTLR
ADDRESS:0x7ec40004
DATA:0x1
ETM_TRCCONFIGR
ADDRESS:0x7ec40010
DATA:0x31fc7
ETM_TRCSTALLCTLR
ADDRESS:0x7ec4002c
DATA:0x0
ETM_TRCSTATR
ADDRESS:0x7ec4000c
DATA:0x0
ETM_TRCOSLSR
ADDRESS:0x7ec40304
DATA:0x8
ETM_TRCLSR
ADDRESS:0x7ec40fb4
DATA:0x1
ETM_TRCPDSR
ADDRESS:0x7ec40314
DATA:0x1
TnDCM_SR
ADDRESS:0x7100c008
DATA:0x311303