cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMP13, Post-build steps Compilation error occurred

zhengjianxing
Associate II

Hi, Compiling a Project (FSBLA\FSBLA_Sdmmc1) encountered an error,Nothing has been changed

zhengjianxing_0-1701169245436.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @zhengjianxing ,

The root cause has been identified ; the 'pwd' command is no more supported by sh.exe provided in CubeIDE 1.14

The good news is that it's easy to w/a by implementing following change in script : 

revisiting postbuild.sh from line 14:


#current_directory=`pwd`
#echo ${current_directory}
#cd "${projectdir}/../../../../../../../Utilities/ImageHeader"
#basedir=`pwd`
basedir="../../../../../../../Utilities/ImageHeader"
#cd ${current_directory}

Please confirm this patch fix the issue at your end. 

Thanks

Olivier 

 

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Olivier GALLIEN
ST Employee

Hi @zhengjianxing ,

 

I reproduce your issue.

Escalate internally, I come back to you ASAP 

 

Olivier 

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
Olivier GALLIEN
ST Employee

Hi @zhengjianxing ,

The root cause has been identified ; the 'pwd' command is no more supported by sh.exe provided in CubeIDE 1.14

The good news is that it's easy to w/a by implementing following change in script : 

revisiting postbuild.sh from line 14:


#current_directory=`pwd`
#echo ${current_directory}
#cd "${projectdir}/../../../../../../../Utilities/ImageHeader"
#basedir=`pwd`
basedir="../../../../../../../Utilities/ImageHeader"
#cd ${current_directory}

Please confirm this patch fix the issue at your end. 

Thanks

Olivier 

 

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Thank you for your help.

zhengjianxing_0-1701858250698.png