Pixhawk 6X - Flash overflow PX4 v 1.12.3 - MATLAB support package

Hey y’all,

I’ve encountered a problem with the flash size using the MATLAB support package and the Pixhawk 6X with PX4 version 1.12.3

I can confirm that the PX4 Matlab Support Package generally works with the Pixhawk 6X hardware board.

However, when trying out simple test scripts (like the Getting Started uORB example), we run into a flash overflow error when trying to flash. The flash size for the standard

Memory region         Used Size  Region Size  %age Used
            itcm:          0 GB        64 KB      0.00%
           flash:     1973557 B      1920 KB    100.38%
           dtcm1:          0 GB        64 KB      0.00%
           dtcm2:          0 GB        64 KB      0.00%
            sram:       78436 B       512 KB     14.96%
           sram4:          2 KB        64 KB      3.13%
           bbram:          0 GB         4 KB      0.00c:/px4_cygwin/toolchain/gcc-arm/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: px4_fmu-v6x_default.elf section `.text' will not fit in region `flash'
c:/px4_cygwin/toolchain/gcc-arm/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: region `flash' overflowed by 7477 bytes
collect2.exe: error: ld returned 1 exit status
PX4 Cygwin returned an error of 1

The flash size of the standard PX4 build is already 99% of the available flash size:

[1332/1332] Creating /cygdrive/c/PX4firmware/Firmware/build/px4_fmu-v6x_default/px4_fmu-v6x_default.px4
Loaded firmware for board id: 53,0 size: 1945753 bytes (98.97%), waiting for the bootloader... 

We have tried to edit the CMakefile (to exclude certain sensors etc.) like detailed here, yet ran into problems, because of dependencies in the code.
I would greatly appreaciate any help!

BTW: It’s my first post here, so please be gracious!