31 views
in Embedded Wizard Studio by
EW:Version 10.0 Error with PostProcess with STM32CubeIDE execution of batch file STM32CubeIDE_ew_post_process.cmd

Hello Embedded Wizard team,

I am using Embedded Wizard version10.0 Pro edition and working with STM32F746G Discovery board.

I tried to create a STM32CubeIDE Project , Hence followed below instructions
https://doc.embedded-wizard.de/getting-started-stm32f746-discovery?v=10.00

When the Postprocess is Default (blank space) I am able to execute the project with no errors and Warnings.And
When the Postprocess is to C:\Users\.....\STM32F746-Discovery\Application\Project\STM32CubeIDE\STM32F746-Discovery\STM32CubeIDE_ew_post_process.cmd

And Built , the below error appears.

'PowerShell.exe' is not recognized as an internal or external command,
operable program or batch file.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
This Embedded Wizard Post Process needs at least V4.0 of Windows Powershell
Powershell update can be found at:
https://docs.microsoft.com/de-de/powershell/scripting/setup/installing-windows-powershell
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

Hence I changed the path of the PowerShell.exe in STM32CubeIDE_ew_post_process.cmd batch file , to actual path of powershell.exe in my computer

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "& '%realativepath%\STM32CubeIDE_ew_post_process_power_shell_script.ps1'"

However , I still am getting below error

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Unknown error occured during Embedded Wizard Post Process!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Could you please let me know , What needs to be done to fix this issue ?

Thank you
Hemanth

1 Answer

0 votes
by

i Hemanth,

as the PowerShell script already has logged correctly, I assume that on your system MS PowerShell is not installed or too old. Could you please download and install the latest PowerShell version and try to execute the PowerShell script by building the Embedded Wizard project again?

"

Hence I changed the path of the PowerShell.exe in STM32CubeIDE_ew_post_process.cmd batch file , to actual path of powershell.exe in my computer

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "& '%realativepath%\STM32CubeIDE_ew_post_process_power_shell_script.ps1'"

"

This step was not necessary and I would recommend to reverse this change in your batch file. Probably this modification cause the error  “Unknown error occurred during Embedded Wizard Post Process!”.

Best regards,

Tim

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...