Skip to main content
Visitor II
April 27, 2023
Solved

How to set pinctrl_z port to unsecure in device tree as default?

  • April 27, 2023
  • 2 replies
  • 922 views

Hi, I would like to set all 8 pins in port Z to unsecure so i use these pins as other ports.

I read data sheet portz is set to secure mode as default after reset. And I tried write into it and system crashed.

Thanks

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

    Hi @Community member?

    GPIOZ can be unsecure adding this line in TF-A DTS :

    DECPROT(STM32MP1_ETZPC_GPIOZ_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>;

    Refer to :

    ETZPC device tree configuration - stm32mpu​ 

    Olivier

    2 replies

    Technical Moderator
    May 10, 2023

    Hi @Community member?

    GPIOZ can be unsecure adding this line in TF-A DTS :

    DECPROT(STM32MP1_ETZPC_GPIOZ_ID, DECPROT_NS_RW, DECPROT_UNLOCK)>;

    Refer to :

    ETZPC device tree configuration - stm32mpu​ 

    Olivier

    Dat TranAuthor
    Visitor II
    May 10, 2023

    yes, thank you a lot. that did help