Hi @Peier ,
About the different channel, in fact, in the previous time, I test it on the RT1170, to the RT106X is the same, you also can refer to it.
This is my related information for the RT1170, you also can refer to it:
pinmux.c BOARD_InitPins function, add these code:
-----------------------------------------------------------------
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_35_ENET_1588_EVENT0_OUT, /* GPIO_AD_11 is configured as ENET_1588_EVENT3_OUT */
0U);
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_07_ENET_1588_EVENT1_OUT, /* GPIO_AD_07 is configured as ENET_1588_EVENT1_OUT */
0U); /* Software Input On Field: Input Path is determined by functionality */
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_09_ENET_1588_EVENT2_OUT, /* GPIO_AD_09 is configured as ENET_1588_EVENT2_OUT */
0U); /* Software Input On Field: Input Path is determined by functionality */
IOMUXC_SetPinMux(
IOMUXC_GPIO_AD_11_ENET_1588_EVENT3_OUT, /* GPIO_AD_11 is configured as ENET_1588_EVENT3_OUT */
0U);
IOMUXC_SetPinConfig(
IOMUXC_GPIO_AD_35_ENET_1588_EVENT0_OUT, /* GPIO_AD_B0_12 PAD functional properties : */
0x06U); /* Slew Rate Field: Slow Slew Rate
Drive Strength Field: R0/6
Speed Field: medium(100MHz)
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_AD_07_ENET_1588_EVENT1_OUT, /* GPIO_AD_B0_12 PAD functional properties : */
0x06U); /* Slew Rate Field: Slow Slew Rate
Drive Strength Field: R0/6
Speed Field: medium(100MHz)
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_AD_09_ENET_1588_EVENT2_OUT, /* GPIO_AD_B0_12 PAD functional properties : */
0x06U); /* Slew Rate Field: Slow Slew Rate
Drive Strength Field: R0/6
Speed Field: medium(100MHz)
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_AD_11_ENET_1588_EVENT3_OUT, /* GPIO_AD_B0_12 PAD functional properties : */
0x06U); /* Slew Rate Field: Slow Slew Rate
Drive Strength Field: R0/6
Speed Field: medium(100MHz)
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 */
------------------------------------------------------------------------------------------------------
/* Prepare the PTP configure */
enet_ptp_config_t ptpConfig = {
kENET_PtpTimerChannel1,
ptpClock,
};
This will test the OUT0 CH1: GPIO_AD_35, test point TP19.
If you want to output in other pin, modify the channel.
Eg, J10 pin 2, OUT1 CH2
enet_ptp_config_t ptpConfig = {
kENET_PtpTimerChannel2,
ptpClock,
};
Please note: kENET_PtpTimerChannel1 = ENET_1588_EVENT0_OUT, kENET_PtpTimerChannel2 = ENET_1588_EVENT1_OUT.
Then, in your oscilloscope, please use rising trigger to capture the pulse.
Please check, what else you have not configured. Please also check the pin in the hardware side. I also attach my previous RT1170 demo for the different channel.
If you still have issue about it, just kindly let me know.
Best Regards,
Kerry