PX4 build Firmware error

Scanning dependencies of target firmware_nuttx
[ 98%] Building C object src/firmware/nuttx/CMakeFiles/firmware_nuttx.dir/builtin_commands.c.obj
[100%] Linking CXX executable firmware_nuttx
c:/px4/toolchain/bin/…/lib/gcc/arm-none-eabi/4.7.4/…/…/…/…/arm-none-eabi/bin/ld.exe: address 0x81013fc of firmware_nuttx section __param' is not within regionflash’
c:/px4/toolchain/bin/…/lib/gcc/arm-none-eabi/4.7.4/…/…/…/…/arm-none-eabi/bin/ld.exe: firmware_nuttx section .ARM.exidx' will not fit in regionflash’
c:/px4/toolchain/bin/…/lib/gcc/arm-none-eabi/4.7.4/…/…/…/…/arm-none-eabi/bin/ld.exe: address 0x81013fc of firmware_nuttx section __param' is not within regionflash’
c:/px4/toolchain/bin/…/lib/gcc/arm-none-eabi/4.7.4/…/…/…/…/arm-none-eabi/bin/ld.exe: address 0x81013fc of firmware_nuttx section __param' is not within regionflash’
c:/px4/toolchain/bin/…/lib/gcc/arm-none-eabi/4.7.4/…/…/…/…/arm-none-eabi/bin/ld.exe: region `flash’ overflowed by 10080 bytes
collect2.exe: error: ld returned 1 exit status
make[3]: *** [src/firmware/nuttx/firmware_nuttx] Error 1
make[2]: *** [src/firmware/nuttx/CMakeFiles/firmware_nuttx.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [px4fmu-v2_default] Error 2

How to solve? Thank you

I got the same error when making px4fmu-v2_default ! But I didn’t to solve,do you solve?

The pixhawk is limited to 1MB of flash and is very close to the limit. Older versions of GCC seem to create slightly larger binaries which have pushed you over the limit. You need to either update to a newer version of gcc or comment out modules in the px4fmu-v2 config to save space.

cmake/configs/nuttx_px4fmu-v2_default.cmake
You could add a # in front of drivers/mpu9250 on line 21 and recompile