Continuously getting Failed to set GDB proxy

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Starting today when attempting to debug my SAMD10 XPlained Mini board in ATMEL studio 7 I've been getting the message "Failed to set GDB proxy" with no fix from anything.

 

I've attempted to follow the instructions for the solution to a similar problem found  https://www.avrfreaks.net/forum/atmel-studio-7-failed-set-gdb-proxy-solved  there to no avail even though I've set the SWD from it's default 2MHz to 1MHz and 32KHz. Not any of that solved my issue.

 

I have the output of the backend agent at logging level "info" here done via the same commands as the thread mentioned above says to do:

12 33 25 722: msg recv(b8):C 212 Tool setupTool "com.atmel.avrdbg.tool.medbg" "com.atmel.avrdbg.connection.cmsis-dap" {"Type":"com.atmel.avrdbg.connection.cmsis-dap","SerialNumber":"ATML2378032700000304","DapProduct":"mEDBG CMSIS-DAP","UsbVendorId":1003,"UsbProductId":8517}
12 33 25 772: msg send(b8):E Tool contextAdded [{"ID":"AT_19","Name":"com.atmel.avrdbg.tool.medbg","DeviceId":"","MajorFirmwareVersionOnDisk":1,"MinorFirmwareVersionOnDisk":22,"CanEraseXmegaPages":1,"CanSetTargetVoltage":1}]
12 33 25 772: msg send(b8):R 212  "AT_19"
12 33 25 774: msg recv(b8):C 213 Tool getContext "AT_19"
12 33 25 775: msg send(b8):R 213  {"ID":"AT_19","Name":"com.atmel.avrdbg.tool.medbg","DeviceId":"","MajorFirmwareVersionOnDisk":1,"MinorFirmwareVersionOnDisk":22,"CanEraseXmegaPages":1,"CanSetTargetVoltage":1}
12 33 25 776: msg recv(b8):C 214 Tool connect "AT_19"
12 33 25 843: pro Mk3HouseKeepingProtocol::startSession()
12 33 25 843: pro JtagIce3 <<< 10 00
12 33 25 843: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=2 msg=00 FF 
12 33 25 851: dap DAP_Commands replySize0=64 msg=00 02 40 00 44 ...
12 33 25 851: pro Tool packet size is 64
12 33 25 851: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 860: dap DAP_Commands replySize0=64 msg=81 00 40 00 44 ...
12 33 25 860: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=11 msg=80 11 00 07 0E 00 00 00 01 10 00 
12 33 25 867: dap DAP_Commands replySize0=64 msg=80 01 40 00 44 ...
12 33 25 867: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 875: dap DAP_Commands replySize0=64 msg=81 11 00 06 0E ...
12 33 25 875: pro JtagIce3 >>> 80 00
12 33 25 875: prg Event listener object is destroyed while listener thread is running
12 33 25 875: pro Mk3Protocol::get()
12 33 25 875: pro JtagIce3 <<< 02 00 00 00 01
12 33 25 875: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 01 00 01 02 00 00 00 01 
12 33 25 883: dap DAP_Commands replySize0=64 msg=80 01 00 06 0E ...
12 33 25 891: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 899: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 25 899: pro JtagIce3 >>> 84 01 00 00
12 33 25 899: pro Mk3Protocol::get()
12 33 25 899: pro JtagIce3 <<< 02 00 00 01 01
12 33 25 899: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 02 00 01 02 00 00 01 01 
12 33 25 907: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 25 907: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 915: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 25 915: pro JtagIce3 >>> 84 01 01 00
12 33 25 915: pro Mk3Protocol::get()
12 33 25 915: pro JtagIce3 <<< 02 00 00 02 01
12 33 25 915: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 03 00 01 02 00 00 02 01 
12 33 25 923: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 25 931: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 939: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 25 939: pro JtagIce3 >>> 84 01 0C 00
12 33 25 939: pro Mk3Protocol::get()
12 33 25 939: pro JtagIce3 <<< 02 00 00 03 02
12 33 25 939: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 04 00 01 02 00 00 03 02 
12 33 25 947: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 25 948: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 955: dap DAP_Commands replySize0=64 msg=81 11 00 09 0E ...
12 33 25 955: pro JtagIce3 >>> 84 01 23 00 00
12 33 25 955: pro Mk3Protocol::get()
12 33 25 955: pro JtagIce3 <<< 02 00 00 05 01
12 33 25 955: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 05 00 01 02 00 00 05 01 
12 33 25 963: dap DAP_Commands replySize0=64 msg=80 01 00 09 0E ...
12 33 25 963: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 971: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 25 971: pro JtagIce3 >>> 84 01 02 00
12 33 25 971: pro Mk3Protocol::get()
12 33 25 971: pro JtagIce3 <<< 02 00 00 09 01
12 33 25 971: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 06 00 01 02 00 00 09 01 
12 33 25 979: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 25 987: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 25 995: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 25 995: pro JtagIce3 >>> 84 01 FE 00
12 33 25 995: pro Mk3DiscoveryProtocol::query()
12 33 25 995: pro Mk3Protocol::query()
12 33 25 995: pro JtagIce3 <<< 00 00 00
12 33 25 995: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=12 msg=80 11 00 08 0E 00 07 00 00 00 00 00 
12 33 26 003: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 26 003: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 26 011: dap DAP_Commands replySize0=64 msg=81 11 00 09 0E ...
12 33 26 012: pro JtagIce3 >>> 81 00 00 01 20
12 33 26 012: pro Mk3Protocol::query()
12 33 26 012: pro JtagIce3 <<< 00 00 02
12 33 26 012: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=12 msg=80 11 00 08 0E 00 08 00 01 00 00 02 
12 33 26 019: dap DAP_Commands replySize0=64 msg=80 01 00 09 0E ...
12 33 26 019: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 26 029: dap DAP_Commands replySize0=64 msg=81 11 00 06 0E ...
12 33 26 029: pro JtagIce3 >>> 81 00
12 33 26 029: pro Mk3Protocol::query()
12 33 26 029: pro JtagIce3 <<< 00 00 02
12 33 26 029: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=12 msg=80 11 00 08 0E 00 09 00 01 00 00 02 
12 33 26 036: dap DAP_Commands replySize0=64 msg=80 01 00 06 0E ...
12 33 26 036: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 26 043: dap DAP_Commands replySize0=64 msg=81 11 00 06 0E ...
12 33 26 043: pro JtagIce3 >>> 81 00
12 33 26 044: msg send(b8):R 214
12 33 26 048: msg recv(b8):C 215 Tool checkFirmware "AT_19"
12 33 26 048: pro Mk3Protocol::get()
12 33 26 048: pro JtagIce3 <<< 02 00 00 09 01
12 33 26 052: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 0A 00 01 02 00 00 09 01 
12 33 26 060: dap DAP_Commands replySize0=64 msg=80 01 00 06 0E ...
12 33 26 060: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 26 068: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 26 068: pro JtagIce3 >>> 84 01 FE 00
12 33 26 068: pro Mk3Protocol::get()
12 33 26 068: pro JtagIce3 <<< 02 00 00 09 01
12 33 26 068: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 0B 00 01 02 00 00 09 01 
12 33 26 075: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 26 076: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 26 083: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 26 229: pro JtagIce3 >>> 84 01 FE 00
12 33 26 229: pro Mk3Protocol::get()
12 33 26 229: pro JtagIce3 <<< 02 00 00 09 01
12 33 26 235: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 0C 00 01 02 00 00 09 01 
12 33 26 243: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 26 243: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 26 251: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 26 251: pro JtagIce3 >>> 84 01 FE 00
12 33 26 251: pro Mk3Protocol::get()
12 33 26 251: pro JtagIce3 <<< 02 00 00 09 01
12 33 26 251: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=14 msg=80 11 00 0A 0E 00 0D 00 01 02 00 00 09 01 
12 33 26 259: dap DAP_Commands replySize0=64 msg=80 01 00 08 0E ...
12 33 26 259: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=1 msg=81 
12 33 26 267: dap DAP_Commands replySize0=64 msg=81 11 00 08 0E ...
12 33 26 268: pro JtagIce3 >>> 84 01 FE 00
12 33 26 268: msg send(b8):R 215
12 33 27 373: msg recv(b8):C 216 Tool setProperties "AT_19" {"InterfaceProperties":{"SwdClock":2000000,"KeepTimersRunning":true,"ProjectFolder":"C:\\Users\\User\\Documents\\Atmel Studio\\7.0\\LED_TOGGLE1\\LED_TOGGLE1"},"InterfaceName":"SWD","DeviceName":"ATSAMD10D14AM","PackPath":"C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/SAMD10_DFP/1.1.77/Atmel.SAMD10_DFP.pdsc"}
12 33 27 373: msg send(b8):E Device contextAdded [{"ID":"ArmDev_17","Name":"ATSAMD10D14AM","Session":0,"MemoryIDs":[],"RunControlID":""}]
12 33 27 374: msg send(b8):E Tool contextChanged [{"ID":"AT_19","Name":"com.atmel.avrdbg.tool.medbg","DeviceId":"ArmDev_17","InterfaceName":"SWD","InterfaceProperties":{"SwdClock":2000000},"HardwareRevision":0,"MajorFirmwareVersion":1,"MinorFirmwareVersion":12,"FirmwareBuildNumber":35,"Chipset":2,"FirmwareId":254,"CanDoUpdiHvActivation":false,"MajorFirmwareVersionOnDisk":1,"MinorFirmwareVersionOnDisk":12,"CanEraseXmegaPages":1,"CanSetTargetVoltage":1}]
12 33 27 374: msg send(b8):R 216
12 33 27 381: msg recv(b8):C 217 Tool getContext "AT_19"
12 33 27 918: msg send(b8):R 217  {"ID":"AT_19","Name":"com.atmel.avrdbg.tool.medbg","DeviceId":"ArmDev_17","InterfaceName":"SWD","InterfaceProperties":{"SwdClock":2000000},"HardwareRevision":0,"MajorFirmwareVersion":1,"MinorFirmwareVersion":12,"FirmwareBuildNumber":35,"Chipset":2,"FirmwareId":254,"CanDoUpdiHvActivation":false,"MajorFirmwareVersionOnDisk":1,"MinorFirmwareVersionOnDisk":12,"CanEraseXmegaPages":1,"CanSetTargetVoltage":1}
12 33 27 922: msg recv(b8):C 218 Device getContext "ArmDev_17"
12 33 27 923: msg send(b8):R 218  {"ID":"ArmDev_17","Name":"ATSAMD10D14AM","Session":0,"MemoryIDs":[],"RunControlID":""}
12 33 28 245: msg recv(b8):C 219 Processes launch "C:\\Users\\User\\Documents\\Atmel Studio\\7.0\\LED_TOGGLE1\\LED_TOGGLE1\\Debug\\LED_TOGGLE1.elf" "ArmDev_17" {"LaunchSuspended":true,"LaunchAttached":true,"CacheFlash":true,"EraseRule":0,"PreserveEeprom":true,"RamSnippetAddress":"0x20000000","ProgFlashFromRam":true,"UseGdb":true,"GdbLocation":"C:\\Program Files (x86)\\Atmel\\Studio\\7.0\\toolchain\\arm\\arm-gnu-toolchain\\bin\\arm-none-eabi-gdb.exe","BootSegment":2,"ResetRule":0,"PackPath":"C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/SAMD10_DFP/1.1.77/Atmel.SAMD10_DFP.pdsc"}
12 33 28 245: msg send(b8):P 219 {"Description":"Launching...","ProgressComplete":0,"ProgressTotal":100}
12 33 28 245: msg send(b8):P 219 {"Description":"Starting programming session...","ProgressComplete":1,"ProgressTotal":100}
12 33 28 246: msg send(b8):P 219 {"Description":"Erasing device...","ProgressComplete":5,"ProgressTotal":100}
12 33 28 331: dap Entering reset extension
12 33 28 339: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=10 msg=85 06 00 00 81 80 00 80 00 80 
12 33 28 366: dap DAP_Commands replySize0=64 msg=85 00 01 00 44 ...
12 33 28 793: prg SAMD - chip erase
12 33 28 801: dap RDDI_DAP_WriteD8 41002100 10
12 33 28 894: dap RDDI_DAP_ReadD8 41002101 3
12 33 28 895: prg Connect to the device OCD
12 33 29 567: dap RDDI_DAP_ReadD32 e000ed00 410cc601
12 33 29 583: dap RDDI_DAP_WriteD32 e000edf0 a05f0003
12 33 29 618: dap RDDI_DAP_WriteD32 e000edfc 01000001
12 33 29 710: dap RDDI_DAP_ReadD8 41002001 3
12 33 29 710: dap RDDI_DAP_WriteD8 41002001 2
12 33 29 744: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=5 msg=11 80 84 1E 00 
12 33 29 752: dap DAP_Commands replySize0=64 msg=11 00 01 00 03 ...
12 33 29 770: dap RDDI_DAP_ReadD32 e0002000 40
12 33 29 770: dap RDDI_DAP_WriteD32 e0002000 00000043
12 33 29 795: dap RDDI_DAP_ReadD32 e000edf0 3030003
12 33 29 795: dap Halting DHCSR =S_RESET_ST.S_RETIRE.S_HALT.S_REGRDY.C_HALT.C_DEBUGEN SAMD2x held in reset, exiting.
12 33 29 795: dap RDDI_DAP_WriteD32 e000edf0 a05f0003
12 33 29 802: dap RDDI_DAP_WriteD32 e000edfc 01000001
12 33 29 826: dap RDDI_DAP_ReadD8 41002001 1
12 33 29 842: dap RDDI_DAP_ReadD32 e000edf0 30003
12 33 29 882: dap after exit reset extension DHCSR =S_HALT.S_REGRDY.C_HALT.C_DEBUGEN halted at PC = fffffffe
12 33 29 889: xml Segment definition is rw but size smaller than erase page for segment OTP4
12 33 29 889: prg Starting debugging
12 33 29 890: msg send(b8):E RunControl contextAdded [{"ID":"armRC17","CanSuspend":true,"CanResume":262143,"CanCount":262143,"IsContainer":false,"HasState":true,"CanTerminate":true}]
12 33 29 891: msg send(b8):E Registers contextAdded [{"ID":"Reg_R0_417","ProcessID":"Proc_17","Name":"R0","Size":4},{"ID":"Reg_R1_418","ProcessID":"Proc_17","Name":"R1","Size":4},{"ID":"Reg_R2_419","ProcessID":"Proc_17","Name":"R2","Size":4},{"ID":"Reg_R3_420","ProcessID":"Proc_17","Name":"R3","Size":4},{"ID":"Reg_R4_421","ProcessID":"Proc_17","Name":"R4","Size":4},{"ID":"Reg_R5_422","ProcessID":"Proc_17","Name":"R5","Size":4},{"ID":"Reg_R6_423","ProcessID":"Proc_17","Name":"R6","Size":4},{"ID":"Reg_R7_424","ProcessID":"Proc_17","Name":"R7","Size":4},{"ID":"Reg_R8_425","ProcessID":"Proc_17","Name":"R8","Size":4},{"ID":"Reg_R9_426","ProcessID":"Proc_17","Name":"R9","Size":4},{"ID":"Reg_R10_427","ProcessID":"Proc_17","Name":"R10","Size":4},{"ID":"Reg_R11_428","ProcessID":"Proc_17","Name":"R11","Size":4},{"ID":"Reg_R12_429","ProcessID":"Proc_17","Name":"R12","Size":4},{"ID":"Reg_SP_430","ProcessID":"Proc_17","Name":"SP","Size":4},{"ID":"Reg_LR_431","ProcessID":"Proc_17","Name":"LR","Size":4},{"ID":"Reg_PC_432","ProcessID":"Proc_17","N...
12 33 29 891: msg send(b8):E Memory contextAdded [{"ID":"Mem_base_33","BigEndian":false,"AddressSize":4,"Name":"base","StartBound":0,"EndBound":4294967295},{"ID":"Mem_fuses_34","BigEndian":false,"AddressSize":4,"Name":"fuses","StartBound":0,"EndBound":4294967295}]
12 33 29 916: dap RDDI_DAP_ReadD32 41002018 10020100
12 33 29 916: msg send(b8):P 219 {"Description":"Loading module...","ProgressComplete":5,"ProgressTotal":100}
12 33 29 916: msg send(b8):P 219 {"Description":"Loading executable ...","ProgressComplete":14,"ProgressTotal":100}
12 33 29 931: dbg Writing contents of 'C:\Users\User\Documents\Atmel Studio\7.0\LED_TOGGLE1\LED_TOGGLE1\Debug\LED_TOGGLE1.elf' to target 'ATSAMD10D14AM'...
12 33 29 931: dbg Writing segment 0x0:0x780 mapped as 0x0:0x780 in 'base'.
12 33 29 981: dap RDDI_DAP_ReadD32 e000ed30 9
12 33 29 981: dap DSFR is 9, VectorCatch, StopReason = UserRequest
12 33 29 987: dap RDDI_DAP_ReadBlock 700 0x100
12 33 30 104: dbg Writing segment 0x780:0x784 mapped as 0x780:0x784 in 'base'.
12 33 30 104: msg send(b8):P 219 {"Description":"Programming","ProgressComplete":14,"ProgressTotal":100}
12 33 30 104: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":0,"size":256}]
12 33 30 104: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":256,"size":256}]
12 33 30 104: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":512,"size":256}]
12 33 30 104: msg send(b8):P 219 {"Description":"Programming","ProgressComplete":15,"ProgressTotal":100}
12 33 30 105: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":768,"size":256}]
12 33 30 105: msg send(b8):P 219 {"Description":"Programming","ProgressComplete":16,"ProgressTotal":100}
12 33 30 105: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":1024,"size":256}]
12 33 30 105: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":1280,"size":256}]
12 33 30 105: msg send(b8):P 219 {"Description":"Programming","ProgressComplete":17,"ProgressTotal":100}
12 33 30 105: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":1536,"size":256}]
12 33 30 105: msg send(b8):E Memory memoryChanged "Mem_base_33" [{"addr":1792,"size":256}]
12 33 30 105: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":17,"ProgressTotal":100}
12 33 30 121: dap RDDI_DAP_ReadD32 41004004 0
12 33 30 121: dap RDDI_DAP_WriteD32 41004004 0000001e
12 33 30 128: dap RDDI_DAP_WriteD32 0 ffffffff
12 33 30 136: dap RDDI_DAP_WriteD16 41004000 a502
12 33 30 177: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 182: dap RDDI_DAP_WriteBlock 0 0x40
12 33 30 318: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 318: dap RDDI_DAP_WriteBlock 40 0x40
12 33 30 395: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 395: dap RDDI_DAP_WriteBlock 80 0x40
12 33 30 473: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 473: dap RDDI_DAP_WriteBlock c0 0x40
12 33 30 606: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 607: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":22,"ProgressTotal":100}
12 33 30 607: dap RDDI_DAP_WriteD32 100 ffffffff
12 33 30 622: dap RDDI_DAP_WriteD16 41004000 a502
12 33 30 671: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 671: dap RDDI_DAP_WriteBlock 100 0x40
12 33 30 748: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 748: dap RDDI_DAP_WriteBlock 140 0x40
12 33 30 881: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 881: dap RDDI_DAP_WriteBlock 180 0x40
12 33 30 958: dap RDDI_DAP_ReadD8 41004014 1
12 33 30 958: dap RDDI_DAP_WriteBlock 1c0 0x40
12 33 31 035: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 035: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":26,"ProgressTotal":100}
12 33 31 036: dap RDDI_DAP_WriteD32 200 ffffffff
12 33 31 099: dap RDDI_DAP_WriteD16 41004000 a502
12 33 31 157: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 157: dap RDDI_DAP_WriteBlock 200 0x40
12 33 31 226: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 231: dap RDDI_DAP_WriteBlock 240 0x40
12 33 31 302: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 302: dap RDDI_DAP_WriteBlock 280 0x40
12 33 31 436: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 437: dap RDDI_DAP_WriteBlock 2c0 0x40
12 33 31 513: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 513: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":31,"ProgressTotal":100}
12 33 31 513: dap RDDI_DAP_WriteD32 300 ffffffff
12 33 31 529: dap RDDI_DAP_WriteD16 41004000 a502
12 33 31 577: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 577: dap RDDI_DAP_WriteBlock 300 0x40
12 33 31 646: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 646: dap RDDI_DAP_WriteBlock 340 0x40
12 33 31 781: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 781: dap RDDI_DAP_WriteBlock 380 0x40
12 33 31 849: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 849: dap RDDI_DAP_WriteBlock 3c0 0x40
12 33 31 926: dap RDDI_DAP_ReadD8 41004014 1
12 33 31 926: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":35,"ProgressTotal":100}
12 33 31 927: dap RDDI_DAP_WriteD32 400 ffffffff
12 33 31 942: dap RDDI_DAP_WriteD16 41004000 a502
12 33 31 982: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 045: dap RDDI_DAP_WriteBlock 400 0x40
12 33 32 124: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 124: dap RDDI_DAP_WriteBlock 440 0x40
12 33 32 201: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 201: dap RDDI_DAP_WriteBlock 480 0x40
12 33 32 336: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 336: dap RDDI_DAP_WriteBlock 4c0 0x40
12 33 32 404: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 404: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":40,"ProgressTotal":100}
12 33 32 410: dap RDDI_DAP_WriteD32 500 ffffffff
12 33 32 428: dap RDDI_DAP_WriteD16 41004000 a502
12 33 32 468: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 474: dap RDDI_DAP_WriteBlock 500 0x40
12 33 32 610: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 610: dap RDDI_DAP_WriteBlock 540 0x40
12 33 32 687: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 687: dap RDDI_DAP_WriteBlock 580 0x40
12 33 32 765: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 765: dap RDDI_DAP_WriteBlock 5c0 0x40
12 33 32 899: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 899: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":44,"ProgressTotal":100}
12 33 32 899: dap RDDI_DAP_WriteD32 600 ffffffff
12 33 32 915: dap RDDI_DAP_WriteD16 41004000 a502
12 33 32 962: dap RDDI_DAP_ReadD8 41004014 1
12 33 32 963: dap RDDI_DAP_WriteBlock 600 0x40
12 33 33 040: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 040: dap RDDI_DAP_WriteBlock 640 0x40
12 33 33 174: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 174: dap RDDI_DAP_WriteBlock 680 0x40
12 33 33 250: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 250: dap RDDI_DAP_WriteBlock 6c0 0x40
12 33 33 327: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 327: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":49,"ProgressTotal":100}
12 33 33 327: dap RDDI_DAP_WriteD32 700 ffffffff
12 33 33 343: dap RDDI_DAP_WriteD16 41004000 a502
12 33 33 457: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 457: dap RDDI_DAP_WriteBlock 700 0x40
12 33 33 534: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 534: dap RDDI_DAP_WriteBlock 740 0x40
12 33 33 610: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 610: dap RDDI_DAP_WriteBlock 780 0x40
12 33 33 679: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 742: dap RDDI_DAP_WriteBlock 7c0 0x40
12 33 33 814: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 814: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":53,"ProgressTotal":100}
12 33 33 814: msg send(b8):P 219 {"Description":"Writing","ProgressComplete":89,"ProgressTotal":100}
12 33 33 814: msg send(b8):P 219 {"Description":"Programming","ProgressComplete":89,"ProgressTotal":100}
12 33 33 814: msg send(b8):P 219 {"Description":"Programming","ProgressComplete":95,"ProgressTotal":100}
12 33 33 820: dap RDDI_DAP_WriteD32 41004004 00000000
12 33 33 853: dap RDDI_DAP_ReadD8 41004014 1
12 33 33 869: dap RDDI_DAP_WriteD32 e000edfc 01000001
12 33 33 877: dap Reset core with SYSRESETREQ DHCSR =S_HALT.S_REGRDY.C_HALT.C_DEBUGEN
12 33 33 877: dap RDDI_DAP_WriteD32 e000ed0c 05fa0004
12 33 33 893: dap RDDI_DAP_ReadD32 e000edf0 3030003
12 33 33 893: dap After reset dhcsr =  DHCSR =S_RESET_ST.S_RETIRE.S_HALT.S_REGRDY.C_HALT.C_DEBUGEN
12 33 33 893: dap RDDI_DAP_WriteD32 e000edf0 a05f0003
12 33 33 901: dap RDDI_DAP_WriteD32 e000edfc 01000001
12 33 33 925: dap RDDI_DAP_ReadD8 41002001 0
12 33 33 941: dap RDDI_DAP_ReadD32 e000edf0 30003
12 33 33 941: dap After reset dhcsr =  DHCSR =S_HALT.S_REGRDY.C_HALT.C_DEBUGEN
12 33 33 941: dap RDDI_DAP_WriteD32 e000edfc 01000000
12 33 33 994: msg send(b8):E RunControl contextAdded [{"ID":"GdbRC_16","CanSuspend":true,"CanResume":262143,"CanCount":262143,"IsContainer":false,"HasState":true,"CanTerminate":true}]
12 33 33 994: msg send(b8):E RunControl contextSuspended "armRC17" 4294967294 "Step" {}
12 33 33 995: prx Waiting on TCP port 23310
12 33 34 045: gdb --->1-interpreter-exec console "set target-async on"
12 33 34 066: gdb =thread-group-added,id="i1"
12 33 34 067: gdb ~"GNU gdb (Atmel build: 508) 7.12.1.20170417-git\n"
12 33 34 067: gdb ~"Copyright (C) 2017 Free Software Foundation, Inc.\n"
12 33 34 070: gdb ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
12 33 34 071: gdb ~"This GDB was configured as \"--host=i686-w64-mingw32 --target=arm-none-eabi\".\nType \"show configuration\" for configuration details."
12 33 34 071: gdb ~"\nFor bug reporting instructions, please see:\n"
12 33 34 071: gdb ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
12 33 34 073: gdb ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
12 33 34 073: gdb ~"For help, type \"help\".\n"
12 33 34 074: gdb ~"Type \"apropos word\" to search for commands related to \"word\".\n"
12 33 34 074: gdb (gdb)
12 33 34 075: gdb =cmd-param-changed,param="mi-async",value="on"
12 33 34 075: gdb 1^done
12 33 34 075: gdb (gdb)
12 33 34 075: gdb --->2-interpreter-exec console "target remote localhost:23310"
12 33 44 100: gdb ~"Remote debugging using localhost:23310\n"
12 33 44 115: prx Connection on port 23310
12 33 44 116: prx arm-m-gdbserver: proxy_open()
12 33 44 116: prx arm-m-gdbserver: proxy_connect()
12 33 44 116: prx arm-m-gdbserver: proxy_stop()
12 33 44 198: dap RDDI_DAP_ReadD32 e000ef40 0
12 33 44 206: dap RDDI_DAP_ReadD32 e000ef44 0
12 33 44 241: gdb --->3-target-disconnect
12 33 44 351: dap Register 0 is 00000200
12 33 44 351: dap Register 1 is 02000000
12 33 44 351: dap Register 2 is 41004400
12 33 44 351: dap Register 3 is 93000000
12 33 44 351: dap Register 4 is 00000001
12 33 44 351: dap Register 5 is 00000001
12 33 44 351: dap Register 6 is 00000200
12 33 44 351: dap Register 7 is 41004400
12 33 44 351: dap Register 8 is 2000017c
12 33 44 351: dap Register 9 is 6b9bfb77
12 33 44 351: dap Register 10 is aa4b9bdf
12 33 44 351: dap Register 11 is bde7bff7
12 33 44 351: dap Register 12 is 41004400
12 33 44 351: dap Register 13 is 20000440
12 33 44 351: dap Register 14 is 00000599
12 33 44 351: dap Register 15 is 000005d8
12 33 44 369: dap RDDI_DAP_ReadD32 e0001004 0
12 33 44 369: prx arm-m-gdbserver: packet received: qSupported:multiprocess+;swbreak+;hwbreak+;qRelocInsn+;fork-events+;vfork-events+;exec-events+;vContSupported+;QThreadEvents+;no-resumed+
12 33 44 369: prx arm-m-gdbserver: sending packet: 63 bytes: $PacketSize=4000;qXfer:memory-map:read-;qXfer:features:read+#51...
12 33 44 369: prx arm-m-gdbserver: packet received: vMustReplyEmpty
12 33 44 369: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 370: prx arm-m-gdbserver: packet received: Hg0
12 33 44 370: prx arm-m-gdbserver: proxy_set_gen_thread()
12 33 44 370: prx arm-m-gdbserver: sending packet: 6 bytes: $OK#9a...
12 33 44 370: prx arm-m-gdbserver: packet received: qXfer:features:read:target.xml:0,fff
12 33 44 370: prx arm-m-gdbserver: sending packet: 1643 bytes: $l<?xml version="1.0"?><!DOCTYPE feature SYSTEM "gdb-target.dtd"><target><architecture>arm</architecture><feature name="org.gnu.gdb.arm.m-profile"><reg name="r0" bitsize="32" type="uint32" group="general"/><reg name="r1" bitsize="32" type="uint32" group="general"/><reg name="r2" bitsize="32" type="uint32" group="general"/><reg name="r3" bitsize="32" type="uint32" group="general"/><reg name="r4" bitsize="32" type="uint32" group="general"/><reg name="r5" bitsize=
12 33 44 371: prx arm-m-gdbserver: packet received: qTStatus
12 33 44 371: prx arm-m-gdbserver: proxy_raw_query()
12 33 44 371: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 371: prx arm-m-gdbserver: packet received: ?
12 33 44 371: prx arm-m-gdbserver: sending packet: 31 bytes: $T050f:d8050000;0d:40040020;#18...
12 33 44 371: prx arm-m-gdbserver: packet received: qfThreadInfo
12 33 44 371: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 371: prx arm-m-gdbserver: packet received: qL1200000000000000000
12 33 44 371: prx arm-m-gdbserver: proxy_list_query()
12 33 44 371: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 371: prx arm-m-gdbserver: packet received: Hc-1
12 33 44 371: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 371: prx arm-m-gdbserver: packet received: qC
12 33 44 371: prx arm-m-gdbserver: proxy_current_thread_query()
12 33 44 371: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 372: prx arm-m-gdbserver: packet received: qAttached
12 33 44 372: prx arm-m-gdbserver: proxy_raw_query()
12 33 44 372: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 372: gdb =thread-group-started,id="i1",pid="42000"
12 33 44 373: gdb &"warning: No executable has been specified and target does not support\ndetermining executable automatically.  Try using the \"file\" command."
12 33 44 373: gdb &"\n"
12 33 44 373: gdb =thread-created,id="1",group-id="i1"
12 33 44 373: prx arm-m-gdbserver: packet received: qL1200000000000000000
12 33 44 373: prx arm-m-gdbserver: proxy_list_query()
12 33 44 373: prx arm-m-gdbserver: sending packet: 4 bytes: $#00...
12 33 44 373: prx arm-m-gdbserver: packet received: m5d8,4
12 33 44 373: prx arm-m-gdbserver: proxy_read_mem(0x5D8, ptr, 4, ptr)
12 33 44 373: prx arm-m-gdbserver: sending packet: 12 bytes: $10b5264a#f5...
12 33 44 374: prx arm-m-gdbserver: packet received: g
12 33 44 374: prx arm-m-gdbserver: proxy_read_registers()
12 33 44 423: prx arm-m-gdbserver: sending packet: 164 bytes: $00020000000000020044004100000093010000000100000000020000004400417c01002077fb9b6bdf9b4baaf7bfe7bd004400414004002099050000d80500000000000140040020bcbd99df00000000#99...
12 33 44 423: prx arm-m-gdbserver: packet received: m5d8,2
12 33 44 423: prx arm-m-gdbserver: proxy_read_mem(0x5D8, ptr, 2, ptr)
12 33 44 423: prx arm-m-gdbserver: sending packet: 8 bytes: $10b5#f8...
12 33 44 424: gdb ~"0x000005d8 in ?? ()\n"
12 33 44 424: gdb *stopped,frame={addr="0x000005d8",func="??",args=[]},thread-id="1",stopped-threads="all"
12 33 44 424: gdb 2^done
12 33 44 424: gdb (gdb)
12 33 44 425: prx arm-m-gdbserver: error while reading from GDB
12 33 44 425: prx arm-m-gdbserver: debugger has terminated connection
12 33 44 425: gdb =thread-group-exited,id="i1"
12 33 44 425: gdb 3^done
12 33 44 425: gdb (gdb)
12 33 44 425: gdb --->4-interpreter-exec console "quit"
12 33 44 526: gdb Error while setting up GDB Failed to set gdb proxy
12 33 44 526: gdb Failed to set gdb proxy
12 33 44 526: msg send(b8):P 219 {"Description":"Launch failed...","ProgressComplete":0,"ProgressTotal":0}
12 33 44 556: dap RDDI_DAP_ReadD8 41004014 1
12 33 44 556: msg send(b8):E RunControl contextRemoved ["armRC17"]
12 33 44 707: dap RDDI_DAP_ReadD32 e000edfc 1000000
12 33 44 707: dap RDDI_DAP_WriteD32 e000edfc 00000000
12 33 44 715: dap RDDI_DAP_WriteD32 e000edf0 a05f0001
12 33 44 739: msg send(b8):E RunControl contextRemoved ["armRC17"]
12 33 44 739: prg Finished debugging
12 33 44 739: msg send(b8):E Registers contextRemoved ["Reg_R0_417","Reg_R1_418","Reg_R2_419","Reg_R3_420","Reg_R4_421","Reg_R5_422","Reg_R6_423","Reg_R7_424","Reg_R8_425","Reg_R9_426","Reg_R10_427","Reg_R11_428","Reg_R12_429","Reg_SP_430","Reg_LR_431","Reg_PC_432","Reg_APSR_433","Reg_MSP_434","Reg_PSP_435","Reg_XPSR_436","Reg_IPSR_437","Reg_EPSR_438","Reg_PRIMASK_439","Reg_FAULTMASK_440","Reg_BASEPRI_441","Reg_CONTROL_442"]
12 33 44 739: dap Hardware reset
12 33 44 745: dap rddi_CMSIS_DAP_Commands nCmds=1 cmdSize0=10 msg=85 03 03 03 80 80 00 80 00 00 
12 33 44 781: dap DAP_Commands replySize0=64 msg=85 00 00 00 00 ...
12 33 44 797: msg send(b8):E Memory contextRemoved ["Mem_base_33","Mem_fuses_34"]
12 33 44 797: dbg ProcessesService::launch() failed: Failed to set gdb proxy
12 33 44 797: msg send(b8):P 219 {"Description":"Launch complete","ProgressComplete":0,"ProgressTotal":0}
12 33 44 797: msg send(b8):R 219 {"Code":131107,"Time":0,"Service":"Processes","Format":"Failed to set gdb proxy","Severity":4,"AltOrg":"Atmel"} ""
12 34 00 715: msg recv(b8):C 220 Tool getTargetVoltage "AT_19"
12 34 00 715: pro Mk3Protocol::get()
12 34 00 715: pro JtagIce3 <<< 02 00 01 00 02
12 34 00 715:  Failed sending command/receiving response. Command ID 0x02. Failed sending CMSIS command from AtmelDapTransport
12 34 00 715: msg send(b8):R 220 {"Code":1,"Service":"Tool","Format":"Failed sending command/receiving response. Command ID 0x02. Failed sending CMSIS command from AtmelDapTransport"}
12 34 03 728: msg recv(b8):C 221 Tool tearDownTool "AT_19"
12 34 03 811: pro Mk3HouseKeepingProtocol::endSession()
12 34 03 811: pro JtagIce3 <<< 11 00 00
12 34 03 811:  Failed to end session
12 34 03 811: msg send(b8):E Device contextRemoved ["ArmDev_17"]
12 34 03 812: msg send(b8):R 221

I've tried changing the "runtype" of the executable from Release/Debug and back, I've tried unplugging and plugging back in the board, I've tried resetting anything that might interfere with it communications wise that I might have changed. I'm using almost exclusively default settings for Atmel studio 7 and the SAMD10XPlained Mini ASF project type, and I've had similar issues on the sample projects. I did not have this issue yesterday, but today I do.

 

Any help in figuring out this problem would be greatly appreciated, if any outputs of any pins need to be measured I can perform that, but I'd rather not have to painstakingly use an oscilloscope on such small pins to get a reading.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Start by going to the advanced tab in your project properties and uncheck Use GDB and see if it helps... Not a solution but takes GDB itself out of the equation...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After unchecking Use GDB and starting the program, it seems to now actually (somewhat) work. My breakpoints are now unable to be set on certain lines however and I am unsure if that was a thing before this. Are there more steps that I can take to get to properly debug again?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Did you manage at last to solve the problem? I somehow managed to solve it, after watching a video on youtube, but sincerely I can't imagine how I managed to do it. A bigger problem for me now appears to be a good proxy server. The one I was using before raised their prices and it's too expensive and unreasonable now to use it. I managed to find a good replacement, but don't know if they are working well or not. Have you ever used help.proxies.com, they have very low prices, and it scares me very much.

Last Edited: Mon. May 3, 2021 - 08:40 AM