
iMX RT1062 OEM Developer’s Kit - User’s Guide
Page 24
Copyright 2019 © Embedded Artists AB
Note about SWO trace:
Note that the i.MX RT1062 MCU does not connect the SWO trace output signal on
JTAG_TDO, which would be the normal (since JTAG_TDO connect to the Cortex debug
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 position 2-3 of SJ2. Alternatively
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);
...
}
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from