Skip to main content
Associate II
February 8, 2024
Solved

Control STM32MP157D-DK1 GPIO with python

  • February 8, 2024
  • 4 replies
  • 3528 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

 

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

Eldam
Senior
February 8, 2024
Jean-Marc B
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
Associate 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

PatrickF
Technical Moderator
February 8, 2024

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

 

 

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.NEW ! Sidekick STM32 AI agent, see here
PatrickF
Technical Moderator
February 8, 2024

Hi @Softcity ,

Ensure you are connected to internet and the date is set to current time.
See also https://community.st.com/t5/stm32-mpus-products/i-cannot-use-the-pip-command-with-the-starter-package-is-it/m-p/202592/highlight/true#M5991

Regards.

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.NEW ! Sidekick STM32 AI agent, see here
PatrickF
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.

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.NEW ! Sidekick STM32 AI agent, see here