cancel
Showing results for 
Search instead for 
Did you mean: 

Why I can't set HOST_DEBUG_EN in TnDCM CR register on SR6P7G7C7? I use key 0xE0E05FE0 to unlock it, but bit doesn't change the value. External debugger is not connected.

Oleksandr_Gonchar
Associate II

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.

10 REPLIES 10

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