how can i make gap_tools

Discussions about the AI-deck
Post Reply
ujam
Beginner
Posts: 2
Joined: Tue May 17, 2022 8:17 am

how can i make gap_tools

Post by ujam »

hi i'm trying to Face detection and i'm using SDK docker container
but i can't use make gap_tools code. like this

root@4a866e5ced99:/gap_sdk# make gap_tools
make: *** No rule to make target 'gap_tools'. Stop.


how can i use make gap_tools code? please help me nn
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: how can i make gap_tools

Post by kimberly »

There is a bug for Facedetection example in the gap sdk: https://github.com/bitcraze/aideck-gap8 ... /issues/92

It will only work for SDK 3.8+, and there you will not be able to use CPX unfortunately... And in SDK version 4+ the make gap_tools has disappeared.

We are currently thinking of a solution for this issue, but you could pull the older docker as well. Check out the readme in this repo: https://github.com/bitcraze/docker-aideck
ujam
Beginner
Posts: 2
Joined: Tue May 17, 2022 8:17 am

Re: how can i make gap_tools

Post by ujam »

thank you your answer kimberly

i use 3.8.1 SDK docker container and successfully solved the problem

But again i ran into trouble. TT

in Working directory: AIdeck_examples/GAP8/image_processing_examples/FaceDetection
i did make clean and make all PMSIS_OS=pulpos

i used make run code. and got the following error

gapy --target=ai_deck --platform=board --work-dir=/root/aideck-gap8-examples/examples/image_processing/FaceDetection/BUILD/GAP8_V2/GCC_RISCV run --exec-prepare --exec --binary=/root/aideck-gap8-examples/examples/image_processing/FaceDetection/BUILD/GAP8_V2/GCC_RISCV/face_detection
Launching execution with command:
gap8-openocd -c 'gdb_port disabled; telnet_port disabled; tcl_port disabled' -f interface/ftdi/olimex-arm-usb-ocd-h.cfg -f target/gap8revb.tcl -f tcl/jtag_boot_entry.tcl -c 'gap8_jtag_load_binary_and_start "/root/aideck-gap8-examples/examples/image_processing/FaceDetection/BUILD/GAP8_V2/GCC_RISCV/face_detection" elf 0x1c000080'
Open On-Chip Debugger 0.10.0+dev-dirty (2022-05-24-08:01)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter speed' not 'adapter_khz'
DEPRECATED! use 'adapter driver' not 'interface'
Warn : Interface already configured, ignoring
TARGET create
Info : core 0 selected
0
Info : gap8_adv_debug_itf tap selected
Info : adv_dbg_unit debug unit selected
Info : Option 7 is passed to adv_dbg_unit debug unit
GAP8 INIT TARGET
Error: no device found
Error: unable to open ftdi device with vid 15ba, pid 002b, description 'Olimex OpenOCD JTAG ARM-USB-OCD-H', serial '*' at bus location '*'

Traceback (most recent call last):
File "/gap_sdk/tools/gapy/gapy", line 162, in <module>
main()
File "/gap_sdk/tools/gapy/gapy", line 152, in main
operationFunc(args, config)
File "/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
/gap_sdk/tools/rules/pulp_rules.mk:244: recipe for target 'run' failed
make: *** [run] Error 1

i used Olimex ARM-USB-TINY-H and 10to20 pin for debugging

How can i solve this problem?
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: how can i make gap_tools

Post by kimberly »

this error is the key

Code: Select all

'Error: unable to open ftdi device with vid 15ba, pid 002b, description 'Olimex OpenOCD JTAG ARM-USB-OCD-H', serial '*' at bus location '*'
Your programmer is a different type, so you would need to export the right version for your programmer according to greenwaves instructions.

By the way, as you see here above, we are moving support to a different platform, namely github discussions (discussions.bitcraze.io). If you are still having problems, could you start a thread there in Q&A, with a link to this forum thread? That would help us very much :)
Post Reply