Debug issue on STM32H747i-disco board

I have installed Mbed Studio 1.4.5 and tried building blinky example for STM32H747i-disco board and was able to successfully build and run the application on the target board. I can see the LED blinking. But when I start the debug session, I get this notification.

localhost:50001: No connection could be made because the target machine actively refused it.

Here is the log at the output. Any idea what could be wrong?

Update Image: BUILD/DISCO_H747I/ARMC6\mbed-os-example-blinky_update.bin
Image: BUILD/DISCO_H747I/ARMC6\mbed-os-example-blinky.bin
0001827:ERROR:rom_table:Error attempting to probe CoreSight component referenced by ROM table entry #0: Memory transfer fault (read) @ 0xe000efbc-0xe000f043
Traceback (most recent call last):
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\rom_table.py”, line 358, in _read_table
self._handle_table_entry(entry, entryNumber)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\rom_table.py”, line 408, in _handle_table_entry
cmpid.read_id_registers()
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\rom_table.py”, line 113, in read_id_registers
regs = self.ap.read_memory_block32(self.top_address + self.IDR_READ_START, self.IDR_READ_COUNT)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\stlink_probe.py”, line 271, in read_memory_block32
return conversion.byte_list_to_u32le_list(self._link.read_mem32(addr, size * 4, self._apsel))
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\stlink\stlink.py”, line 385, in read_mem32
return self._read_mem(addr, size, Commands.JTAG_READMEM_32BIT, self.MAXIMUM_TRANSFER_SIZE, apsel)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\stlink\stlink.py”, line 343, in _read_mem
raise exc
pyocd.core.exceptions.TransferFaultError: Memory transfer fault (read) @ 0xe000efbc-0xe000f043
0001855:WARNING:rom_table:Invalid coresight component, cidr=0x0
0001856:WARNING:rom_table:Invalid coresight component, cidr=0x0
0001857:ERROR:rom_table:Error attempting to probe CoreSight component referenced by ROM table entry #5: Memory transfer fault (read) @ 0xe00f0fbc-0xe00f1043
Traceback (most recent call last):
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\rom_table.py”, line 358, in _read_table
self._handle_table_entry(entry, entryNumber)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\rom_table.py”, line 408, in _handle_table_entry
cmpid.read_id_registers()
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\rom_table.py”, line 113, in read_id_registers
regs = self.ap.read_memory_block32(self.top_address + self.IDR_READ_START, self.IDR_READ_COUNT)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\stlink_probe.py”, line 271, in read_memory_block32
return conversion.byte_list_to_u32le_list(self._link.read_mem32(addr, size * 4, self._apsel))
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\stlink\stlink.py”, line 385, in read_mem32
return self._read_mem(addr, size, Commands.JTAG_READMEM_32BIT, self.MAXIMUM_TRANSFER_SIZE, apsel)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\stlink\stlink.py”, line 343, in read_mem
raise exc
pyocd.core.exceptions.TransferFaultError: Memory transfer fault (read) @ 0xe00f0fbc-0xe00f1043
0003907:WARNING:cortex_m:Timed out waiting for target to complete reset (state is RUNNING)
0003913:CRITICAL:main:cannot write registers pc, r0, r1, r2, r9, sp, lr because core #0 is not halted
Traceback (most recent call last):
File "c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd_main
.py", line 402, in run
self.COMMANDSself._args.cmd
File "c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd_main
.py", line 579, in do_flash
file_format=self._args.format)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\file_programmer.py”, line 157, in program
self._loader.commit()
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\loader.py”, line 168, in commit
keep_unwritten=self._keep_unwritten)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\builder.py”, line 421, in program
self._build_sectors_and_pages(keep_unwritten)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\builder.py”, line 319, in _build_sectors_and_pages
fill_end_of_page_gap()
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\builder.py”, line 263, in fill_end_of_page_gap
self._enable_read_access()
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\builder.py”, line 222, in _enable_read_access
self.flash.init(self.flash.Operation.VERIFY)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\flash.py”, line 251, in init
r0=address, r1=clock, r2=operation.value, init=True)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\flash.py”, line 603, in _call_function_and_wait
self._call_function(pc, r0, r1, r2, r3, init)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\flash\flash.py”, line 543, in _call_function
self.target.write_core_registers_raw(reg_list, data_list)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\soc_target.py”, line 188, in write_core_registers_raw
self.selected_core.write_core_registers_raw(reg_list, data_list)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\cortex_m.py”, line 1096, in write_core_registers_raw
self._base_write_core_registers_raw(reg_list, data_list)
File “c:\Users\xxxxxxx\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\cortex_m.py”, line 1114, in _base_write_core_registers_raw
self.core_number))
pyocd.core.exceptions.CoreRegisterAccessError: cannot write registers pc, r0, r1, r2, r9, sp, lr because core #0 is not halted