[SOLVED] Flash NINA on the AI-deck

Discussions about the AI-deck
Post Reply
raven
Member
Posts: 32
Joined: Thu Sep 24, 2020 1:57 pm
Contact:

[SOLVED] Flash NINA on the AI-deck

Post 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'
Image
Last edited by raven on Sat Nov 21, 2020 5:35 am, edited 2 times in total.
Make positive impact.
kimberly
Bitcraze
Posts: 704
Joined: Fri Jul 06, 2018 11:13 am

Re: Flash NINA on the AI-deck

Post 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.
kimberly
Bitcraze
Posts: 704
Joined: Fri Jul 06, 2018 11:13 am

Re: Flash NINA on the AI-deck

Post 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)
raven
Member
Posts: 32
Joined: Thu Sep 24, 2020 1:57 pm
Contact:

Re: Flash NINA on the AI-deck

Post 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!
Make positive impact.
kimberly
Bitcraze
Posts: 704
Joined: Fri Jul 06, 2018 11:13 am

Re: Flash NINA on the AI-deck

Post 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.
raven
Member
Posts: 32
Joined: Thu Sep 24, 2020 1:57 pm
Contact:

Re: Flash NINA on the AI-deck

Post 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!
Make positive impact.
kimberly
Bitcraze
Posts: 704
Joined: Fri Jul 06, 2018 11:13 am

Re: Flash NINA on the AI-deck

Post 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
raven
Member
Posts: 32
Joined: Thu Sep 24, 2020 1:57 pm
Contact:

Re: Flash NINA on the AI-deck

Post by raven »

Thanks!
I'm ready to start again!
cheers~
Make positive impact.
Post Reply