cancel
Showing results for 
Search instead for 
Did you mean: 

issues in running stm32u5_tool.sh file from X-Cube AWS package because of stm32Programmer

ATSEM.1
Associate

These are the 1st lines of stm32u5_tool.sh file from X-Cube AWS package.

#!/bin/bash

# Find STM32_Programmer_CLI

# shellcheck disable=SC2154

if [ -n "${cubeide_cubeprogrammer_path}" ]; then

    PROG_BIN_DIR="${cubeide_cubeprogrammer_path}"

    PROG_BIN_PATH=$(find "${cubeide_cubeprogrammer_path}" -name 'STM32_Programmer_CLI*' -type f)

    PROG_BIN=$(basename "${PROG_BIN_PATH}")

    export PATH="${PROG_BIN_DIR}:${PATH}"

elif command -v STM32_Programmer_CLI; then

    PROG_BIN="STM32_Programmer_CLI"

else

    echo "Error: STM32_Programmer_CLI could not be found."

    echo "STM32_Programmer_CLI in not in your path and the cubeide_cubeprogrammer_path environment variable was not defined."

    exit 1

fi

When I run this file in the cmd , I get this error: " Error: STM32_Programmer_CLI could not be found. STM32_Programmer_CLI in not in your path and the cubeide_cubeprogrammer_path environment variable was not defined. "

I installed smt32Programmer in the same path as my stm32u5_tool.sh and nothing changed.

0 REPLIES 0