aideck bootloader

Discussions about the AI-deck
1pi
Member
Posts: 49
Joined: Mon Nov 23, 2020 1:28 am

aideck bootloader

Post by 1pi »

Hello Marcus
I am trying to install the aideck-bootliader-GAP8 on the ai-deck via wifi, I am running the python script:
python3 boatload.py image
and get the following message:
connecting to socket 192.168.4.1:5000
Socket connected
GAP8 bootloader is version 0x22
Trace back (most recent call back)
File bootload.py, line 248 in module
with open(imageName “rb”) as f:
FileNotFoundError :[errno 2] no such file or directory : ‘image’
Is there something I am not doing correctly? I checked the aideck-GAP8-bootloader folder and there is no image file. How do I create this image file?
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: aideck bootloader

Post by marcus »

Hi!

This is the firmware image file that's built with the GAP8 toolchain. It's located in the BUILD folder, but exactly what directly depends on what OS you're using. Here's the two paths I have:

Code: Select all

BUILD/GAP8_V2/GCC_RISCV_FREERTOS/flash.img # For FreeRTOS builds
BUILD/GAP8_V2/GCC_RISCV_PULPOS/flash.img # For PulpOS builds
1pi
Member
Posts: 49
Joined: Mon Nov 23, 2020 1:28 am

Re: aideck bootloader

Post by 1pi »

Hi
Thank you for your reply, I am using Ubuntu 18.0.4 and the gap_sdk 3.8.1. Are the paths you included available for this version?
Regards
Rodrigo
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: aideck bootloader

Post by marcus »

I'm not sure, but I think so. Have a look in the directories in BUILD to see if you can find the flash.img file.
1pi
Member
Posts: 49
Joined: Mon Nov 23, 2020 1:28 am

Re: aideck bootloader

Post by 1pi »

Hi
I am still not able to create the .img file ,I am using the following command on the aideck-GAP8-bootloader folder:
make image flash io=uart,
at the end of compilation I get this error:
Collect2: error: ld returned 1 exit status
/gap_sdk/rtos/freeRTOS/vendors/gwt/rules/freeRTOS_rules.mk:352: recipe for target /aideck-GAP8-bootloader/BUILD/GAP8_V2/GCC_RISCV/bootloader failed

make: *** /aideck-GAP8-bootloader/BUILD/GAP8_V2/GCC_RISCV/bootloader error 1

Could you let me know what am I doing wrong and what is the command to use.
Regards
Rodrigo
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: aideck bootloader

Post by marcus »

Ah, yeah, this is probably by a bug in the GAP8 SDK for FreeRTOS projects. Which version are you on?

I've missed the build instructions in the GAP8 bootloader, I've updated it now so please have a look here and see if this solves the issue.
1pi
Member
Posts: 49
Joined: Mon Nov 23, 2020 1:28 am

Re: aideck bootloader

Post by 1pi »

Hi Marcus
I have flashed the GAP8 and now I am trying to run the wifi streamer, when I run the command : python opencv viewer.py it connects to Crazyflie but no viewer appears. Could you let me know how to rebuild the library as directed in the note.
Regards
Rodrigo
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: aideck bootloader

Post by marcus »

Can you copy paste what's written in the console when you run the viewer? Do you see the LEDs blinking on the deck (there's should be 2 blinking)?
1pi
Member
Posts: 49
Joined: Mon Nov 23, 2020 1:28 am

Re: aideck bootloader

Post by 1pi »

Hi
this is whats written in the console. Then what follows is after i press control+c to stop process. Only 1 led blinks after it connects, the one near the NINA module, the other led at opposite side is lit but doesnt blink.


rodrigo@rodrigo-VirtualBox:~$ cd AIdeck_examples-cf-link
rodrigo@rodrigo-VirtualBox:~/AIdeck_examples-cf-link$ cd GAP8/test_functionalities/wifi_jpeg_streamer
rodrigo@rodrigo-VirtualBox:~/AIdeck_examples-cf-link/GAP8/test_functionalities/wifi_jpeg_streamer$ python opencv-viewer.py -n 192.168.4.1 -p 5000
Connecting to socket on 192.168.4.1:5000...
Socket connected


^CTraceback (most recent call last):
File "opencv-viewer.py", line 76, in <module>
packetInfoRaw = rx_bytes(4)
File "opencv-viewer.py", line 66, in rx_bytes
data.extend(client_socket.recv(size-len(data)))
KeyboardInterrupt
rodrigo@rodrigo-VirtualBox:~/AIdeck_examples-cf-link/GAP8/test_functionalities/wifi_jpeg_streamer$
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: aideck bootloader

Post by marcus »

Hmm, this indicates that the GAP8 is frozen in some way. Did you flash the wifi example with the bootloader or with the JTAG?
Post Reply