Why Simulink model build is failing in Windows with the error " 'C:/Windows/System32/bash.exe' is not recognized as an internal or external command" in MATLAB R2018b?
7 views (last 30 days)
Show older comments
MathWorks Support Team
on 21 Mar 2019
Edited: MathWorks Support Team
on 29 Feb 2024
I am using Simulink to deploy code on Pixhawk 4 hardware. I am working in Windows 10, build 16299, version 1703. When I hit the "Deploy to hardware" button in Simulink, the Diagnostic Viewer mentions that a separate command prompt will be launched for building. I do see a command prompt being launched. However, after a few seconds an error is reported in diagnostic viewer that the PX4 firmware build has failed and check the build log in the PX4 firmware folder.
The build log contains the following information:
ERROR: 'C:/Windows/System32/bash.exe' is not recognized as an internal or external command, operable program or batch file.
MW_BUILD_COMPLETE
How do I fix this issue?
Accepted Answer
MathWorks Support Team
on 18 Jan 2024
Edited: MathWorks Support Team
on 29 Feb 2024
If your Windows 10 build version is less than 17134, and you are encountering the issue, refer to the following documentation for workarounds. Execute the following command in the command window of MATLAB R2018b to get the release specific documentation:
web(fullfile(docroot, 'supportpkg/px4/ug/troubleshooting-px4-build-model-windows.html'))
Please follow the below link to search for the required information regarding the current release:
1 Comment
Eeshan Mitra
on 17 Apr 2019
Hi Lior
If you are still encountering this issue, please contact Technical Support in your region for additional help:
Regards
Eeshan
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!