|
Hello, I am trying to implement the WIFI streaming example on the AI deck while the loco positioning deck is also attached. Via the virtual machine (getting started with develoment tutorial) I altered the aideck.c file such that there are no conflicts between the decks. Than I build and flashed the altered firmware according to the same tutorial. I checked with a python script that both decks were recognized. I also successfully flashed the GAP8 bootloader with the Olimex. However, when I try to flash the WIFI streaming example over the radio, the flashing gets stuck at 0%. I flashed the crazyflie again with just the AI deck connected via the cfclient. After that, the WIFI streaming example was possible to flash over the radio, but this caused the loco positioning deck to not be recognized anymore, I guess because the aideck.c file was overwritten in this progress. Also the WIFI streaming example only worked when I keep the loco positioning deck detached. Is the problem because of the altered aideck.c file, or do I make a mistake with flashing? |
Replies: 1 comment 6 replies
|
Hi, So as I understand correctly, there is not perse an issue with the wifi streaming example but you fail to flash the streaming example of the aideck? Perhaps you should rewrite the title of this. We have seen reports of flashing failing due to the addition of another deck. Does flashing work without the loco positioning deck? also, when you said 'Also the WIFI streaming example only worked when I keep the loco positioning deck detached', are you also referring to flashing or just the running of the wifi example itself? |
My best guess would be that the CS pin for the LPS deck is interfering with the BOOT pin. If the boot pin is pulled high at reset the ESP32 will go into bootloader mode, this would cause the described behavior above (the GAP8 not exiting bootloader and just blinking). One way to test this would be to delay the initialization of the LPS deck driver, giving the ESP32 time to boot up. After which point you can freely use the BOOT pin for CS to the LPS deck. This could be achieved with just sleeping a bit before initializing the driver.