AnsweredAssumed Answered

How to use LPUART_Receive block ?

Question asked by Maciek on Jan 30, 2020
Latest reply on Feb 10, 2020 by Constantin Razvan Chivu


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