Hi
i’m using Nucleo board F401RE.
i want to access to ETM with code, without debug kit.
i'm using IAR workbench.
My code:
Access ETM of Nucleo F401RE without using a debug kit
i’m using Nucleo board F401RE.
i want to access to ETM with code, without debug kit.
i'm using IAR workbench.
My code:
Code (C):
- #define ETM_CR 0xE0041000 // Address of ETM_CR
- #define ETM_LAR 0xE0041FB0 // Address of ETM_LAR
- #define UNLOCK 0xC5ACCE55 // Value to unlock the ETM
- int main (void)
- {
- unsigned int *pointer_1 = (unsigned int *) ETM_LAR; // The pointer_1 will point to the address contained in the variable ETM_LAR
- pointer_1 = UNLOCK; // Cheque UNLOCK to the contents of the...