Below are the workarounds for the two issues
Solution to Issue 1:
If you are seeing the cube orange build failure with error message in Issue 1, note that this issue is coming because of the limitation of length of filenames in Windows. cdcacm_main.cygdrive.c.px4_cygwin.home.Firmware.build.cubepilot_cubeorange_default.external.Build.bootloader_firmware.NuttX.apps.system.cdcacm.o has more characters in the filename than the maximum allowed number of characters in Windows. You can work around this problem by reducing the path length of the PX4 firmware. To workaround the issue, Uninstall current Cygwin toolchain and install the Cygwin Toolchain to a shorter path such as C:/px4 instead of C:/px4_cygwin. Run hardware setup screens in MATLAB again with new Cygwin path.
Solution to Issue 2:
In the PX4 Firmware folder,
- Delete the full build folder for all the CMakes
- Run hardware setup screen in MATLAB for the UAV Toolbox Support Package for PX4 Autopilots with Cube Orange as hardware