Skip to main content
Visitor II
January 9, 2020
Solved

Examples for STM made OP-TEE drivers?

  • January 9, 2020
  • 3 replies
  • 1417 views

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 =)

    This topic has been closed for replies.
    Best answer by Olivier GALLIEN

    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

    3 replies

    Technical Moderator
    February 28, 2020

    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

    Technical Moderator
    March 3, 2020

    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

    Technical Moderator
    March 3, 2020

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

    Olivier

    FeeAuthor
    Visitor II
    March 4, 2020

    Hi Oliver,

    thanks a lot!