HaaTa

Bus Pirate McHCK Programmer Protocol Error (mk20dx256vlh7)

Mar 21st, 2015
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.32 KB | None | 0 0
  1. ruby programmer/flash.rb name=buspirate:dev=/dev/buspirate kiibohd_bootloader.bin 0
  2.  
  3. Attaching debugger...
  4. PHYS: initializing bus pirate
  5. PHYS: setting binary mode
  6. PHYS: waiting for BBIO1
  7. PHYS: data: BBIO1
  8. PHYS: setting raw mode
  9. PHYS: waiting for RAW1
  10. PHYS: data: BBIO1RAW1
  11. PHYS: configuring lines
  12. PHYS: flush 8a 63 48
  13. PHYS: swd raw: 11111111111111111111111111111111111111111111111111111111
  14. PHYS: swd raw: 1001111011100111
  15. PHYS: swd raw: 11111111111111111111111111111111111111111111111111111111
  16. PHYS: swd raw: 00000000
  17. PHYS: flush 16 ff ff ff ff ff ff ff 11 9e e7 16 ff ff ff ff ff ff ff 10 00
  18. PHYS: transact 10100101
  19. PHYS: flush 10 a5 07 07 07
  20. PHYS: expecting 29 = 26 ack + 3 data bytes
  21. PHYS: skipping 26 acks: 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01
  22. PHYS: read: 01 00 00
  23. PHYS: read ack: 1
  24. PHYS: flush 06 06 06 06 07
  25. PHYS: expecting 5 = 0 ack + 5 data bytes
  26. PHYS: skipping 0 acks:
  27. PHYS: read: 77 14 a0 2b 00
  28. PHYS: read word: 2ba01477, parity 0
  29. SWD: write dp 0 = 0000001e
  30. SWD: SWD transaction dp out 0, try 1
  31. PHYS: transact 10000001
  32. PHYS: turning out
  33. PHYS: flush 21 10 81 07 07 07
  34. PHYS: expecting 6 = 3 ack + 3 data bytes
  35. PHYS: skipping 3 acks: 01 01 01
  36. PHYS: read: 01 00 00
  37. PHYS: read ack: 1
  38. PHYS: turning out
  39. SWD: write dp 8 = 00000000
  40. SWD: SWD transaction dp out 8, try 1
  41. PHYS: transact 10110001
  42. PHYS: flush 21 13 1e 00 00 00 30 00 10 b1 07 07 07
  43. PHYS: expecting 13 = 10 ack + 3 data bytes
  44. PHYS: skipping 10 acks: 01 01 01 01 01 01 01 01 01 01
  45. PHYS: read: 01 00 00
  46. PHYS: read ack: 1
  47. PHYS: turning out
  48. PHYS: flush 21 13 00 00 00 00 30 00
  49. REG: writing #<Peripheral::CachingProxy:0x0000000213a928> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0000000000
  50. REG: reading #<Peripheral::CachingProxy:0x0000000213a928> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0000000000
  51. REG: writing Adiv5::DP::CTRLSTAT.CDBGPWRUPREQ = 0x00000001
  52. REG: writing #<Peripheral::CachingProxy:0x0000000213a928> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0x10000000
  53. REG: reading #<Peripheral::CachingProxy:0x0000000213a928> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0x10000000
  54. REG: writing Adiv5::DP::CTRLSTAT.CSYSPWRUPREQ = 0x00000001
  55. REG: writing #<Peripheral::CachingProxy:0x0000000213a928> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0x50000000
  56. DP: write dp 00000004 = 50000000
  57. SWD: write dp 4 = 50000000
  58. SWD: SWD transaction dp out 4, try 1
  59. PHYS: transact 10101001
  60. PHYS: flush 10 a9 07 07 07
  61. PHYS: expecting 13 = 10 ack + 3 data bytes
  62. PHYS: skipping 10 acks: 01 01 01 01 01 01 01 01 01 01
  63. PHYS: read: 01 00 00
  64. PHYS: read ack: 1
  65. PHYS: turning out
  66. SWD: read dp 4 (1 words)...
  67. SWD: SWD transaction dp in 4, try 1
  68. PHYS: transact 10001101
  69. PHYS: flush 21 13 00 00 00 50 30 00 10 8d 07 07 07
  70. PHYS: expecting 13 = 10 ack + 3 data bytes
  71. PHYS: skipping 10 acks: 01 01 01 01 01 01 01 01 01 01
  72. PHYS: read: 01 00 00
  73. PHYS: read ack: 1
  74. PHYS: flush 06 06 06 06 07
  75. PHYS: expecting 5 = 0 ack + 5 data bytes
  76. PHYS: skipping 0 acks:
  77. PHYS: read: 00 00 00 f0 00
  78. PHYS: read word: f0000000, parity 0
  79. SWD: read dp 4 < f0000000
  80. DP: read dp 00000004 < f0000000
  81. REG: reading #<Peripheral::BackingProxy:0x00000002142ce0> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0xf0000000
  82. REG: reading #<Peripheral::CachingProxy:0x00000002147150> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0xf0000000
  83. REG: reading Adiv5::DP::CTRLSTAT.CDBGPWRUPACK = 0x00000001
  84. REG: reading #<Peripheral::CachingProxy:0x00000002147150> @ 0x00000004 backing Adiv5::DP::CTRLSTAT = 0xf0000000
  85. REG: reading Adiv5::DP::CTRLSTAT.CSYSPWRUPACK = 0x00000001
  86. AP: all systems up
  87. DEVICE: detecting device
  88. DP: selecting 0:f
  89. REG: writing #<Peripheral::CachingProxy:0x00000002145800> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  90. REG: reading #<Peripheral::CachingProxy:0x00000002145800> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  91. REG: writing Adiv5::DP::SELECT.APSEL = 0000000000
  92. REG: writing #<Peripheral::CachingProxy:0x00000002145800> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  93. REG: reading #<Peripheral::CachingProxy:0x00000002145800> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  94. REG: writing Adiv5::DP::SELECT.APBANKSEL = 0x0000000f
  95. REG: writing #<Peripheral::CachingProxy:0x00000002145800> @ 0x00000008 backing Adiv5::DP::SELECT = 0x000000f0
  96. DP: write dp 00000008 = 000000f0
  97. SWD: write dp 8 = 000000f0
  98. SWD: SWD transaction dp out 8, try 1
  99. PHYS: transact 10110001
  100. PHYS: turning out
  101. PHYS: flush 21 10 b1 07 07 07
  102. PHYS: expecting 6 = 3 ack + 3 data bytes
  103. PHYS: skipping 3 acks: 01 01 01
  104. PHYS: read: 01 00 00
  105. PHYS: read ack: 1
  106. PHYS: turning out
  107. SWD: read ap c (1 words)...
  108. SWD: SWD transaction ap in 12, try 1
  109. PHYS: transact 10011111
  110. PHYS: flush 21 13 f0 00 00 00 30 00 10 9f 07 07 07
  111. PHYS: expecting 13 = 10 ack + 3 data bytes
  112. PHYS: skipping 10 acks: 01 01 01 01 01 01 01 01 01 01
  113. PHYS: read: 01 00 00
  114. PHYS: read ack: 1
  115. PHYS: flush 06 06 06 06 07
  116. PHYS: expecting 5 = 0 ack + 5 data bytes
  117. PHYS: skipping 0 acks:
  118. PHYS: read: 00 00 00 00 00
  119. PHYS: read word: 00000000, parity 0
  120. SWD: SWD transaction dp in 12, try 1
  121. PHYS: transact 10111101
  122. PHYS: turning out
  123. PHYS: flush 21 10 bd 07 07 07
  124. PHYS: expecting 6 = 3 ack + 3 data bytes
  125. PHYS: skipping 3 acks: 01 01 01
  126. PHYS: read: 01 00 00
  127. PHYS: read ack: 1
  128. PHYS: flush 06 06 06 06 07
  129. PHYS: expecting 5 = 0 ack + 5 data bytes
  130. PHYS: skipping 0 acks:
  131. PHYS: read: 11 00 77 24 00
  132. PHYS: read word: 24770011, parity 0
  133. SWD: read ap c < 24770011
  134. DP: read ap 0000000c < 24770011
  135. AP: 0 read 000000fc < 24770011
  136. REG: reading #<Peripheral::BackingProxy:0x00000002145d78> @ 0x000000fc backing Adiv5::AP::IDR = 0x24770011
  137. SWD: read ap c (1 words)...
  138. SWD: SWD transaction ap in 12, try 1
  139. PHYS: transact 10011111
  140. PHYS: turning out
  141. PHYS: flush 21 10 9f 07 07 07
  142. PHYS: expecting 6 = 3 ack + 3 data bytes
  143. PHYS: skipping 3 acks: 01 01 01
  144. PHYS: read: 01 00 00
  145. PHYS: read ack: 1
  146. PHYS: flush 06 06 06 06 07
  147. PHYS: expecting 5 = 0 ack + 5 data bytes
  148. PHYS: skipping 0 acks:
  149. PHYS: read: 11 00 77 24 00
  150. PHYS: read word: 24770011, parity 0
  151. SWD: SWD transaction dp in 12, try 1
  152. PHYS: transact 10111101
  153. PHYS: turning out
  154. PHYS: flush 21 10 bd 07 07 07
  155. PHYS: expecting 6 = 3 ack + 3 data bytes
  156. PHYS: skipping 3 acks: 01 01 01
  157. PHYS: read: 01 00 00
  158. PHYS: read ack: 1
  159. PHYS: flush 06 06 06 06 07
  160. PHYS: expecting 5 = 0 ack + 5 data bytes
  161. PHYS: skipping 0 acks:
  162. PHYS: read: 11 00 77 24 00
  163. PHYS: read word: 24770011, parity 0
  164. SWD: read ap c < 24770011
  165. DP: read ap 0000000c < 24770011
  166. AP: 0 read 000000fc < 24770011
  167. REG: reading #<Peripheral::BackingProxy:0x000000021558b8> @ 0x000000fc backing Adiv5::AP::IDR = 0x24770011
  168. REG: reading Adiv5::AP::IDR.mem? = 0x00000001
  169. AP: initializing memap 0
  170. DP: selecting 0:0
  171. REG: writing #<Peripheral::CachingProxy:0x00000001c8a0e0> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  172. REG: reading #<Peripheral::CachingProxy:0x00000001c8a0e0> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  173. REG: writing Adiv5::DP::SELECT.APSEL = 0000000000
  174. REG: writing #<Peripheral::CachingProxy:0x00000001c8a0e0> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  175. REG: reading #<Peripheral::CachingProxy:0x00000001c8a0e0> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  176. REG: writing Adiv5::DP::SELECT.APBANKSEL = 0000000000
  177. REG: writing #<Peripheral::CachingProxy:0x00000001c8a0e0> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  178. DP: write dp 00000008 = 00000000
  179. SWD: write dp 8 = 00000000
  180. SWD: SWD transaction dp out 8, try 1
  181. PHYS: transact 10110001
  182. PHYS: turning out
  183. PHYS: flush 21 10 b1 07 07 07
  184. PHYS: expecting 6 = 3 ack + 3 data bytes
  185. PHYS: skipping 3 acks: 01 01 01
  186. PHYS: read: 01 00 00
  187. PHYS: read ack: 1
  188. PHYS: turning out
  189. SWD: read ap 0 (1 words)...
  190. SWD: SWD transaction ap in 0, try 1
  191. PHYS: transact 10000111
  192. PHYS: flush 21 13 00 00 00 00 30 00 10 87 07 07 07
  193. PHYS: expecting 13 = 10 ack + 3 data bytes
  194. PHYS: skipping 10 acks: 01 01 01 01 01 01 01 01 01 01
  195. PHYS: read: 01 00 00
  196. PHYS: read ack: 1
  197. PHYS: flush 06 06 06 06 07
  198. PHYS: expecting 5 = 0 ack + 5 data bytes
  199. PHYS: skipping 0 acks:
  200. PHYS: read: 11 00 77 24 00
  201. PHYS: read word: 24770011, parity 0
  202. SWD: SWD transaction dp in 12, try 1
  203. PHYS: transact 10111101
  204. PHYS: turning out
  205. PHYS: flush 21 10 bd 07 07 07
  206. PHYS: expecting 6 = 3 ack + 3 data bytes
  207. PHYS: skipping 3 acks: 01 01 01
  208. PHYS: read: 01 00 00
  209. PHYS: read ack: 1
  210. PHYS: flush 06 06 06 06 07
  211. PHYS: expecting 5 = 0 ack + 5 data bytes
  212. PHYS: skipping 0 acks:
  213. PHYS: read: 00 00 00 23 01
  214. PHYS: read word: 23000000, parity 1
  215. SWD: read ap 0 < 23000000
  216. DP: read ap 00000000 < 23000000
  217. AP: 0 read 00000000 < 23000000
  218. REG: reading #<Peripheral::CachingProxy:0x00000001c8a7c0> @ 0000000000 backing Adiv5::MemAP::CSW = 0x23000000
  219. REG: writing Adiv5::MemAP::CSW.Size = 0x00000002
  220. REG: writing #<Peripheral::CachingProxy:0x00000001c8a7c0> @ 0000000000 backing Adiv5::MemAP::CSW = 0x23000002
  221. REG: reading #<Peripheral::CachingProxy:0x00000001c8a7c0> @ 0000000000 backing Adiv5::MemAP::CSW = 0x23000002
  222. REG: writing Adiv5::MemAP::CSW.AddrInc = 0x00000001
  223. REG: writing #<Peripheral::CachingProxy:0x00000001c8a7c0> @ 0000000000 backing Adiv5::MemAP::CSW = 0x23000012
  224. REG: reading #<Peripheral::CachingProxy:0x00000001c8a7c0> @ 0000000000 backing Adiv5::MemAP::CSW = 0x23000012
  225. REG: writing Adiv5::MemAP::CSW.Mode = 0000000000
  226. REG: writing #<Peripheral::CachingProxy:0x00000001c8a7c0> @ 0000000000 backing Adiv5::MemAP::CSW = 0x23000012
  227. AP: 0 write 00000000 = 23000012
  228. DP: write ap 00000000 = 23000012
  229. SWD: write ap 0 = 23000012
  230. SWD: SWD transaction ap out 0, try 1
  231. PHYS: transact 10100011
  232. PHYS: turning out
  233. PHYS: flush 21 10 a3 07 07 07
  234. PHYS: expecting 6 = 3 ack + 3 data bytes
  235. PHYS: skipping 3 acks: 01 01 01
  236. PHYS: read: 01 00 00
  237. PHYS: read ack: 1
  238. PHYS: turning out
  239. DP: selecting 0:f
  240. REG: writing #<Peripheral::CachingProxy:0x00000002170230> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  241. REG: reading #<Peripheral::CachingProxy:0x00000002170230> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  242. REG: writing Adiv5::DP::SELECT.APSEL = 0000000000
  243. REG: writing #<Peripheral::CachingProxy:0x00000002170230> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  244. REG: reading #<Peripheral::CachingProxy:0x00000002170230> @ 0x00000008 backing Adiv5::DP::SELECT = 0000000000
  245. REG: writing Adiv5::DP::SELECT.APBANKSEL = 0x0000000f
  246. REG: writing #<Peripheral::CachingProxy:0x00000002170230> @ 0x00000008 backing Adiv5::DP::SELECT = 0x000000f0
  247. DP: write dp 00000008 = 000000f0
  248. SWD: write dp 8 = 000000f0
  249. SWD: SWD transaction dp out 8, try 1
  250. PHYS: transact 10110001
  251. PHYS: flush 21 13 12 00 00 23 30 80 10 b1 07 07 07
  252. PHYS: expecting 13 = 10 ack + 3 data bytes
  253. PHYS: skipping 10 acks: 01 01 01 01 01 01 01 01 01 01
  254. PHYS: read: 01 00 01
  255. PHYS: read ack: 5
  256. PROTOCOL ERROR (raise Adiv5Swd::ProtocolError)
Advertisement
Add Comment
Please, Sign In to add comment