in the example of "Ipuart_echo_s32k144", the orignal pin PTC6 and PTC7 are working under the example codes. Now, I am trying to change the pin to PTD13 and PTD14, then it is not working. So, what should I change the code to make it works?
I have changed the code as below:
{
.base = PORTD,
.pinPortIdx = 14u,
.pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,
.passiveFilter = false,
.driveSelect = PORT_LOW_DRIVE_STRENGTH,
.mux = PORT_MUX_ALT3,
.pinLock = false,
.intConfig = PORT_DMA_INT_DISABLED,
.clearIntFlag = false,
.gpioBase = NULL,
},
{
.base = PORTD,
.pinPortIdx = 13u,
.pullConfig = PORT_INTERNAL_PULL_NOT_ENABLED,
.passiveFilter = false,
.driveSelect = PORT_LOW_DRIVE_STRENGTH,
.mux = PORT_MUX_ALT3,
.pinLock = false,
.intConfig = PORT_DMA_INT_DISABLED,
.clearIntFlag = false,
.gpioBase = NULL,
},
Hello,
do you have externally interconnected PTD13 with PTC6 and PTD14 with PTC7? This must be done, because PTD pins are not connected to OpenSDA interface by default.
Regards,
Martin
Hi Martin,
Thanks for your reply. We are using externally USB-UART for pins PTD13 and PTD14. I don't think we need to connected to OpenSDA. Is there any other possible why it is not working? Many thanks.
Regards,
Zhou
Hello,
I tested lpuart1 connected to PTD13 and PTD14 and it works correct on my side. Please see my pin_mux settings
Here is the signal I measured on PTD14 pin.
Regards,
Martin