Last version NRF firmware, radio error

Firmware/software/electronics/mechanics
bonadrone
Beginner
Posts: 7
Joined: Thu Aug 08, 2019 9:15 pm

Last version NRF firmware, radio error

Post by bonadrone » Thu Aug 08, 2019 10:47 pm

Good afternoon,
Today I try to update NRF firmware through the Bitcraze VM and after updating all repositories I just execute the command make reset_factory in the repository crazyflie2-nrf-firmware.

The crazyflie board is connected with the 4 wires to flash NRF through the ST-LINK. After flashing with the latest version in Github the lights blink correctly but now I'm not able to find the Crazyflie from Crazyflie PC client. The LED 2 and 3 are fixed in blue and the LED 1 is blinking in green.

I also update the Crazyradio Dongle PA Firmware but I can't connect through radio to Crazyflie board. The Crazyradio Dongle PA antenna works perfectly because its detected in the bootloader section in the PC client.

Anyone have some ideas? Which are the steps that I should follow to have my Crazyflie ready again? Sequence to load the different firmwares (STM, NRF, Bootloaders, etc...

My crazyflie is not working and I don't know how to repair it :)

Many thanks!



kimberly
Expert
Posts: 107
Joined: Fri Jul 06, 2018 11:13 am

Re: Last version NRF firmware, radio error

Post by kimberly » Fri Aug 09, 2019 7:03 am

Hi!

There is something wrong with the latest master version of the NRF firmware, check out this issue : https://github.com/bitcraze/crazyflie2- ... /issues/36. Not sure if it is related, but maybe it is good to try to flash the latest release instead for now? Are you still able to do that?

bonadrone
Beginner
Posts: 7
Joined: Thu Aug 08, 2019 9:15 pm

Re: Last version NRF firmware, radio error

Post by bonadrone » Fri Aug 09, 2019 8:23 am

Hi!,
I just restored to this last commit "Fixes #3: Allow OW write when BLE is active"
Now the power button works correctly but I still have the same problem. I can't connect via radio to Crazyflie board from Crazyflie PC client.

Any other recommendations?

Many thanks!

bonadrone
Beginner
Posts: 7
Joined: Thu Aug 08, 2019 9:15 pm

Re: Last version NRF firmware, radio error

Post by bonadrone » Fri Aug 09, 2019 10:19 am

I just repeat the same process with other Crazyflie that is working perfectly and now I neither can't connect through the radio.
For sure I'm doing something incorrect but I don't know which thing. Right now I just do the following steps:

1. Install bootloader in STM32 through ST-Link
2. Install NRF firmware with battery connected through ST-Link (I'm installing this commit version: "90ac428df1cbb1c3dae26db0a27cc8cdfc9f5706")
3. Install STM32 firmware following these steps: https://wiki.bitcraze.io/projects:crazy ... opment:dfu

Or I'm doing something wrong or maybe the last version for firmware is wrong?

If someone could try to reproduce my error I appreciate it. I don't have more ideas :)
Thanks,
Alex

kimberly
Expert
Posts: 107
Joined: Fri Jul 06, 2018 11:13 am

Re: Last version NRF firmware, radio error

Post by kimberly » Fri Aug 09, 2019 10:33 am

This is strange indeed. Are you able to put the crazyflie in bootloader mode by pressing the powerbutton for a long time? If so, please follow the steps from here: https://www.bitcraze.io/getting-started ... #latest-fw

So what I don't understand that all the lights of the crazyflie are also acting like normal. I wouldn't recommend doing anything with the bootloader if there is not anything wrong with it. You should either reflash both the crazyflie-firmware and the crazyflie2-nrf-firmware with 'make cload' (though the crazy radio) or flash it with the debugger with 'make flash'. Also the dfu update is not recommended as normal procedure because that can actually break the bootloader if not done properly.

Let me know if the first step (over air update through the client) works.

bonadrone
Beginner
Posts: 7
Joined: Thu Aug 08, 2019 9:15 pm

Re: Last version NRF firmware, radio error

Post by bonadrone » Fri Aug 09, 2019 11:02 am

Hi kimberly,
The main problem is that all bootloaders seems to work correct and we can enter in bootloader mode but for some reason the radio receiver from Crazyflie board is not working due to that we can't flash the firmware through the radio dongle. Otherwise we can flash the firmware via USB but then we have the same problem that the radio receiver still not working.

Maybe is something wrong in the last firmware version in NRF that generates problems with radio receiver in the crazyflie board? Could you try the same steps as us with some Crazyflie board using the same firmware versions for NRF and for STM32?

1. Install bootloader in STM32 through ST-Link (latest version from github)
2. Install NRF firmware with battery connected through ST-Link (I'm installing this commit version: "90ac428df1cbb1c3dae26db0a27cc8cdfc9f5706")
3. Install STM32 firmware following these steps: https://wiki.bitcraze.io/projects:crazy ... opment:dfu (latest version from github)

Many thanks for your support,
Alex

kimberly
Expert
Posts: 107
Joined: Fri Jul 06, 2018 11:13 am

Re: Last version NRF firmware, radio error

Post by kimberly » Fri Aug 09, 2019 11:13 am

Alright, I'll try to replicate the situation. I'll back to you once I done it

kimberly
Expert
Posts: 107
Joined: Fri Jul 06, 2018 11:13 am

Re: Last version NRF firmware, radio error

Post by kimberly » Fri Aug 09, 2019 12:15 pm

I'm sorry but if I try it in the order that you are subscribing, I can still connect to my crazyflie. But still this is absolutely not the way we advise people to upgrade the firmware. The DFU upgrade and the bootloader updates should only be used in a very few rare cases and for normal use shouldn't be touched at all.

Please do the following if you can not do OA download.

1. Update the NRF firmware through stlink (the current commit should work with BLE=0

Code: Select all

make clean && make BLE=0 && make flash BLE=0
2. Move the debugger to the connector right under the usb connector and then do

Code: Select all

make clean && make && make flash 
3. connect the crazyflie with a USB kabel to your computer, choose 'USB://0' from select an interface and check the address of your crazyflie in the tool in Connect->Configure 2.X. Note the address if it is different that the default and try to scan for this address.

Hope this will fix it for you. If not, please check your dongle and see what the LED's are doing.

bonadrone
Beginner
Posts: 7
Joined: Thu Aug 08, 2019 9:15 pm

Re: Last version NRF firmware, radio error

Post by bonadrone » Fri Aug 09, 2019 2:10 pm

Hi!
We just tested what you said and all seems correct but we still can't connect through the OA with Crazyflie PC client.

You can find some captures in the link below about the last step when we connect the Crazyflie board through USB in the VM:
https://drive.google.com/open?id=1uSKAL ... ErOcUGYWdY

As you can see in the captures, we can connect with any problem via USB and set the address correctly, otherwise if we try to connect through antenna we can't detect the drone from PC client.

What we try also is to execute make cload from crazyflie-firmware. When we execute the order the LED 4 starts blinking in green like drone is receiving data, but after 10 seconds a generic message appears saying "Cannot connect the bootloader".

Any other ideas?
Many thanks

bonadrone
Beginner
Posts: 7
Joined: Thu Aug 08, 2019 9:15 pm

Re: Last version NRF firmware, radio error

Post by bonadrone » Fri Aug 09, 2019 3:15 pm

So.. after some more tests the final conclusion is that the Crazyflie board just receive data but never sends. That's why the green LED 4 is always blinking in green (is receiving info from dongle) but never blinking in red.

Any idea about why is just receiving and never answering?

Many thanks,
Alex

Post Reply