Guest User

Untitled

a guest
Jul 2nd, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.61 KB | None | 0 0
  1. ## Direct USB
  2.  
  3. ```
  4. tester@b17-isohapero:/tmp/tmp.bA426mbZrI$ time jtag flash nuttx
  5. + arg=flash
  6. + case $1 in
  7. + '[' -z nuttx ']'
  8. + do_openocd -c 'program nuttx verify; shutdown'
  9. + is_openocd_h
  10. + lsusb -d 15ba:002b
  11. + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
  12. + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
  13. Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
  14. Licensed under GNU GPL v2
  15. For bug reports, read
  16. http://openocd.org/doc/doxygen/bugs.html
  17. Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
  18. adapter speed: 300 kHz
  19. adapter_nsrst_delay: 100
  20. jtag_ntrst_delay: 100
  21. none separate
  22. cortex_m reset_config sysresetreq
  23. Info : clock speed 300 kHz
  24. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  25. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  26. Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
  27. adapter speed: 300 kHz
  28. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  29. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  30. target state: halted
  31. target halted due to debug-request, current mode: Thread
  32. xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
  33. STM32L: Enabling HSI
  34. adapter speed: 2000 kHz
  35. ** Programming Started **
  36. auto erase enabled
  37. Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
  38. Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
  39. wrote 344064 bytes from file nuttx in 18.372360s (18.288 KiB/s)
  40. ** Programming Finished **
  41. ** Verify Started **
  42. verified 342460 bytes in 2.492028s (134.201 KiB/s)
  43. ** Verified OK **
  44. shutdown command invoked
  45.  
  46. real 0m21.359s
  47. user 0m2.720s
  48. sys 0m2.140s
  49. tester@b17-isohapero:/tmp/tmp.bA426mbZrI$
  50. ```
  51.  
  52. ## VirtualHere
  53.  
  54. ```
  55. tester@b17-isohapero:/tmp/tmp.bA426mbZrI$ time jtag flash nuttx
  56. + arg=flash
  57. + case $1 in
  58. + '[' -z nuttx ']'
  59. + do_openocd -c 'program nuttx verify; shutdown'
  60. + is_openocd_h
  61. + lsusb -d 15ba:002b
  62. + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
  63. + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
  64. Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
  65. Licensed under GNU GPL v2
  66. For bug reports, read
  67. http://openocd.org/doc/doxygen/bugs.html
  68. Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
  69. adapter speed: 300 kHz
  70. adapter_nsrst_delay: 100
  71. jtag_ntrst_delay: 100
  72. none separate
  73. cortex_m reset_config sysresetreq
  74. Info : clock speed 300 kHz
  75. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  76. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  77. Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
  78. adapter speed: 300 kHz
  79. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  80. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  81. target state: halted
  82. target halted due to debug-request, current mode: Thread
  83. xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
  84. STM32L: Enabling HSI
  85. adapter speed: 2000 kHz
  86. ** Programming Started **
  87. auto erase enabled
  88. Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
  89.  
  90.  
  91. Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
  92. wrote 344064 bytes from file nuttx in 165.627853s (2.029 KiB/s)
  93. ** Programming Finished **
  94. ** Verify Started **
  95. verified 342460 bytes in 5.791529s (57.745 KiB/s)
  96. ** Verified OK **
  97. shutdown command invoked
  98.  
  99. real 2m54.602s
  100. user 0m0.460s
  101. sys 0m0.370s
  102. tester@b17-isohapero:/tmp/tmp.bA426mbZrI$
  103. ```
  104.  
  105. ## Doing it in the Raspberry Pi
  106.  
  107. ```
  108. $ time sudo openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
  109. Open On-Chip Debugger 0.9.0-dev-g2d4ae3f (2015-07-02-18:31)
  110. Licensed under GNU GPL v2
  111. For bug reports, read
  112. http://openocd.org/doc/doxygen/bugs.html
  113. Info : only one transport option; autoselect 'jtag'
  114. adapter speed: 300 kHz
  115. adapter_nsrst_delay: 100
  116. jtag_ntrst_delay: 100
  117. none separate
  118. cortex_m reset_config sysresetreq
  119. Warn : Using DEPRECATED interface driver 'ft2232'
  120. Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...
  121. Info : max TCK change to: 30000 kHz
  122. Info : clock speed 300 kHz
  123. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  124. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  125. Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
  126. adapter speed: 300 kHz
  127. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  128. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  129. target state: halted
  130. target halted due to debug-request, current mode: Thread
  131. xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
  132. STM32L: Enabling HSI
  133. adapter speed: 2000 kHz
  134. ** Programming Started **
  135. auto erase enabled
  136. Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
  137. Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
  138. wrote 344064 bytes from file nuttx in 29.990046s (11.204 KiB/s)
  139. ** Programming Finished **
  140. ** Verify Started **
  141. verified 342460 bytes in 2.790017s (119.868 KiB/s)
  142. ** Verified OK **
  143. shutdown command invoked
  144.  
  145. real 0m33.375s
  146. user 0m4.400s
  147. sys 0m1.310s
  148. ```
  149.  
  150. ## VirtualHere via direct network connection
  151.  
  152. ```
  153. tester@b17-isohapero:~$ cd /tmp/tmp.bFqTyml5re/
  154. tester@b17-isohapero:/tmp/tmp.bFqTyml5re$ time jtag flash nuttx
  155. + arg=flash
  156. + case $1 in
  157. + '[' -z nuttx ']'
  158. + do_openocd -c 'program nuttx verify; shutdown'
  159. + is_openocd_h
  160. + lsusb -d 15ba:002b
  161. + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
  162. + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
  163. Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
  164. Licensed under GNU GPL v2
  165. For bug reports, read
  166. http://openocd.org/doc/doxygen/bugs.html
  167. Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
  168. adapter speed: 300 kHz
  169. adapter_nsrst_delay: 100
  170. jtag_ntrst_delay: 100
  171. none separate
  172. cortex_m reset_config sysresetreq
  173. Info : clock speed 300 kHz
  174. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  175. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  176. Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
  177. adapter speed: 300 kHz
  178. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  179. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  180. target state: halted
  181. target halted due to debug-request, current mode: Thread
  182. xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
  183. STM32L: Enabling HSI
  184. adapter speed: 2000 kHz
  185. ** Programming Started **
  186. auto erase enabled
  187. Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
  188. Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
  189. wrote 344064 bytes from file nuttx in 37.940723s (8.856 KiB/s)
  190. ** Programming Finished **
  191. ** Verify Started **
  192. verified 342460 bytes in 2.889953s (115.723 KiB/s)
  193. ** Verified OK **
  194. shutdown command invoked
  195.  
  196. real 0m41.700s
  197. user 0m0.600s
  198. sys 0m0.530s
  199. ```
  200.  
  201. ## SSH tunnel through different host
  202.  
  203. ```
  204. tester@b17-isohapero:/tmp/tmp.bFqTyml5re$ time jtag flash nuttx
  205. + arg=flash
  206. + case $1 in
  207. + '[' -z nuttx ']'
  208. + do_openocd -c 'program nuttx verify; shutdown'
  209. + is_openocd_h
  210. + lsusb -d 15ba:002b
  211. + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
  212. + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
  213. Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
  214. Licensed under GNU GPL v2
  215. For bug reports, read
  216. http://openocd.org/doc/doxygen/bugs.html
  217. Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
  218. adapter speed: 300 kHz
  219. adapter_nsrst_delay: 100
  220. jtag_ntrst_delay: 100
  221. none separate
  222. cortex_m reset_config sysresetreq
  223. Info : clock speed 300 kHz
  224. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  225. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  226. Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
  227. adapter speed: 300 kHz
  228. Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
  229. Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
  230. target state: halted
  231. target halted due to debug-request, current mode: Thread
  232. xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
  233. STM32L: Enabling HSI
  234. adapter speed: 2000 kHz
  235. ** Programming Started **
  236. auto erase enabled
  237. Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
  238. Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
  239. wrote 344064 bytes from file nuttx in 40.834389s (8.228 KiB/s)
  240. ** Programming Finished **
  241. ** Verify Started **
  242. verified 342460 bytes in 2.982675s (112.125 KiB/s)
  243. ** Verified OK **
  244. shutdown command invoked
  245.  
  246. real 0m44.743s
  247. user 0m0.530s
  248. sys 0m0.410s
  249. ```
Advertisement
Add Comment
Please, Sign In to add comment