Skip to main content
Visitor II
February 8, 2024
Solved

Control STM32MP157D-DK1 GPIO with python

  • February 8, 2024
  • 4 replies
  • 3527 views

Hello,

I want to control STM32mp157d-dk1 GPIO from python i tried to use libgpiod but apt-get install python3-pip not work for me

Softcity_0-1707387204205.png

 

    This topic has been closed for replies.
    Best answer by PatrickF

    Hi @Softcity 

    please try

     

     apt-get install python3-gpiod

     

     

    as a general rule, to know if a package is available with apt-get, you could use

     

    apt-get update
    apt-cache search xxxx
    

     

    Regards.

    4 replies

    Visitor II
    February 8, 2024
    ST Employee
    February 8, 2024

    Hi @Softcity 

    python3-pip is a package provided by our ecosystem.

    Could you refresh the apt database and get the python3-pip status with the following commands

    root@stm32mp1:~# apt-get update
    root@stm32mp1:~# apt-cache policy python3-pip

     and gives me the output please?

    Best regards,

    --JM

    SoftcityAuthor
    Visitor II
    February 8, 2024

    Thank you for your reply, the same error unable to locate package python3-pipScreenshot from 2024-02-08 14-28-39.png

    Technical Moderator
    February 8, 2024

    Hi,
    Sound like your board is not connected to the Internet (RJ45 or WLAN)

     

     

    Technical Moderator
    February 8, 2024
    Technical Moderator
    February 8, 2024

    @Softcity 

    ensure you are running the latest Starter Package for your board (use the FlashLayout_sdcard_stm32mp157d-dk1-optee.tsv).

    See https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image

    Regards.