cancel
Showing results for 
Search instead for 
Did you mean: 

Documentation improvement recommendation

ADunc.1
Senior II

Section 2 of this page shows how to setup python for building firmware.  It seems the rest of the tutorials assume you are building on a modern Ubuntu, so I would suggest changing the following lines:

pip install pyelftools
pip install pycryptodomex

to:

sudo apt install python3-pyelftools

sudo apt install python3-pycryptodome

I would also suggest adding:

sudo apt install python-is-python3

 

My reasons are that you can not/should not install the above packages to the global python environment with pip.  Also, the makefiles for M33 firmware call 'python' which does not exist on a new ubuntu install (well, it didn't on mine).  Installing python-is-python3 is the recommended way to resolve this.  

Alternately use a virtual environment, but the firmware build system seems to assume use of the global python.

1 ACCEPTED SOLUTION

Accepted Solutions
Kevin HUBER
ST Employee

Hello @ADunc.1 ,

 

Thank you for your recommendation, I updated the pages for all the MP2 boards.

BR,
Kevin 

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

View solution in original post

1 REPLY 1
Kevin HUBER
ST Employee

Hello @ADunc.1 ,

 

Thank you for your recommendation, I updated the pages for all the MP2 boards.

BR,
Kevin 

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