Skip to main content
Associate II
November 28, 2023
Solved

STM32CubeMP13, Post-build steps Compilation error occurred

  • November 28, 2023
  • 2 replies
  • 2442 views

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

zhengjianxing_0-1701169245436.png

 

This topic has been closed for replies.
Best answer by Olivier GALLIEN

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 

 

2 replies

Olivier GALLIEN
Technical Moderator
November 28, 2023

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
Olivier GALLIENBest answer
Technical Moderator
December 6, 2023

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.
Associate II
December 6, 2023

Thank you for your help.

zhengjianxing_0-1701858250698.png