Buttonless DFU without peer manager

Hello all,

I am merging the buttonless DFU example with my application for nRF52805.

Everything is well, but I am running out of flash. I am therefore trying to reduce NRF_DFU_APP_DATA_AREA_SIZE from 8192 to 4096 in my bootloader, which works. I can do OTA upgrades, but not store any application data by FDS. 

As I don't need any bonding, I supposed it would be fine to disable the peer manager, I delete all related code in the application and made sure NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS is set to 0.
This does reduce the package size by a lot, and I can flash this firmware OTA once after flashing the bootloader. When I try to update firmware again by the buttonless DFU service, I can connect, open the DFU menu in nRF connect and select my application, but when I try to upload this it gets stuck at initializing and disconnects after a while with a Gatt timeout.

Is it possible to use the buttonless DFU service without peer manager? (or is this even a good idea)
Are there any other ways to reduce application size? I already tried disabling logging and minimize the amount of libraries included.

Related