Hi dynamix,
Do you use the UART to receive your parameter?
If yes, I think you totally can use the UART interrupt to receive it, that one don't need to blocks the whole program, because when receive the data, it is using the interrupt.
More details, you can refer to the SDK code:
SDK_2.8.6_EVKB-IMXRT1050\boards\evkbimxrt1050\driver_examples\lpuart
There has a lot of uart interrupt code.
The SDK download link is:
https://mcuxpresso.nxp.com/
Wish it helps you!
If you still have questions about, please kindly let me know.
If your question is solved, please help to mark the correct answer just to close this case, thanks.
Best Regards,
Kerry