Advertisement
c0170

pyOCD gdb - locked KL25Z

Dec 2nd, 2013
706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.91 KB | None | 0 0
  1. d:\Code\git_repo\github\pyOCD\test>python gdb_test.py
  2. INFO:root:new board id detected: 020002001312A2A569B26DD7
  3. 0 => MBED MBED CMSIS-DAP (0xd28, 0x204) [kl25z]
  4. DEBUG:root:init board <pyOCD.board.mbed_board.MbedBoard instance at 0x02128E68>
  5. INFO:root:DAP SWD MODE initialised
  6. INFO:root:IDCODE: 0xBC11477
  7. INFO:root:KL25Z not in secure state
  8. INFO:root:2 hardware breakpoints
  9. DEBUG:root:fpb has been disabled
  10. INFO:root:GDB server started
  11. INFO:root:One client connected!
  12. DEBUG:root:GDB received query: ['Supported', 'qRelocInsn+#9a']
  13. DEBUG:root:gdb client has ack!
  14. DEBUG:root:gdb client has ack!
  15. DEBUG:root:GDB received query: ['Xfer', 'features', 'read', 'target.xml', '0,7fb
  16. #4a']
  17. DEBUG:root:GDB query read_feature: offset: 0, size: 2043
  18. DEBUG:root:gdb client has ack!
  19. DEBUG:root:GDB lastSignal: 17
  20. DEBUG:root:gdb client has ack!
  21. DEBUG:root:gdb client has ack!
  22. DEBUG:root:GDB received query: ['C#b4']
  23. DEBUG:root:gdb client has ack!
  24. DEBUG:root:GDB received query: ['Attached#8f']
  25. DEBUG:root:gdb client has ack!
  26. DEBUG:root:GDB received query: ['Offsets#4b']
  27. DEBUG:root:gdb client has ack!
  28. DEBUG:root:GDB reg: 0 = 0x1
  29. DEBUG:root:GDB reg: 1 = 0x8A
  30. DEBUG:root:GDB reg: 2 = 0x40037000
  31. DEBUG:root:GDB reg: 3 = 0x1FFFF1D4
  32. DEBUG:root:GDB reg: 4 = 0x23AB22D
  33. DEBUG:root:GDB reg: 5 = 0x30D40
  34. DEBUG:root:GDB reg: 6 = 0xBF7FFFF2
  35. DEBUG:root:GDB reg: 7 = 0x0
  36. DEBUG:root:GDB reg: 8 = 0xBFFF7FBF
  37. DEBUG:root:GDB reg: 9 = 0xEF7FDD75
  38. DEBUG:root:GDB reg: 10 = 0x1FFF3000
  39. DEBUG:root:GDB reg: 11 = 0x0
  40. DEBUG:root:GDB reg: 12 = 0x0
  41. DEBUG:root:GDB reg: 13 = 0x20002FD8
  42. DEBUG:root:GDB reg: 14 = 0x6B3
  43. DEBUG:root:GDB reg: 15 = 0x8D8
  44. DEBUG:root:GDB reg: 16 = 0x21000000
  45. DEBUG:root:gdb client has ack!
  46. DEBUG:root:GDB received query: ['Xfer', 'memory-map', 'read', '', '0,7fb#e9']
  47. DEBUG:root:GDB query momery_map: offset: 0, size: 2043
  48. DEBUG:root:gdb client has ack!
  49. DEBUG:root:read blocks aligned at 0x8D8, size: 0x4
  50. DEBUG:root:gdb client has ack!
  51. DEBUG:root:read blocks aligned at 0x20002FC0, size: 0x40
  52. DEBUG:root:gdb client has ack!
  53. DEBUG:root:GDB received query: ['TStatus#49']
  54. DEBUG:root:gdb client has ack!
  55. DEBUG:root:gdb client has ack!
  56. DEBUG:root:flash write addr: 0x0
  57. DEBUG:root:gdb client has ack!
  58. DEBUG:root:flash write addr: 0x400
  59. DEBUG:root:gdb client has ack!
  60. DEBUG:root:flash write addr: 0x410
  61. DEBUG:root:gdb client has ack!
  62. DEBUG:root:flash write addr: 0xbd0
  63. DEBUG:root:gdb client has ack!
  64. DEBUG:root:flash write addr: 0x1390
  65. DEBUG:root:gdb client has ack!
  66. DEBUG:root:flash write addr: 0x1b60
  67. DEBUG:root:gdb client has ack!
  68. DEBUG:root:flash write addr: 0x2320
  69. DEBUG:root:gdb client has ack!
  70. DEBUG:root:flash write addr: 0x2af0
  71. DEBUG:root:gdb client has ack!
  72. DEBUG:root:flash write addr: 0x32c0
  73. DEBUG:root:gdb client has ack!
  74. DEBUG:root:flash write addr: 0x3a90
  75. DEBUG:root:gdb client has ack!
  76. DEBUG:root:flash write addr: 0x4260
  77. DEBUG:root:gdb client has ack!
  78. DEBUG:root:flash write addr: 0x4a30
  79. DEBUG:root:gdb client has ack!
  80. DEBUG:root:flash write addr: 0x51f0
  81. DEBUG:root:gdb client has ack!
  82. DEBUG:root:flash write addr: 0x59c0
  83. DEBUG:root:gdb client has ack!
  84. DEBUG:root:flash write addr: 0x6190
  85. DEBUG:root:gdb client has ack!
  86. DEBUG:root:flash write addr: 0x6950
  87. DEBUG:root:gdb client has ack!
  88. DEBUG:root:flash write addr: 0x6c28
  89. DEBUG:root:gdb client has ack!
  90. DEBUG:root:flash write addr: 0x6c30
  91. DEBUG:root:gdb client has ack!
  92. INFO:root:flashing 27136 bytes
  93. DEBUG:root:write blocks aligned at 0x20002000, size: 0x400
  94. [                    ] 0%DEBUG:root:write blocks aligned at 0x20002000, size: 0x
  95. 400
  96. [=                   ] 5%DEBUG:root:write blocks aligned at 0x20002000, size: 0x
  97. 400
  98. [==                  ] 10%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  99. x400
  100. [===                 ] 15%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  101. x400
  102. [===                 ] 15%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  103. x400
  104. [====                ] 20%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  105. x400
  106. [=====               ] 25%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  107. x400
  108. [======              ] 30%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  109. x400
  110. [======              ] 30%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  111. x400
  112. [=======             ] 35%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  113. x400
  114. [========            ] 40%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  115. x400
  116. [=========           ] 45%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  117. x400
  118. [=========           ] 45%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  119. x400
  120. [==========          ] 50%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  121. x400
  122. [===========         ] 55%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  123. x400
  124. [============        ] 60%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  125. x400
  126. [============        ] 60%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  127. x400
  128. [=============       ] 65%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  129. x400
  130. [==============      ] 70%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  131. x400
  132. [===============     ] 75%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  133. x400
  134. [===============     ] 75%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  135. x400
  136. [================    ] 80%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  137. x400
  138. [=================   ] 85%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  139. x400
  140. [==================  ] 90%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  141. x400
  142. [==================  ] 90%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  143. x400
  144. [=================== ] 95%DEBUG:root:write blocks aligned at 0x20002000, size: 0
  145. x200
  146. [====================] 100%
  147. DEBUG:root:reset stop on Reset
  148. Exception in thread Thread-3:
  149. Traceback (most recent call last):
  150.   File "C:\Python27\lib\threading.py", line 808, in __bootstrap_inner
  151.     self.run()
  152.   File "C:\Python27\lib\site-packages\pyOCD\gdbserver\gdbserver.py", line 169, i
  153. n run
  154.     [resp, ack, detach] = self.handleMsg(data)
  155.   File "C:\Python27\lib\site-packages\pyOCD\gdbserver\gdbserver.py", line 231, i
  156. n handleMsg
  157.     return self.flashOp(msg[2:]), 1, 0
  158.   File "C:\Python27\lib\site-packages\pyOCD\gdbserver\gdbserver.py", line 386, i
  159. n flashOp
  160.     self.target.resetStopOnReset()
  161.   File "C:\Python27\lib\site-packages\pyOCD\target\cortex_m.py", line 391, in re
  162. setStopOnReset
  163.     self.halt()
  164.   File "C:\Python27\lib\site-packages\pyOCD\target\cortex_m.py", line 360, in ha
  165. lt
  166.     self.writeMemory(DHCSR, DBGKEY | C_DEBUGEN | C_HALT)
  167.   File "C:\Python27\lib\site-packages\pyOCD\target\cortex_m.py", line 216, in wr
  168. iteMemory
  169.     self.transport.writeMem(addr, value, transfer_size)
  170.   File "C:\Python27\lib\site-packages\pyOCD\transport\cmsis_dap.py", line 133, i
  171. n writeMem
  172.     [addr, data])
  173.   File "C:\Python27\lib\site-packages\pyOCD\transport\cmsis_dap_core.py", line 2
  174. 07, in dapTransfer
  175.     raise ValueError('SWD Fault')
  176. ValueError: SWD Fault
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement