Hi @Maciek,
I don't see any issue with that.
The interrupt can be preempted only by an interrupt with a higher priority.
So, you can mask the interrupt globally as you mentioned.
Regarding the barriers, please refer to this document:
ARM Cortex ™ -M Programming Guide to Memory Barrier Instructions Application Note 321
https://documentation-service.arm.com/static/5efefb97dbdee951c1cd5aaf?token=
4.8 Disabling interrupts using CPS and MSR instructions
4.7 Enabling interrupts using CPS instructions and MSR instructions
There are no errata related to this:
https://www.nxp.com/docs/en/errata/S32K118_0N97V.pdf
I'm not familiar with i.MX RT, please create a new thread on the i.MX RT community.
Regards,
Daniel