1 month, 3 weeks ago.  This question has been closed. Reason: Duplicate question

mbed studio debugger failing

Using mbed studio 0.5.3 on Windows 10

Testing with the mbed-os-example-blinky which is loaded using the menu option: 'File -> Import Program', build profile is set to 'Debug'

Target is an EA LPC4088 Quickstart board which is connected and recognised by mbed studio.

When I click on the debug icon, the example compiles but I get the following in the Debug Console:

0000572:WARNING:pyusb_v2_backend:Exception getting product string: [Errno 2] Entity not found 0000573:WARNING:pyusb_v2_backend:Exception getting product string: [Errno 19] No such device (it may have been disconnected) 0000574:WARNING:pyusb_v2_backend:Exception getting product string: [Errno 13] Access denied (insufficient permissions) 0000630:INFO:board:Target type is lpc4088qsb 0000674:INFO:dap:DP IDR = 0x2ba01477 0000694:INFO:dap:AP#0 IDR = 0x24770011 0000708:INFO:rom_table:AP#0 ROM table #0 @ 0xe00ff000 (designer=43b part=4c4) 0000721:INFO:rom_table:[0] 0000730:INFO:rom_table:[1] 0000738:INFO:rom_table:[2] 0000747:INFO:rom_table:[3] 0000754:INFO:rom_table:[4] 0000763:INFO:rom_table:[5] 0000769:INFO:cortex_m:CPU core is Cortex-M4 r0p1 0000782:INFO:cortex_m:FPU present: FPv4-SP 0000790:INFO:dwt:4 hardware watchpoints 0000794:INFO:fpb:6 hardware breakpoints, 4 literal comparators 0000827:INFO:server:Semihost server started on port 4444 0000828:INFO:gdbserver:GDB server started on port 50000 Reading symbols from f:\Users\[User]\Documents\Mbed Studio\Development\mbed-os-example-blinky\BUILD\LPC4088\ARMC6\mbed-os-example-blinky.elf... warning: Loadable section "RW_IRAM1" outside of ELF segments done. 0001337:INFO:gdbserver:One client connected! warning: Loadable section "RW_IRAM1" outside of ELF segments hal_sleep () at ./mbed-os/targets/TARGET_NXP/TARGET_LPC408X\sleep.c:28 28 __NOP(); Not implemented stop reason (assuming exception): undefined 0001398:INFO:gdbserver:Attempting to load Argon 0001400:INFO:gdbserver:Attempting to load RTX5 0001402:INFO:gdbserver:RTX5 loaded successfully [---|---|---|---|---|---|---|---|---|----] [========================================] 0006498:INFO:loader:Programmed 35932 bytes (9 pages) at 6.96 kB/s (0 pages unchanged) Note: automatically using hardware breakpoints for read-only addresses. 0006752:ERROR:gdbserver:Unhandled exception in handle_message: Traceback (most recent call last): File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\gdbserver\gdbserver.py", line 539, in handle_message reply = handler(msg[msgStart:]) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\gdbserver\gdbserver.py", line 768, in v_command return self.v_cont(cmd) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\gdbserver\gdbserver.py", line 819, in v_cont return self.resume(None) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\gdbserver\gdbserver.py", line 691, in resume self.target.resume() File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\cortex_m.py", line 953, in resume self.flush() File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\core\target.py", line 145, in flush self.session.probe.flush() File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\cmsis_dap_probe.py", line 235, in flush six.raise_from(self._convert_exception(exc), exc) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\six.py", line 737, in raise_from raise value TransferError warning: Remote failure reply: E01 0006763:ERROR:gdbserver:Unhandled exception in handle_message: Traceback (most recent call last): File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\gdbserver\gdbserver.py", line 537, in handle_message reply = handler() File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\gdbserver\gdbserver.py", line 972, in get_registers return self.create_rsp_packet(self.target_facade.get_register_context()) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\gdbserver\context_facade.py", line 67, in get_register_context vals = self._context.read_core_registers_raw(reg_num_list) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\debug\context.py", line 82, in read_core_registers_raw return self._core.read_core_registers_raw(reg_list) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\cortex_m.py", line 1013, in read_core_registers_raw singleValues = self.read_core_registers_raw(singleRegList) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\cortex_m.py", line 1025, in read_core_registers_raw self.write_memory(CortexM.DCRSR, reg) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\cortex_m.py", line 597, in write_memory self.ap.write_memory(addr, value, transfer_size) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\ap.py", line 254, in _write_memory self.write_reg(MEM_AP_DRW, data) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\ap.py", line 227, in write_reg super(MEM_AP, self).write_reg(addr, data) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\ap.py", line 174, in write_reg self.dp.write_ap((self.ap_num << APSEL_SHIFT) | addr, data) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\coresight\dap.py", line 263, in write_ap self.link.write_ap(addr, data) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\pyocd\probe\cmsis_dap_probe.py", line 318, in write_ap six.raise_from(self._convert_exception(error), error) File "c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\lib\site-packages\six.py", line 737, in raise_from raise value TransferError Remote failure reply: E01

From a CMD console I can see that the board is recognised by pyocd:

c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\Scripts>pyocd list 0000493:WARNING:pyusb_v2_backend:Exception getting product string: [Errno 2] Entity not found 0000495:WARNING:pyusb_v2_backend:Exception getting product string: [Errno 19] No such device (it may have been disconnected) 0000496:WARNING:pyusb_v2_backend:Exception getting product string: [Errno 13] Access denied (insufficient permissions) ## => Board Name | Unique ID -- -- ---------------------- 0 => EA-LPC4088 [lpc4088qsb] | 1060000004833f6500000000000000000000000097969902

c:\Users\[User]\AppData\Local\Mbed Studio\mbed-studio-tools\python\Scripts> ##

Is there something I'm missing?

OK, found the docs that my target isn't officially supported.

posted by Chris Hoffmann 12 Sep 2019