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:
'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?
Best Answer