cancel
Showing results for 
Search instead for 
Did you mean: 

Build GNU Tools for STM32 12.3.rel1

donkharrison
Associate II

I am trying to build the toolchain and I'm looking for some help getting over this hurdle.

When I run build-prerequisites.sh on Ubuntu, it stops when it tries to run "helper.py" with the error "You need to install python-magic."  Helper.py is running python3 which I've tried linking to Python3.4, 3.5, 3.8, etc.  If I change it to use Python2, it gets over this error but fails with a different one regarding a FILE==STDERR parameter being passed to the Print function (I'm not a Python guy).

Just starting Python2 and typing the line "Import Magic" works.  Any other Python does not work.

Let me also put out that what I am really trying to do is get the sources for all the running code so when I debug I can debug into the function.  It might be that I can just take that "src" directory and park it somewhere and get the same result, but it's more figuring out than I have time for.

I only need the build for Windows also and I assume I need the "debug" type but there is zero documentation.

The version I downloaded from GitHub is this:

Release GNU Tools for STM32 12.3.rel1.20240926-1715

Thanks in advance for your help.

donkharrison

2 REPLIES 2
Pavel A.
Evangelist III

it stops when it tries to run "helper.py" with the error "You need to install python-magic."

It is available here: https://pypi.org/project/python-magic/

what I am really trying to do is get the sources for all the running code so when I debug I can debug into the function.

So you need to build only the newlib. Even do not build it, maybe just looking at the sources can be enough.

 

donkharrison
Associate II

I have installed python-magic, but when I am running python3, it will not execute "Import magic."

I'm not sure what newlib is other than what Wikipedia told me, or how I would use it.  I can see that it is part of the build, and I can see that I can make it independent of the build (seemingly).

In the end, I need the STM32CubeIDE to have access to the sources when I single step outside the scope of my code.