DEV Community

Cover image for Install ST Edge AI Core on Linux
ABDUL SATTAR
ABDUL SATTAR

Posted on

Install ST Edge AI Core on Linux

If you're working with STM32 microcontrollers and Edge AI applications, ST Edge AI Core is an important tool for deploying AI models on STM32 devices.

Recently, I started setting up the AI development environment for the STM32N6570-DK Discovery Kit.

In this tutorial, I'll walk through downloading, extracting, launching and configuring ST Edge AI Core on Ubuntu Linux.

1. Download ST Edge AI Core

Visit the official STMicroelectronics website:

ST Edge AI Core – Official Website

  • Log in to your STMicroelectronics account.
  • Navigate to the ST Edge AI Core download section.
  • Select the Linux package.
  • Download the Linux installer.

My downloaded package:

stedgeai-lin.zip
Enter fullscreen mode Exit fullscreen mode

2. Extract the Downloaded Package

Open the terminal and navigate to your Downloads directory:

cd ~/Downloads
Enter fullscreen mode Exit fullscreen mode

Extract the ZIP archive:

unzip stedgeai-lin.zip
Enter fullscreen mode Exit fullscreen mode

After extraction, you should get:

stedgeai-linux-onlineinstaller
Enter fullscreen mode Exit fullscreen mode

3. Make the Installer Executable

Give execution permission to the installer:

chmod +x stedgeai-linux-onlineinstaller
Enter fullscreen mode Exit fullscreen mode

4. Run the Installer

Launch the installer:

./stedgeai-linux-onlineinstaller
Enter fullscreen mode Exit fullscreen mode

The online installer uses a graphical interface to manage the installation.

Follow the installation wizard and select the required components for your development environment.

5. Troubleshooting: Qt Platform Plugin Warning

During my installation attempt, I encountered these messages:

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""

qt.dbus.integration: Could not connect
"org.freedesktop.NetworkManager" to "stateChanged"
Enter fullscreen mode Exit fullscreen mode

I tried launching the installer using the X11 platform backend:

QT_QPA_PLATFORM=xcb ./stedgeai-linux-onlineinstaller
Enter fullscreen mode Exit fullscreen mode

This removed the Wayland plugin warning, although the NetworkManager warnings remained.

Note: These messages alone do not confirm an installation failure. Check whether the graphical installer actually opens and completes.

6. Locate the ST Edge AI Installation

On my Ubuntu system, the existing installation was located at:

/opt/ST/STEdgeAI/
Enter fullscreen mode Exit fullscreen mode

I checked the installed directory:

ls /opt/ST/STEdgeAI/
Enter fullscreen mode Exit fullscreen mode

My output:

3.0/
components.xml
InstallationLog.txt
installer.dat
installerResources/
Licenses/
maintenancetool
Enter fullscreen mode Exit fullscreen mode

The installed ST Edge AI Core directory was:

/opt/ST/STEdgeAI/3.0/
Enter fullscreen mode Exit fullscreen mode

7. Locate the ST Edge AI Executable

To find the executable, use:

find /opt/ST/STEdgeAI/3.0 \
    -type f -name "stedgeai" 2>/dev/null
Enter fullscreen mode Exit fullscreen mode

My output:

/opt/ST/STEdgeAI/3.0/Utilities/linux/stedgeai
Enter fullscreen mode Exit fullscreen mode

This confirms the location of the ST Edge AI command-line executable.

8. Configure the Environment PATH

To execute stedgeai from any terminal directory, add its executable directory to PATH.

Run:

echo 'export PATH=/opt/ST/STEdgeAI/3.0/Utilities/linux:$PATH' >> ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

Reload the shell configuration:

source ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

9. Verify the Installation

Check the executable location:

which stedgeai
Enter fullscreen mode Exit fullscreen mode

Expected output:

/opt/ST/STEdgeAI/3.0/Utilities/linux/stedgeai
Enter fullscreen mode Exit fullscreen mode

Check the version:

stedgeai --version
Enter fullscreen mode Exit fullscreen mode

You can also explore the available commands:

stedgeai --help
Enter fullscreen mode Exit fullscreen mode

If the executable runs successfully, your command-line environment is configured.

Note: The installation directory shown in this tutorial is from my existing ST Edge AI Core 3.0 installation. Verify your installed version before following version-specific instructions.

Pro Tip 💡

If you get:

stedgeai: command not found
Enter fullscreen mode Exit fullscreen mode

It doesn't necessarily mean the software is not installed.

First, locate the executable:

find /opt/ST/STEdgeAI -type f -name "stedgeai" 2>/dev/null
Enter fullscreen mode Exit fullscreen mode

Then add the directory containing the executable to your PATH.

Also, avoid running the online installer with sudo initially. Use your normal user account and grant administrator permissions only when the installer requires them.

What's Next?

My next objective is to use ST Edge AI Core with the STM32N6570-DK, explore the Neural-ART accelerator and deploy an AI model on the board.


STM32 #EdgeAI #EmbeddedSystems #Linux #Ubuntu #MachineLearning #STM32N6

Top comments (0)