cancel
Showing results for 
Search instead for 
Did you mean: 

Examples for STM made OP-TEE drivers?

Fee
Senior

Hi all,

i want to use some hardware peripherals in OP-TEE. I got the GPIO driver (stm32_gpio in core/drivers) to work with my PTA (Pseudo Trusted Application). I now wanna use the I2C peripheral using the stm32_i2c driver.

I coundn't find any example code (for the GPIO neither), is there somewhere an example of how to use the drivers from a PTA?

EDIT: I was able to configure the I2C peripheral with the driver, i missed the GPIO configuration. Some documentation of the OP-TEE drivers would be a nice feature for the future nevertheless =)

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @Lukas Brückner​ 

As promised, please find attached the OP-TEE driver demo sample code.

This demo is based on usage of Developer Package. (SDK)

Refer to Readme.md and proceed.

Hope it help,

BR,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
Olivier GALLIEN
ST Employee

Hi @Lukas Brückner​ 

We are working on a OP-TEE driver sample code / demonstration.

Will sharing it here as soon as available.

Pointer on document we can give you so far is here :

https://readthedocs.org/projects/optee/downloads/pdf/latest/

Hope it help,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Olivier GALLIEN
ST Employee

Hi @Lukas Brückner​ 

As promised, please find attached the OP-TEE driver demo sample code.

This demo is based on usage of Developer Package. (SDK)

Refer to Readme.md and proceed.

Hope it help,

BR,

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi, I missed to precise that the example his made for EV1 board.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Fee
Senior

Hi Oliver,

thanks a lot!