S32K144 LPUART1 is not working under pin PTD13 and PTD14

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 LPUART1 is not working under pin PTD13 and PTD14

1,518 Views
海雄周
Contributor II

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,
    },

Tags (1)
3 Replies

961 Views
martin_kovar
NXP Employee
NXP Employee

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

961 Views
海雄周
Contributor II

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

0 Kudos

961 Views
martin_kovar
NXP Employee
NXP Employee

Hello,

I tested lpuart1 connected to PTD13 and PTD14 and it works correct on my side. Please see my pin_mux settings

pastedImage_1.png

pastedImage_2.png

Here is the signal I measured on PTD14 pin.

pastedImage_3.jpg

Regards,

Martin