Failing to find ST-link

Im a having problems with finding my STLink on my Intel Nuc. When running lsusb I see the devices. But when running st-util it cant find any devices. There are other devices under this application and those have no issues.


FROM balenalib/%%BALENA_MACHINE_NAME%%-node:12.14.0-buster-build

# Update source lists for jessie since it got moved to archive
# RUN sed -i '/jessie-updates/d' /etc/apt/sources.list  # Now archived

# Set the timezone
# ADD ./
COPY /usr/src/app/
RUN chmod +x /usr/src/app/
RUN /usr/src/app/

# Copy the start script
# ADD ./
COPY /usr/src/app/
RUN chmod +x /usr/src/app/

# Copy the udev rules - from
# ADD 99-platformio-udev.rules ./99-platformio-udev.rules
COPY 99-platformio-udev.rules /usr/src/app/99-platformio-udev.rules

# Copy systemd.mount files
# ADD mnt-L476RG.mount ./mnt-L476RG.mount
COPY mnt-L476RG.mount /usr/src/app/mnt-L476RG.mount

# Add in googles pub key
RUN wget -q -O - | apt-key add -

# Add chrome repo
RUN echo "deb stable main" >> /etc/apt/sources.list.d/google.list

ENV container docker
# use apt-get if you need to install dependencies,
RUN apt-get update && apt-get install -yq \
    systemd \
    libudev-dev \
    xvfb \
    xauth \
    libgconf-2-4 \
    libusb-1.0-0-dev \
    libgtk-3-0 \
    libnotify-dev \
    libnss3 libxss1 libasound2 libxtst6 \
    xserver-xorg=1:7.7+19 \
    xserver-xorg-input-evdev \
    xinit \
    xfce4 \
    xfce4-terminal \
    x11-xserver-utils \
    dbus-x11 \
    matchbox-keyboard \
    xterm \
    default-jre \
    python python-pip libpython2.7 python-setuptools vim wget git && \
    apt-get clean && rm -rf /var/lib/apt/lists/*

# Get latest version of chrome and chromedriver 
RUN apt-get update && \
    apt-get install -y gnupg wget curl unzip --no-install-recommends && \
    wget -q -O - | apt-key add - && \
    echo "deb stable main" >> /etc/apt/sources.list.d/google.list && \
    apt-get update -y && \
    apt-get install -y google-chrome-stable && \
    CHROMEVER=$(google-chrome --product-version | grep -o "[^\.]*\.[^\.]*\.[^\.]*") && \
    DRIVERVER=$(curl -s "$CHROMEVER") && \
    wget -q --continue -P /chromedriver "$DRIVERVER/" && \
    unzip /chromedriver/chromedriver* -d /chromedriver

# Defines our working directory in container
WORKDIR /usr/src/app

# Disable screen from turning it off
RUN echo "#!/bin/bash" > /etc/X11/xinit/xserverrc \
  && echo "" >> /etc/X11/xinit/xserverrc \
  && echo 'exec /usr/bin/X -s 0 dpms' >> /etc/X11/xinit/xserverrc

# Manual install of Buildkite
# RUN wget 
RUN TOKEN="7a334c3fba7e68369bc42af7b7872b43910f83c628f2a58461" bash -c "`curl -sL`"

# Install PlatformIO
RUN python -c "$(curl -fsSL"

RUN pip --no-cache-dir install -U platformio==4.2.1

RUN mkdir -p /root/.platformio/packages/contrib-pysite 
RUN cd /root/.platformio/packages/contrib-pysite 
RUN sudo wget
RUN sudo tar -zxvf contrib-pysite-linux_x86_64-2.27.181225.tar.gz

# Install Gulp
RUN npm install -g gulp

# Install Gulp CLI
# RUN npm install -g gulp-cli

# This will copy all files in our root to the working  directory in the container
COPY . /usr/src/app

# Enable systemd init system in container

# Start the Buildkite agent
CMD ["bash", "/usr/src/app/"]`

Hi there, where is the GDB server running (i.e. st-util -p 4500) and have you ensured you can connect to it at the network level?