Page 1 of 1
[SOLVED] Flash NINA on the AI-deck
Posted: Sun Oct 04, 2020 2:53 am
by raven
I see that
Once the AI-deck is powered up by the Crazyflie, it will automatically create an hotspot called 'Bitcraze AI-deck Example'.
in the
https://github.com/bitcraze/AIdeck_exam ... /tryout.md
But unfortunately, I didn't see the hotpot when I start it. So, I try to flash the NINA by myself according to the guide
https://github.com/bitcraze/AIdeck_exam ... er-nina.md
'docker build' is perfect.
But I met some problem when I execute the 'docker run'
esp32 sdk says that no device
I finish this process in the Bitcraze Virtual Machine in the virtual box on windows.
I use the method in this answer
https://unix.stackexchange.com/question ... ev-ttyusb0
to find that the port of the device 'CrazyRadio PA'

Re: Flash NINA on the AI-deck
Posted: Mon Oct 05, 2020 10:53 am
by kimberly
Hi,
Crazyradio PA is not used to program the Nina. You need a compatible JTAG programmer/debugger in order to program the Nina, just like the GAP8.
https://github.com/bitcraze/AIdeck_exam ... ramming.md.
With dmesg and a olimex programmer inserted I see this:
Code: Select all
[15591.420312] usb 1-2: new high-speed USB device number 17 using xhci_hcd
[15591.577095] usb 1-2: New USB device found, idVendor=15ba, idProduct=002a, bcdDevice= 7.00
[15591.577101] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[15591.577105] usb 1-2: Product: Olimex OpenOCD JTAG ARM-USB-TINY-H
[15591.577108] usb 1-2: SerialNumber: OL0B1E97
[15591.644029] usbcore: registered new interface driver ftdi_sio
[15591.644063] usbserial: USB Serial support registered for FTDI USB Serial Device
[15591.644967] ftdi_sio 1-2:1.1: FTDI USB Serial Device converter detected
[15591.645080] usb 1-2: Detected FT2232H
[15591.645420] usb 1-2: FTDI USB Serial Device converter now attached to ttyUSB5
This is on a native ubuntu machine but you should also see this in the VM (we didn't test the VM though). You might need to check if your VM enables more USB inputs.
Re: Flash NINA on the AI-deck
Posted: Mon Oct 05, 2020 10:55 am
by kimberly
Also I saw that make couldn't find any targets. You will need to use the command in 'NINA/firmware' (that's where the make file is)
Re: Flash NINA on the AI-deck
Posted: Tue Oct 06, 2020 8:52 am
by raven
Thanks!!!
I'm not familiar with the hardware development, and I have struggled to flash the NINA with the CrazyRadio PA for a long time, hhh~
I'm curious that I bought 3 AI-deck and when I powered them, there was not the expected hotpot called "Bitcraze AI-deck Example" for each one. Is it a normal phenomenon?
And about the solution "flash on myself", flash the nina to the "Crazyflie board" or "AI-deck NINA chip"?
Thanks for your help!
Re: Flash NINA on the AI-deck
Posted: Tue Oct 06, 2020 11:39 am
by kimberly
It depends from which source you bought the AIdeck from. From our own estore, we flashed all of them with the wifi example. It should have had the hotspot but if not you will need to flash that on yourself...
You will need to flash both the nina chip and the gap8 and you willl need to do that with a
jtag enabled programmer. Also make sure to read the
documentation of both the repository and the information given on
greenwave's website.
Jost note that the aideck is not a super easy product to work with, especially if not familiar with embedded programming and flashing. It is also an early access product so there are still things to be fixed on the software side of things.
Re: Flash NINA on the AI-deck
Posted: Wed Oct 07, 2020 9:08 am
by raven
OK!
The last question is that
I want to confirm that the location we flashed the NINA and GAP8 is the ai-deck, not the crazyflie itself?
Thanks!
Re: Flash NINA on the AI-deck
Posted: Wed Oct 07, 2020 9:42 am
by kimberly
Yes you have to use the jtag connectors on the aideck direclty, not on the crazyflie.
Look at the picture on this page:
https://github.com/bitcraze/AIdeck_exam ... ramming.md
Re: Flash NINA on the AI-deck
Posted: Wed Oct 07, 2020 1:06 pm
by raven
Thanks!
I'm ready to start again!
cheers~