Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4923

Access ETM of Nucleo F401RE without using a debug kit

$
0
0
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:
Code (C):
  1.  
  2. #define ETM_CR 0xE0041000 // Address of ETM_CR
  3. #define ETM_LAR 0xE0041FB0 // Address of ETM_LAR
  4. #define UNLOCK 0xC5ACCE55 // Value to unlock the ETM
  5.  
  6. int main (void)
  7. {
  8.  
  9. unsigned int *pointer_1 = (unsigned int *) ETM_LAR; // The pointer_1 will point to the address contained in the variable ETM_LAR
  10.  
  11. pointer_1 = UNLOCK; // Cheque UNLOCK to the contents of the...
Access ETM of Nucleo F401RE without using a debug kit

Viewing all articles
Browse latest Browse all 4923

Trending Articles