
iMX RT1052 OEM Developer’s Kit - User’s Guide
Page 24
Copyright 2018 © Embedded Artists AB
connector where SWO in defined to be connected). Instead pin GPIO_B0_13-
BOOT_CFG2[1]-LCDIF_D9 carries the SWO output as pin multiplexing alternative 2.
If you need to use SWO trace, the solution is to connect TP15 (JTAG_TDO) and TP83
(GPIO_B0_13-BOOT_CFG2[1]-LCDIF_D9) with a wire. See Figure 16 to locate these two
access pads.
Also, the SWO pin must be initialized correctly in file:
pin_mux.c
Add the define below and add the call to
IOMUXC_SetPinMux()
and
IOMUXC_SetPinConfig()
in function
BOARD_InitPins()
, as outlined below.
#define IOMUXC_GPIO_B0_13_SWO 0x401F8170U, 0x2U, 0, 0, 0x401F8360U
void BOARD_InitPins(void) {
...
/* GPIO_B0_13 is configured as SWO (ALT2)
Sw Input On Field: Input Path is determined by functionality */
IOMUXC_SetPinMux(
IOMUXC_GPIO_B0_13_SWO,
0U);
/* GPIO_B0_13 PAD functional properties :
Slew Rate Field: Fast Slew Rate
Drive Strength Field: R0/6
Speed Field: max(200MHz)
Open Drain Enable Field: Open Drain Disabled
Pull / Keep Enable Field: Pull/Keeper Enabled
Pull / Keep Select Field: Keeper
Pull Up / Down Config. Field: 100K Ohm Pull Down
Hyst. Enable Field: Hysteresis Disabled */
IOMUXC_SetPinConfig(
IOMUXC_GPIO_B0_13_SWO,
0x10F1u);
...
}