@AldoG, can you be more specific about what extra information you need? I mentioned the yocto machine, flash target, and uboot configuration we are using. All this is part of the nxp bsp release. The imx8mn_evk machine selects the optee platform flavor "mx8mnevk". Please review this optee-os receipt if you are not familiar with it. I'm not sure what else I can provide. Have you tried booting an imnx8mn_evk board? Do you see the same error?
Also, not sure why you are saying we need to select stmm? I'm not familiar with stmm, but it sounds to me like something different, and the imx8mn_evk did not select it. You need to specifically include 'stem' in MACHINE_FEATURES, which the imx8mn_evk did not do, and it was tested against the security reference design. Can you elaborate on stmm?