How to use LPUART_Receive block ?

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

How to use LPUART_Receive block ?

1,197 Views
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 Kudos
Reply
2 Replies

1,063 Views
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 Kudos
Reply

1,063 Views
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 Kudos
Reply