How to resolve the Frame error flag?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to resolve the Frame error flag?

ソリューションへジャンプ
17,908件の閲覧回数
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 件の賞賛
返信
1 解決策
17,481件の閲覧回数
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.

 

元の投稿で解決策を見る

タグ(3)
0 件の賞賛
返信
22 返答(返信)
888件の閲覧回数
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 件の賞賛
返信
868件の閲覧回数
s32k146_ige
Contributor IV
i am getting this STATUS_UART_FRAMING_ERROR = 0x603U, error value in status variable

 

0 件の賞賛
返信