[RTD500 IP] S32K388 Lpuart_UART interrupt echo(LPUART4)

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

[RTD500 IP] S32K388 Lpuart_UART interrupt echo(LPUART4)

224 Views
Ryan_xjl
Contributor II

参考该链接:

[RTD600 IP] S32K312-EVB Lpuart 中断回显

针对S32K388平台进行验证学习,发现中断没有回显,不知道什么原因,附件是修改的例程

具体信息:

Borad: S32K388
S32DS3.5+RTD500

Tags (2)
0 Kudos
Reply
3 Replies

189 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

do you mean the interrupt/callback is never hit for reception or the code does not send any echo back?

BR, Petr

0 Kudos
Reply

86 Views
Ryan_xjl
Contributor II

调试过程中中断回调也产生了,并且看到UART4 RX接收的数据,逻辑上RX接收数据会直接通过TX发出来再控制台回显,但是控制台没有任何显示,不清楚错误在哪,希望给予帮助

0 Kudos
Reply

8 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

seems the reception bool flag bRxFlag is optimized out, or similar. It is set in callback, but if statement in main is never executed, so no string is sent back. 

Try to set the flag as volatile 

/* Reception flag */
volatile bool bRxFlag = false;

BR, Petr

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2290740%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%5BRTD500%20IP%5D%20S32K388%20Lpuart_UART%20interrupt%20echo(LPUART4)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2290740%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3ERefer%20to%20that%20link%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FRTD600-IP-S32K312-EVB-Lpuart-interrupt-echo%2Fta-p%2F2141060%22%20target%3D%22_blank%22%3E%5BRTD600%20IP%5D%20S32K312-EVB%20Lpuart%20Interrupt%20Display%20Back%3C%2FA%3E%3C%2FP%3E%3CP%3EValidation%20study%20for%20the%20S32K388%20platform%2C%20found%20that%20the%20interrupt%20did%20not%20return%20to%20the%20display%2C%20do%20not%20know%20what%20the%20reason%2C%20attached%20is%20a%20modified%20routine%3C%2FP%3E%3CP%3ESpecific%20information%3A%3C%2FP%3E%3CP%3E%3CSPAN%3EBorad%3A%20S32K388%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%20S32DS3.5%2BRTD500%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BRTD500%20IP%5D%20S32K388%20Lpuart_UART%20interrupt%20echo(LPUART4)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3Edo%20you%20mean%20the%20interrupt%2Fcallback%20is%20never%20hit%20for%20reception%20or%20the%20code%20does%20not%20send%20any%20echo%20back%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBR%2C%20Petr%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2291354%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BRTD500%20IP%5D%20S32K388%20Lpuart_UART%20interrupt%20echo(LPUART4)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2291354%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3Edebugging%20process%20interrupt%20callback%20also%20generated%2C%20and%20see%20the%20UART4%20RX%20received%20data%2C%20logic%20RX%20receive%20data%20will%20be%20sent%20directly%20through%20the%20TX%20and%20then%20the%20console%20display%2C%20but%20the%20console%20does%20not%20have%20any%20display%2C%20it%20is%20not%20clear%20where%20the%20error%2C%20I%20hope%20to%20give%20help!%3C%2FP%3E%3C%2FLINGO-BODY%3E