How to resolve the Frame error flag?

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

How to resolve the Frame error flag?

Jump to solution
17,840 Views
s32k146_ige
Contributor IV

hi,

i am getting UART frame error, with communication settings as follows, baud rate 1mbps, databits 8, stopbits 1 and parity none, the data i received i tried to capture on terminal software and i can see data as follows

Screenshot 2023-04-26 170007.png

Screenshot 2023-04-26 165459.png

 

Following are the settings for UART driver,

/* Instance structure is used for storing PAL instance information. */
uart_instance_t lpuart1_uart_instance = {
    .instType          = UART_INST_TYPE_LPUART,
    .instIdx           = 2U
};

/* Serial User Configurations */
uart_user_config_t lpuart1_uart_Config0 = {
    .baudRate         = 1000000,
    .bitCount         = UART_8_BITS_PER_CHAR,
    .parityMode       = UART_PARITY_DISABLED,
    .stopBitCount     = UART_ONE_STOP_BIT,
    .transferType     = UART_USING_INTERRUPTS,
    .rxDMAChannel     = 0U,
    .txDMAChannel     = 0U,
    .rxCallback       = rxCallback,
    .rxCallbackParam  = NULL,
    .txCallback       = NULL,
    .txCallbackParam  = NULL,
    .extension        = NULL
};

 

the code is uart_pal_echo_s32k146, just modified to send specific command as requirement.

i dont understand UART ERROR reason, if data is received properly on terminal software.

 

0 Kudos
Reply
1 Solution
17,413 Views
s32k146_ige
Contributor IV

This was resolved after re writing the UART driver. We wrote the UART driver from base and used ISR to handle data. After that we started receiving packet frame at 1mbps data rate from Slave device.

 

View solution in original post

Tags (3)
0 Kudos
Reply
22 Replies
884 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@s32k146_ige

I see no problem with your settings and i test this demo again with 1M Baud, it works fine on myside.

Senlent_0-1682562840653.png

 

You can confirm the type of error according to the value of status

Senlent_2-1682563124547.png

Senlent_1-1682563067427.png

 

0 Kudos
Reply
864 Views
s32k146_ige
Contributor IV
i am getting this STATUS_UART_FRAMING_ERROR = 0x603U, error value in status variable

 

0 Kudos
Reply