I am trying to modify the bootloader, now it is exceeding the 16KB size, so to increase the size of the bootloader, I modified hwdwf.dat from “FLASH_BOOTLOADER_LOAD_KB 16” to “FLASH_BOOTLOADER_LOAD_KB 20”.
Now bootloader is getting complied sucessfully but when I am trying to build the complete firmware, I am getting following error:
[774/777] Generating bin/arducopter.bin
[775/777] apj_gen build/CubeBlack/bin/arducopter.bin
[776/777] Generating bin/arducopter.hex
Bad blimage size 16680
Please suggest the fix.