How to start update custom firmware in nrf52840 dongle?

I am having nrf52840 dongle,my purpose is to make it a peripheral device,enable gatt,change tx power through gatt.i uploaded blinky hex code(compiled in vs code ) to the controller using programmer tool in nrf connect.it works well. but when i upload the peripheral_lbs hex code it does not advertis?why?

how to upload the custom firmware then?

i can see the below error in programmer tool

sdk version 2.8

Hash is generated by SHA256
14:58:17.010
Performing DFU. This may take a few seconds
14:58:30.678
All dfu images have been written to the target device
14:58:40.643
Failed to detect device after reboot. Timed out after 10 seconds.
14:58:40.647
Update files regions according to Application core
14:58:40.647
Parse memory regions for file
Related