Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


STLink V2 missing from installation ?

Hi,

I’ve just completed a console-based install of System Workbench for STM32 on to Kubuntu 14.04 LTS using the following link on the openstm32.org website.

http://www.ac6-tools.com/downloads/SW4STM32/install_sw4stm32_linux_32bits-latest.runQuestion

The installer seemed(!) to complete its task successfully, although there did seem to be a couple of problems.

Firstly, when the installer completed, its last six lines of output were as shown below.

Starting process Loading STLink/V2 udev rules (3/3)
cp: cannot stat ‘49-stlinkv2.rules’: No such file or directory
Installation was successful
application installed on /home/kub/Ac6/SystemWorkbench
Writing the uninstaller data ...
Console installation done

As can be seen in the second ouput line shown above, there seemed to be a problem with installing/setting up stlink v2.

Do I now have to do a manual download & installation of stlink v2 ?

I already have on my hdd a copy of the zip file for qstlink. Would it be acceptable to somehow “stitch” this in instead of stlink v2 ?

If so, could you please provide instructions on how to do this ?

Secondly, I used sudo to run the command “apt-get install libc6:i386 lib32ncurses5” given on the website. This generated the following output.

sudo apt-get install libc6:i386 lib32ncurses5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib32ncurses5

Is there an alternative way of getting hold of this file ?

Any help that can be given with this would be much appreciated.

Best regards,

Stuart

Hi artsin,

Thank you for such a swift reply. I have read your blog. You will see from the bottom of my post that I have already tried the command “sudo apt-get install lib32ncurses5” that you suggest but this failed to find the package. The command and its output are shown below.

sudo apt-get install lib32ncurses5
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib32ncurses5

I then tried the following command which also is shown below with its output.

sudo apt-get install lib32ncurses5:i386
sudo password for kub:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib32ncurses5

I have tried a web search and found the following site from which the package can be downloaded.

http://packages.ubuntu.com/trusty/i386/libncurses5/downloadQuestion

However the site states that :-

“If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.”

I have tried using sysnaptic to install the package using, in turn, the names lib32ncurses5 and lib32ncurses5:i386. Each search in synaptic failed to find the package.

If I do download the file manually, I do not know :-
a) into which directory/folder it should be placed;
b) if I should run any commands after the file has been placed in the “correct” directory/folder. For example, should I run the update command (as root maybe ?) which builds a database of files placed onto the system ?

So, thank you again for such a swift reply. Sadly, I have made only a little progress in solving this.

Best regards,

Stuart


Good evening artsin,

Thank you for another swift reply. Since my last posting I have(!) managed to get the lib32ncurses5 file installed. All I had to do was select a download mirror on a download website. This caused the file to be installed using QApt installer which placed the files into their “correct” folders. More fool me for not trying this before submitting my last posting.

The only remaining problem is the following.

Starting process Loading STLink/V2 udev rules (3/3)
cp: cannot stat ‘49-stlinkv2.rules’: No such file or directory

There is place on github :-

https://github.com/texane/stlinkQuestion

which contains the file ‘49-stlinkv2.rules’ that could be downloaded. However, as I stated before, I do not know :-
a) into which folder this should be placed.;
b) how to get sw4stm32/eclipse to recognise that this file is now in its “correct” directory.

I have read through that page that you gave a link to in your last posting. It lists many steps that may have to be followed in order to find/install the stlink file. That would seem to be time consuming and so I will keep that as a “process of last resort”. However, thank you very much for providing that link. It just may (!) provide the answer.

I think I may just contact ST direct and see what help they can give with respect to which is the “correct” directory/folder into which to install the stlink file.

Thank you again for another swift reply. It is(!) much appreciated.

Best regards,

Stuart


France

Hi Stuart,

Like any other udev rules file, it must be installed in /etc/udev/rules.d (or some similarly named rules.d file if your Linux do not place it there).

Bernard (Ac6)

Good afternoon Bernard,

Thank you very much for your posting. You may just have saved me a posting to ST directly. Very helpful !!

Thanks again.

Best regards,

Stuart


Good afternoon Bernard,

Thank you very much for your posting. You may just have saved me a posting to ST directly. Very helpful !!

Thanks again.

Best regards,

Stuart


I had the same problem with my Manjaro Linux PC :
‘49-stlinkv2.rules’: No such file or directory

The file is not missing !

The problem comes from a path error in install_stlink_udev.sh script.
Please change line 16 :
sudo cp 49-stlinkv2.rules /etc/udev/rules.d
to :
sudo cp .installation/49-stlinkv2.rules /etc/udev/rules.d

That works for distributions with no gksudo installed.

The error has already been noted by an Fedora 21 user one year ago.

Cheers !