Debug logs in optee

hello ,
I am trying to communicate with my spi device through optee, for this, am using spi driver.
(aosp\optee\optee_os\core\drivers\Pl022_spi.c)

And I do not have access to uart

My query is :
Is there any possibility to see debug logs of optee ( secure world ) from usb (adb shell) ?

I see a dir in hikey board-> /bugreports ? I wonder if there is any logging mechanism which I dont know of !!!

Thanks

There was an effort to try to do this [1] but sort of abandoned now. You can try the patch if you feel adventurous, but there won’t be much in terms of support.

[1] https://github.com/OP-TEE/optee_os/pull/810 (send traces to tee-supplicant when CFG_LOG_SYSLOG=y)