Can I use the Pixhawk Support Package (PSP) on a Windows 7 64bit setup?
5 views (last 30 days)
The PSP install instructions reference bash for Windows 10 which seem to require Windows System for Linux (WSL) according to the Microsoft website. WSL is unavailable for Windows 7 from what I have found. I could use cygwin to get bash in Windows 7 but will it play nice with the Mathworks PSP requirements?
Abhishek GS on 27 Sep 2018
The PSP is currently based only on Bash on Windows Toolchain, and not Cygwin toolchain. The windows PSP users are limited to Win 10 for now.
Abhishek GS on 1 Apr 2019
The official support package - 'Embedded Coder Support Package for PX4 Autopilots' is now live. You can refer this link for more information.
The support package officially only supports Win10, because the PX4 toolchain (Bash on Windows) depends on Windows Subsystem Linux which is available in Win10 onwards . However, you may be able to use Cygwin toolchain for PX4 along with the support package, which is not dependant on Win10.
Please follow the steps mentioned in above link. Note that this workaround is not tested on Windows 7.
Abhishek GS on 2 Apr 2019
You may be able to use the Cygwin toolchain on Win 7. However, please note that it has not been tested at our end.
Please follow the below steps:
- With reference to this documentation, complete the steps from 1-10. Ignore the rest of the steps, as it is specific for Win10. You need not launch Hardware Setup Screens.
2. Copy the attached file ‘Win7registerCygwinToolchain.m’ to the folder >>fullfile(matlabshared.supportpkg.getSupportPackageRoot,'toolbox','target','supportpackages','px4','+px4')
3. Execute the below commands on MATLAB Command Prompt:
>>rehash toolboxcache; rehash path;
>>px4.Win7registerCygwinToolchain('C:\px4_cygwin\home', 'px4fmu-v5_default', 'C:\px4_cygwin')
- Argument 1 – PX4 Firmware source folder
- Argument 2 – CMAKE configuration. For example Pixhawk 4 uses 'px4fmu-v5_default’ cmake.
- Argument 3 – Cygwin Installation directory
The above steps should ideally set you up for using the support package on Win7. I would like to reiterate that it has not been tested on Win7.
The above workaround is for R2018b and R2019a only.