Page 1 of 1
					
				A problem in using ARM-USB-TINY-H and ARM-JTAG-20-10 and setting up the GAP8 SDK
				Posted: Thu Mar 11, 2021 12:35 am
				by Sadeem
				Hi, 
I purchased both ARM-USB-TINY-H and ARM-JTAG-20-10 to adapt and program the AI deck. Also, I used the Bitcraze VM to follow the instructions here: 
https://github.com/bitcraze/AIdeck_exam ... aster/docs. 
I got problems when I tried to set up the GAP8 SDK from here 
https://github.com/GreenWaves-Technologies/gap_sdk. When I run the commands:
 
the machine takes a lot of time to execute those commands. Also, my computer and the AI deck have become very hot. I showed some problems in making the files, but I didn't understand them clearly. After that, the VM hangs then I had to shut it down. 
I think I have an essential problem that I don't know how to attach the ARM-USB-TINY-H and ARM-JTAG-20-10 :/
I understood from here 
https://github.com/bitcraze/AIdeck_exam ... ramming.md how to attach ARM-JTAG-20-10 to the Crazyflie, but I don't know how to attach the ARM-USB-TINY-H to them. Also,  to do those things, is it necessary to attach the Crazyradio PA to my computer? Or must I attach the ARM-USB-TINY-H to the computer? Because I don't have the required USB port 
 
Thanks a lot.
 
			
					
				Re: A problem in using ARM-USB-TINY-H and ARM-JTAG-20-10 and setting up the GAP8 SDK
				Posted: Thu Mar 11, 2021 9:47 am
				by tobias
				For me the ARM-USB-TINY-H and ARM-JTAG-20-10 are "keyed" to know how to connect them, are they not for you?
 
			
					
				Re: A problem in using ARM-USB-TINY-H and ARM-JTAG-20-10 and setting up the GAP8 SDK
				Posted: Thu Mar 11, 2021 9:03 pm
				by Sadeem
				No, I didn't know how to do it until I posted that, then I saw the description of the problem here: 
viewtopic.php?f=21&t=4649 after that, I understood how to link them.
I think that this is must explain in the documentation of the AI deck for the naive users. Also, I imagine that it is beneficial to add USB type B to the hardware requirements. I hope you accept my suggestions 
 
 
Although I attached the ARM-USB-TINY-H and ARM-JTAG-20-10 correctly as the picture and used the USB type B, I get the same problem.
I run these commands in the first:
Code: Select all
sudo apt-get install -y build-essential git libftdi-dev libftdi1 doxygen python3-pip libsdl2-dev curl cmake libusb-1.0-0-dev scons gtkwave libsndfile1-dev rsync autoconf automake texinfo libtool pkg-config libsdl2-ttf-dev
git clone https://github.com/GreenWaves-Technologies/gap8_openocd.git
cd gap8_openocd
./bootstrap
./configure --program-prefix=gap8- --prefix=/usr --datarootdir=/usr/share/gap8-openocd
and it seemed to be executed correctly. But when I run the command: 
it takes roughly 1 hour until I shot the VM down. I picked some messages like:
Code: Select all
Make[2]: *** [src/flash/nor/stm32fx.lo] Error 1
gcc: error: No such file or directory 
Also, the next warning appears for different files:
Code: Select all
Makefile:3176 recipe for target 'src/flash/nor/xmclxxx.lo' failed
 
			
					
				Re: A problem in using ARM-USB-TINY-H and ARM-JTAG-20-10 and setting up the GAP8 SDK
				Posted: Fri Mar 12, 2021 9:41 am
				by tobias
				Yep, USB type B might not be so common anymore, good idea, I've added that.
The GAP_SDK is big and not yet that easy to work with. Have you tried the 
docker variant? This I think is much easier to get started with.
 
			
					
				Re: A problem in using ARM-USB-TINY-H and ARM-JTAG-20-10 and setting up the GAP8 SDK
				Posted: Sat Mar 13, 2021 8:23 pm
				by Sadeem
				Yes, I tried to install it first from here: 
https://docs.docker.com/engine/install/ ... repository. Then, I followed the instructions here: 
https://docs.docker.com/engine/install/ ... -root-user to be sure about the installation, and everything looks to be good. But when I run the command 
Code: Select all
docker build --tag gapsdk:${GAP_SDK_VERSION} --build-arg GAP_SDK_VERSION .
 from the instructions 
https://github.com/bitcraze/AIdeck_exam ... er-gap8.md, the following error appeared: 
Code: Select all
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat ...../Dockerfile: no such file or directory.
I tried to search about the folder of the installed docker, but unfortunately, I could not find it 
 
 
Also, can I ask you where I can find the hotspot if it created?
Thank you, and I apologize for the many questions and issues that I posted. I'm a student working on my graduation project, and there is no a lot of time until the submission of the project 

 
			
					
				Re: A problem in using ARM-USB-TINY-H and ARM-JTAG-20-10 and setting up the GAP8 SDK
				Posted: Sun Mar 14, 2021 8:46 pm
				by Sadeem
				I discovered that I must clone the documentation repository 
https://github.com/bitcraze/AIdeck_examples first! I didn't know that before  
 
 
For one week and a half, I tried all the things in the documentation, I read most of the posts in the forum, and I searched Google about my problems until I found that the problems were in how to attach the ARMs, clone the repository, also.  That took a lot of my time. I hope you add these to the documentation, and no one encounters a lot of problems because of minor basic things 
 
 
Now building the docker executing from 50 minutes, but I think it works well. I hope all the remaining steps are clear, and I can finally connect to my AI deck.
Thank you.
 
			
					
				Re: A problem in using ARM-USB-TINY-H and ARM-JTAG-20-10 and setting up the GAP8 SDK
				Posted: Mon Mar 15, 2021 3:05 pm
				by kimberly
				Hi Sadeem,
The aideck is still in early access, so the documentation is indeed not up to a release standard indeed. If you think there is anything missing that can improve it, you can make an issue or pull request to that repository if you like?
Let us know if you have any more problem!