Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Direct USB
- ```
- tester@b17-isohapero:/tmp/tmp.bA426mbZrI$ time jtag flash nuttx
- + arg=flash
- + case $1 in
- + '[' -z nuttx ']'
- + do_openocd -c 'program nuttx verify; shutdown'
- + is_openocd_h
- + lsusb -d 15ba:002b
- + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
- + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
- Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
- adapter speed: 300 kHz
- adapter_nsrst_delay: 100
- jtag_ntrst_delay: 100
- none separate
- cortex_m reset_config sysresetreq
- Info : clock speed 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
- adapter speed: 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- target state: halted
- target halted due to debug-request, current mode: Thread
- xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
- STM32L: Enabling HSI
- adapter speed: 2000 kHz
- ** Programming Started **
- auto erase enabled
- Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
- Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
- wrote 344064 bytes from file nuttx in 18.372360s (18.288 KiB/s)
- ** Programming Finished **
- ** Verify Started **
- verified 342460 bytes in 2.492028s (134.201 KiB/s)
- ** Verified OK **
- shutdown command invoked
- real 0m21.359s
- user 0m2.720s
- sys 0m2.140s
- tester@b17-isohapero:/tmp/tmp.bA426mbZrI$
- ```
- ## VirtualHere
- ```
- tester@b17-isohapero:/tmp/tmp.bA426mbZrI$ time jtag flash nuttx
- + arg=flash
- + case $1 in
- + '[' -z nuttx ']'
- + do_openocd -c 'program nuttx verify; shutdown'
- + is_openocd_h
- + lsusb -d 15ba:002b
- + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
- + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
- Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
- adapter speed: 300 kHz
- adapter_nsrst_delay: 100
- jtag_ntrst_delay: 100
- none separate
- cortex_m reset_config sysresetreq
- Info : clock speed 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
- adapter speed: 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- target state: halted
- target halted due to debug-request, current mode: Thread
- xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
- STM32L: Enabling HSI
- adapter speed: 2000 kHz
- ** Programming Started **
- auto erase enabled
- Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
- Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
- wrote 344064 bytes from file nuttx in 165.627853s (2.029 KiB/s)
- ** Programming Finished **
- ** Verify Started **
- verified 342460 bytes in 5.791529s (57.745 KiB/s)
- ** Verified OK **
- shutdown command invoked
- real 2m54.602s
- user 0m0.460s
- sys 0m0.370s
- tester@b17-isohapero:/tmp/tmp.bA426mbZrI$
- ```
- ## Doing it in the Raspberry Pi
- ```
- $ time sudo openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
- Open On-Chip Debugger 0.9.0-dev-g2d4ae3f (2015-07-02-18:31)
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- Info : only one transport option; autoselect 'jtag'
- adapter speed: 300 kHz
- adapter_nsrst_delay: 100
- jtag_ntrst_delay: 100
- none separate
- cortex_m reset_config sysresetreq
- Warn : Using DEPRECATED interface driver 'ft2232'
- Info : Consider using the 'ftdi' interface driver, with configuration files in interface/ftdi/...
- Info : max TCK change to: 30000 kHz
- Info : clock speed 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
- adapter speed: 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- target state: halted
- target halted due to debug-request, current mode: Thread
- xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
- STM32L: Enabling HSI
- adapter speed: 2000 kHz
- ** Programming Started **
- auto erase enabled
- Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
- Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
- wrote 344064 bytes from file nuttx in 29.990046s (11.204 KiB/s)
- ** Programming Finished **
- ** Verify Started **
- verified 342460 bytes in 2.790017s (119.868 KiB/s)
- ** Verified OK **
- shutdown command invoked
- real 0m33.375s
- user 0m4.400s
- sys 0m1.310s
- ```
- ## VirtualHere via direct network connection
- ```
- tester@b17-isohapero:~$ cd /tmp/tmp.bFqTyml5re/
- tester@b17-isohapero:/tmp/tmp.bFqTyml5re$ time jtag flash nuttx
- + arg=flash
- + case $1 in
- + '[' -z nuttx ']'
- + do_openocd -c 'program nuttx verify; shutdown'
- + is_openocd_h
- + lsusb -d 15ba:002b
- + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
- + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
- Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
- adapter speed: 300 kHz
- adapter_nsrst_delay: 100
- jtag_ntrst_delay: 100
- none separate
- cortex_m reset_config sysresetreq
- Info : clock speed 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
- adapter speed: 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- target state: halted
- target halted due to debug-request, current mode: Thread
- xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
- STM32L: Enabling HSI
- adapter speed: 2000 kHz
- ** Programming Started **
- auto erase enabled
- Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
- Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
- wrote 344064 bytes from file nuttx in 37.940723s (8.856 KiB/s)
- ** Programming Finished **
- ** Verify Started **
- verified 342460 bytes in 2.889953s (115.723 KiB/s)
- ** Verified OK **
- shutdown command invoked
- real 0m41.700s
- user 0m0.600s
- sys 0m0.530s
- ```
- ## SSH tunnel through different host
- ```
- tester@b17-isohapero:/tmp/tmp.bFqTyml5re$ time jtag flash nuttx
- + arg=flash
- + case $1 in
- + '[' -z nuttx ']'
- + do_openocd -c 'program nuttx verify; shutdown'
- + is_openocd_h
- + lsusb -d 15ba:002b
- + local main_cfg=interface/olimex-arm-usb-ocd-h.cfg
- + exec openocd -f interface/olimex-arm-usb-ocd-h.cfg -f target/stm32l1x_dual_bank.cfg -c 'program nuttx verify; shutdown'
- Open On-Chip Debugger 0.9.0-dev-g52fff40 (2015-06-26-19:40)
- Licensed under GNU GPL v2
- For bug reports, read
- http://openocd.org/doc/doxygen/bugs.html
- Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
- adapter speed: 300 kHz
- adapter_nsrst_delay: 100
- jtag_ntrst_delay: 100
- none separate
- cortex_m reset_config sysresetreq
- Info : clock speed 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- Info : stm32l1.cpu: hardware has 6 breakpoints, 4 watchpoints
- adapter speed: 300 kHz
- Info : JTAG tap: stm32l1.cpu tap/device found: 0x4ba00477 (mfg: 0x23b, part: 0xba00, ver: 0x4)
- Info : JTAG tap: stm32l1.bs tap/device found: 0x06437041 (mfg: 0x020, part: 0x6437, ver: 0x0)
- target state: halted
- target halted due to debug-request, current mode: Thread
- xPSR: 0x01000000 pc: 0x080007dc msp: 0x20013ffc
- STM32L: Enabling HSI
- adapter speed: 2000 kHz
- ** Programming Started **
- auto erase enabled
- Info : STM32L flash has dual banks. Bank (0) size is 256kb, base address is 0x8000000
- Info : STM32L flash has dual banks. Bank (1) size is 256kb, base address is 0x8040000
- wrote 344064 bytes from file nuttx in 40.834389s (8.228 KiB/s)
- ** Programming Finished **
- ** Verify Started **
- verified 342460 bytes in 2.982675s (112.125 KiB/s)
- ** Verified OK **
- shutdown command invoked
- real 0m44.743s
- user 0m0.530s
- sys 0m0.410s
- ```
Advertisement
Add Comment
Please, Sign In to add comment