Calculate the size of application code in nrf52840 flash

Hi i am using nordic nrf52840 chip.

i programmed one application at 0x27000 address, and now i want to calculate the size of that application code in run time.

i have my own bootloader code at 0x5E000. and in that bootloader i want to calculate the address of my application code which i programmed at 0x27000 address.

can some one let me know the way i can calculate the size of my application.

is there any nordic API available for that.

Regards

RS 

Related