Can't flash ESP firmware

Discussions about the AI-deck
Post Reply
tag2022
Beginner
Posts: 3
Joined: Thu May 05, 2022 3:27 am

Can't flash ESP firmware

Post by tag2022 »

Hello.
I can't flash ESP firmware. I installed everything else successfully.
I did everything according to the instructions on https://www.bitcraze.io/documentation/t ... p-firmware

Code: Select all

$ git clone https://github.com/bitcraze/aideck-esp-firmware.git
$ cd aideck-esp-firmware
$ tb build
$ cfloader flash build/aideck_esp.bin deck-bcAI:esp-fw -w [your radio uri]
And I got this message.

Code: Select all

:~/aideck-esp-firmware$ cfloader flash build/aideck_esp.bin deck-bcAI:esp-fw -w radio://0/80/2M
Reset to bootloader mode ...
Could not save cache, no writable directory
Could not save cache, no writable directory
Version 3 not supported
I get the same error when I follow the instructions from here: https://www.bitcraze.io/documentation/r ... -streamer/

Code: Select all

$ cd aideck-gap8-examples
$ docker run --rm -v ${PWD}:/module bitcraze/aideck tools/build/make-example examples/other/wifi-img-streamer image
$ cfloader flash examples/other/wifi-img-streamer/BUILD/GAP8_V2/GCC_RISCV_FREERTOS/target.board.devices.flash.img deck-bcAI:gap8-fw -w radio://0/80/2M

Code: Select all

:~/aideck-gap8-examples$ cfloader flash examples/other/wifi-img-streamer/BUILD/GAP8_V2/GCC_RISCV_FREERTOS/target.board.devices.flash.img deck-bcAI:gap8-fw -w radio://0/80/2M
Reset to bootloader mode ...
Could not save cache, no writable directory
Could not save cache, no writable directory
Version 3 not supported

Please, help.
Last edited by tag2022 on Thu May 05, 2022 6:48 am, edited 1 time in total.
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Can't flash ESP firmware

Post by kristoffer »

The memory mapping API has changed (between Crazyflie and Python lib) and the slightly sparse error message "Version 3 not supported" means that the python lib does not support version 3. All you have to do is to upgrade your python lib to the latest and greatest, that is to check out the repository (https://github.com/bitcraze/crazyflie-lib-python) and install the source code using "pip install -e ."

The memory mapping API has been updated in the recent work with the AI-deck and all components will be synchronized in the next release. we are working on releasing and it should hopefully be out soon.
tag2022
Beginner
Posts: 3
Joined: Thu May 05, 2022 3:27 am

Re: Can't flash ESP firmware

Post by tag2022 »

All you have to do is to upgrade your python lib to the latest and greatest, that is to check out the repository (https://github.com/bitcraze/crazyflie-lib-python) and install the source code using "pip install -e ."
Thank you very much! It worked.

Now I'm trying to install this example https://www.bitcraze.io/documentation/r ... -streamer/,
but I've encountered that the process hangs at 2%.

Code: Select all

$ cfloader flash examples/other/wifi-img-streamer/BUILD/GAP8_V2/GCC_RISCV_FREERTOS/target.board.devices.flash.img deck-bcAI:gap8-fw -w radio://0/80/2M
I got:

Code: Select all

:~/aideck-gap8-examples$ cfloader flash examples/other/wifi-img-streamer/BUILD/GAP8_V2/GCC_RISCV_FREERTOS/target.board.devices.flash.img deck-bcAI:gap8-fw -w radio://0/80/2M
Reset to bootloader mode ...
Could not save cache, no writable directory
Could not save cache, no writable directory
Skipping bcAI:esp, not in the target list
Deck bcAI:gap8, reset to bootloader
| 0% Writing to bcAI:gap8 deck memory
/ 1% Writing to bcAI:gap8 deck memory
- 2% Writing to bcAI:gap8 deck memory

Could you help please?
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Can't flash ESP firmware

Post by kristoffer »

It is very hard to say exactly what happened.
Did you try to flash it again? Did you get the same result?
earny
Beginner
Posts: 2
Joined: Sun May 29, 2022 11:45 am

Re: Can't flash ESP firmware

Post by earny »

it's hanging for me too, any advice how to solve it ?

SOLVED

The issue was that i was passing address with the URI. If anyone is struggling with it replace radio://0/80/2M/E7E7E7E7E7 with radio://0/80/2M : )
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Can't flash ESP firmware

Post by kimberly »

Great! This was also mentioned in discussions as well, and we will probably investigate this as this is a bit not logical that this will happen.

https://github.com/orgs/bitcraze/discussions/57

Let's further discuss on discussions.bitcraze.io!
Post Reply