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
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.
Please add a feature request in out database to be address for next release.
Thank you!
Daniel