In boards/ark/fmu-v6x, I made a file called sih.px4board with only one line: CONFIG_MODULES_SIMULATION_SIMULATOR_SIH=y
But when I run make ark_fmu-v6x_sih
to build the SIH firmware, I get a flash overflow error. This is strange because if I repeat this process for the Cube Orange+, the SIH firmware builds successfully.
Here’s the error:
FAILED: ark_fmu-v6x_sih.elf
Memory region Used Size Region Size %age Used
ITCM_RAM: 0 GB 64 KB 0.00%
FLASH: 1990348 B 1920 KB 101.23%
DTCM1_RAM: 0 GB 64 KB 0.00%
DTCM2_RAM: 0 GB 64 KB 0.00%
AXI_SRAM: 99272 B 512 KB 18.93%
SRAM1: 0 GB 128 KB 0.00%
SRAM2: 0 GB 128 KB 0.00%
SRAM3: 0 GB 32 KB 0.00%
SRAM4: 2 KB 64 KB 3.12%
BKPRAM: 0 GB 4 KB 0.00/opt/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: ark_fmu-v6x_sih.elf section `.text' will not fit in region `FLASH'
/opt/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 24268 bytes
collect2: error: ld returned 1 exit status
%
ninja: build stopped: subcommand failed.
make: *** [Makefile:227: ark_fmu-v6x_sih] Error 1