How to use LPUART_Receive block ?

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

How to use LPUART_Receive block ?

1,198件の閲覧回数
Maciek
Contributor V

Hi,

while using LPUART_Receive driver block (latest S32K1x MBD toolbox with patches in R2019b):

is there any way to be sure (or check) if the block execution did indeed initiate reception ?


I'm asking because we have observed that when using this block in a triggered way (from subsystem or in stateflow) - it sometimes doesn't initiate reception. The block itself implements LPUART_DRV_ReceiveData function which may return 'Status_Busy' and I think this may be the case here. Unfortunately all the toolbox examples try to avoid this situation by executing the block repeatedly in each model_step().


Is there any way to use the 'Status' port of LPUART_RxTx_ISR block to ensure that calling LPUART_Receive block will actually initiate immediate reception of new data ? Maybe other suggestions (example model)?

Thanks for help
Maciek

0 件の賞賛
返信
2 返答(返信)

1,064件の閲覧回数
constantinrazva
NXP Employee
NXP Employee

Hello Maciek , dumitru-daniel.popa ,

First of all sorry for the late reply. Now back to the point - unfortunately the only way you can get the status for now is via FreeMASTER - you can access the state variable of the UART. I will add the feature request and we will take it under consideration for our next S32K1xx release.

Kind regards,

Razvan.

0 件の賞賛
返信

1,064件の閲覧回数
Daniel_Popa
NXP Employee
NXP Employee

constantinrazvan.chivu‌,

Please add a feature request in out database to be address for next release.

Thank you!

Daniel

0 件の賞賛
返信