AI Deck Flashing Issues
Posted: Wed May 26, 2021 9:50 pm
Hello,
I am trying to flash the wifi_jpeg_streamer example to the AI deck and I am having some issues with the debugger. I have followed all of the documentation and I can see the debugger when running lsusb:
Bus 002 Device 029: ID 15ba:002a Olimex Ltd. ARM-USB-TINY-H JTAG interface
I have run the command to export the debugger .cfg as described in the documentation and I am getting this error when I try to flash the AI deck. I have installed everything according to the gap_sdk including the gap8 openocd. Any guidance is appreciated.
make image flash io=host
gapy --target=ai_deck --platform=board --work-dir=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV --config-ini=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/config.ini run --image --binary=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV/test
gapy --target=ai_deck --platform=board --work-dir=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV --config-ini=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/config.ini run --flash --force --binary=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV/test
Flashing image with command:
gap8-openocd -c "gdb_port disabled; telnet_port disabled; tcl_port disabled" -c "script interface/ftdi/olimex-ltd-arm-usb-tiny-h.cfg; script target/gap8revb.tcl; script tcl/flash_image.tcl; script tcl/jtag_boot.tcl; gap_flash_raw_hyper /home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV/target.board.devices.flash.img 48160 /home/bitcraze/projects/gap_sdk/tools/gap8-openocd-tools; exit;"
Open On-Chip Debugger 0.10.0+dev-00001-g43c0b412 (2021-05-25-17:19)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
embedded:startup.tcl:26: Error: Can't find interface/ftdi/olimex-ltd-arm-usb-tiny-h.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 26
Traceback (most recent call last):
File "/home/bitcraze/projects/gap_sdk/tools/gapy/gapy", line 162, in <module>
main()
File "/home/bitcraze/projects/gap_sdk/tools/gapy/gapy", line 152, in main
operationFunc(args, config)
File "/home/bitcraze/projects/gap_sdk/tools/gapy/run.py", line 146, in operationFunc
raise RuntimeError('Runner has failed with value: %d' % status)
RuntimeError: Runner has failed with value: -1
make: *** [/home/bitcraze/projects/gap_sdk/tools/rules/pulp_rules.mk:229: flash] Error 1
I am trying to flash the wifi_jpeg_streamer example to the AI deck and I am having some issues with the debugger. I have followed all of the documentation and I can see the debugger when running lsusb:
Bus 002 Device 029: ID 15ba:002a Olimex Ltd. ARM-USB-TINY-H JTAG interface
I have run the command to export the debugger .cfg as described in the documentation and I am getting this error when I try to flash the AI deck. I have installed everything according to the gap_sdk including the gap8 openocd. Any guidance is appreciated.
make image flash io=host
gapy --target=ai_deck --platform=board --work-dir=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV --config-ini=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/config.ini run --image --binary=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV/test
gapy --target=ai_deck --platform=board --work-dir=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV --config-ini=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/config.ini run --flash --force --binary=/home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV/test
Flashing image with command:
gap8-openocd -c "gdb_port disabled; telnet_port disabled; tcl_port disabled" -c "script interface/ftdi/olimex-ltd-arm-usb-tiny-h.cfg; script target/gap8revb.tcl; script tcl/flash_image.tcl; script tcl/jtag_boot.tcl; gap_flash_raw_hyper /home/bitcraze/projects/AIdeck_examples/GAP8/test_functionalities/wifi_jpeg_streamer/BUILD/GAP8_V2/GCC_RISCV/target.board.devices.flash.img 48160 /home/bitcraze/projects/gap_sdk/tools/gap8-openocd-tools; exit;"
Open On-Chip Debugger 0.10.0+dev-00001-g43c0b412 (2021-05-25-17:19)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
embedded:startup.tcl:26: Error: Can't find interface/ftdi/olimex-ltd-arm-usb-tiny-h.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 26
Traceback (most recent call last):
File "/home/bitcraze/projects/gap_sdk/tools/gapy/gapy", line 162, in <module>
main()
File "/home/bitcraze/projects/gap_sdk/tools/gapy/gapy", line 152, in main
operationFunc(args, config)
File "/home/bitcraze/projects/gap_sdk/tools/gapy/run.py", line 146, in operationFunc
raise RuntimeError('Runner has failed with value: %d' % status)
RuntimeError: Runner has failed with value: -1
make: *** [/home/bitcraze/projects/gap_sdk/tools/rules/pulp_rules.mk:229: flash] Error 1