CF2-Kalman-2017-05.bin too big to flash

Post here to get support
Post Reply
psatya
Beginner
Posts: 7
Joined: Wed Oct 09, 2013 1:37 am

CF2-Kalman-2017-05.bin too big to flash

Post by psatya » Sat Sep 15, 2018 7:08 pm

I am flashing from bitcrazeVM after downloading pre-compiled version
cf2-kalman-2017.05.bin
from github (a la direction from "arnaud" in another post).
I am getting "data too big to falsh" when I flash thru crazyradio.

(1)
python3 usbtools/nrfbootload.py flash crazyflie-firmware/cf2-kalman-2017.05.bin

Found nRF24LU1 bootloader version 18.0
Flashing:
Flashing 197292 bytes...
Traceback (most recent call last):
File "usbtools/nrfbootload.py", line 135, in <module>
if bl.write(fileData):
File "/home/bitcraze/projects/crazyradio-firmware/usbtools/NrfUsbBootloader.py", line 124, in write
raise Exception("Data to be written too big!")
Exception: Data to be written too big!

Sorry, if this has been resolved, but I couldn't find a post addressing this issue.

Thanks for your help

Satya

tobias
Bitcraze
Posts: 1731
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: CF2-Kalman-2017-05.bin too big to flash

Post by tobias » Mon Sep 17, 2018 1:11 pm

Are you maybe trying to flash a Crazyflie 1.0?

psatya
Beginner
Posts: 7
Joined: Wed Oct 09, 2013 1:37 am

Re: CF2-Kalman-2017-05.bin too big to flash

Post by psatya » Mon Sep 17, 2018 8:44 pm

No. I was flashing cf2-kalman-2017.05.bin. Actually, the unzip produced the following:

-rw-r--r-- 1 bitcraze bitcraze 90260 Mai 29 2017 cf1-2017.05.bin
-rw-r--r-- 1 bitcraze bitcraze 210396 Jan 23 2018 cf2-2018.01.1.bin
-rw-r--r-- 1 bitcraze bitcraze 197292 Mai 29 2017 cf2-kalman-2017.05.bin
-rw-r--r-- 1 bitcraze bitcraze 61528 Mai 29 2017 cf2_nrf-2017.05.bin
-rw-r--r-- 1 bitcraze bitcraze 61852 Jan 23 2018 cf2_nrf-2018.01.bin

My power switch is broke now. Need to replace it before I try any flashing.
Is there a flag to specify the size of the file for the bootloader? 197kb is too large for it, it looks like.

tobias
Bitcraze
Posts: 1731
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: CF2-Kalman-2017-05.bin too big to flash

Post by tobias » Tue Sep 18, 2018 1:12 pm

That is strange because the STM32 flash is 1MB. If you flash using the cfclient you should select the zip file, could that be the problem?

psatya
Beginner
Posts: 7
Joined: Wed Oct 09, 2013 1:37 am

Re: CF2-Kalman-2017-05.bin too big to flash

Post by psatya » Tue Sep 18, 2018 10:10 pm

Yes, that could be the problem: I was flashing the kalman binary ---
python3 usbtools/nrfbootload.py flash crazyflie-firmware/cf2-kalman-2017.05.bin

I will try the zip file as you suggest. Thanks a lot.
I will have to wait till the crazylie switches arrive, though, to fix the power switch.

Cheers

Post Reply