Skip to content

Commit e0c3418

Browse files
author
Jan Kamidra
committed
TPI to TPIU fix
1 parent ff148f9 commit e0c3418

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hal/source/mbed_itm_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ void mbed_itm_init(void)
4444
ITM->LAR = ITM_ENABLE_WRITE;
4545

4646
/* Trace Port Interface Selected Pin Protocol Register. */
47-
TPI->SPPR = (SWO_NRZ << TPI_SPPR_TXMODE_Pos);
47+
TPIU->SPPR = (SWO_NRZ << TPIU_SPPR_TXMODE_Pos);
4848

4949
/* Trace Port Interface Formatter and Flush Control Register */
50-
TPI->FFCR = (1 << TPI_FFCR_TrigIn_Pos);
50+
TPIU->FFCR = (1 << TPIU_FFCR_TrigIn_Pos);
5151

5252
/* Data Watchpoint and Trace Control Register */
5353
DWT->CTRL = (1 << DWT_CTRL_CYCTAP_Pos) |
@@ -61,7 +61,7 @@ void mbed_itm_init(void)
6161
ITM->TPR = 0x0;
6262

6363
/* Trace Control Register */
64-
ITM->TCR = (1 << ITM_TCR_TraceBusID_Pos) |
64+
ITM->TCR = (1 << ITM_TCR_TRACEBUSID_Pos) |
6565
(1 << ITM_TCR_DWTENA_Pos) |
6666
(1 << ITM_TCR_SYNCENA_Pos) |
6767
(1 << ITM_TCR_ITMENA_Pos);

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52832/device/system_nrf52.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ void SystemInit(void)
237237
(GPIO_PIN_CNF_DIR_Output << GPIO_PIN_CNF_DIR_Pos);
238238

239239
/* set prescaler */
240-
TPI->ACPR = 0;
240+
TPIU->ACPR = 0;
241241
#endif
242242
}
243243

0 commit comments

Comments
 (0)