Bootloader Flashing issue

I am working on F1KM-S1 controller.

I am using bootloader to flash the code.

While connecting debugger and bootloader flashing at the same time, it's working. 

But when mcu in standalone, the FCL operations like erase /Flash are not happening.

The additional details are ,

;-----------------------------------------------------------------------------
; hdwinit
; Specify RAM addresses suitable to your system if needed.
;-----------------------------------------------------------------------------
GLOBAL_RAM_ADDR .set 0
GLOBAL_RAM_END .set 0
LOCAL_RAM_ADDR .set 0xfede0000
LOCAL_RAM_END .set 0xfedf7fff

.align 2
_hdwinit:
mov lp, r14 ; save return address

; clear Global RAM
mov GLOBAL_RAM_ADDR, r6
mov GLOBAL_RAM_END, r7
jarl _zeroclr4, lp

; clear Local RAM
mov LOCAL_RAM_ADDR, r6
mov LOCAL_RAM_END, r7
jarl _zeroclr4, lp

mov r14, lp
jmp [lp]

;-----------------------------------------------------------------------------
; zeroclr4
;-----------------------------------------------------------------------------
.align 2
_zeroclr4:
br .L.zeroclr4.2
.L.zeroclr4.1:
st.w r0, [r6]
add 4, r6
.L.zeroclr4.2:
cmp r6, r7
bh .L.zeroclr4.1
jmp [lp]

  Kindly support on this issue