Forgot to mention: I suspect that logging in SEC might work if BoardAfterTempRamInit() is called earlier in MinPlatformPkg/FspWrapper/Library/SecFspWrapperPlatformSecLib/PlatformInit.c:PlatformInit().