Skip to main content
ADani
Associate III
May 27, 2021 8:01 AM UTC
Question

Permission denied running a shell script provided in the pre-build setup of STMCUBEIDE

Hello all,

I'm working on SBSFU for the STM32F4 controller. A shell script has to be provided in the pre-build option of STMCUBEIDE. But while building the project I get the following error.

c:/st/stm32cubeide_1.4.0/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_1.4.0.202007081208/tools/bin/sh: ../test.sh../..: Permission denied

This topic has been closed for replies.

4 replies

mattias norlander
ST Technical Moderator
May 31, 2021 11:46 AM UTC

Hi @ADani​,

Can you check the file permission on test.sh? Do you have execute permission on this file?

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
CCend.2
Associate II
Apr 27, 2023 7:02 PM UTC

I'm getting the same error, here is my output for "ls -l":


_legacyfs_online_stmicro_images_0693W00000biyx9QAA.pngprebuild.sh seems to have the correct permissions but STM32CubeIDE is still giving me "permission denied" when I try to run it through my makefile. Any suggestions?

mattias norlander
ST Technical Moderator
May 31, 2021 11:47 AM UTC

Exactly which project are you using? Please give us the path inside the package..

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
ADani
ADaniAuthor
Associate III
Dec 7, 2023 9:54 AM UTC

Dropped the project since it was too difficult to customize for a individual board. Thanks all for the reply.