Crazyclone

Post here to get support
Post Reply
fmaina
Beginner
Posts: 6
Joined: Thu May 23, 2019 4:52 am

Crazyclone

Post by fmaina »

Hi. I am currently working on a custom made board where the my professor wanted to make a hexarotor from the crazyflie quadrotor. The board is a clone of crazyflie 1.0 with the only padded output being the pin-out for the two extra motors. I have flashed the board with the crazyflie firmware (cf2 bin) but the board does not come-up. Can someone guide me on how to flash a new (never flashed) crazyflie.
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Crazyclone

Post by tobias »

It it is a crazyflie 1.0 you need to flash the 1.0 FW which is not developed any more, but can still be build. Read about it in this blog post.

PS. Would be nice to see a picture if you have :D . DS
fmaina
Beginner
Posts: 6
Joined: Thu May 23, 2019 4:52 am

Re: Crazyclone

Post by fmaina »

Thanks for the reply. sorry for the mistake in the previous post, actually the board is clone of the Crazyflie 2.0. I have attached the schematic in pdf of the board I adapted. I now need to load to crazyflie firmware from scratch. the pin_out have not changed and only added pins for two extra motors and LED to suit a hexarotor design.
Attachments
cloned_schematic_pdf.pdf
(242.81 KiB) Downloaded 169 times
Board_design_image.JPG
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Crazyclone

Post by tobias »

Nicely done, I hope you write more about it as you progress.

For the nRF51 there is a make target "factory_reset" this should flash bootloader and such. Here you need to use SWD

For the STM32 you need to flash first the bootloader, then the FW using the STM32 SWD.
fmaina
Beginner
Posts: 6
Joined: Thu May 23, 2019 4:52 am

Re: Crazyclone

Post by fmaina »

Thanks #tobias. I will update the progress. for now am still in the incubation stage. I have two questions though. I am using the st-link debugger (white one) . It does complete memory erase when flashing new firmware. How do i manage all the three firmwares without erasing the previous. On the case of the nrf51, crazyflie disconnected the pinout for the chip in their design. Do i need to reconnect the pinouts to flash the nrf firmware or i can still flash it through the SWD via the stm32.
fmaina
Beginner
Posts: 6
Joined: Thu May 23, 2019 4:52 am

Re: Crazyclone

Post by fmaina »

tobias wrote: Fri May 24, 2019 9:16 am Nicely done, I hope you write more about it as you progress.

For the nRF51 there is a make target "factory_reset" this should flash bootloader and such. Here you need to use SWD

For the STM32 you need to flash first the bootloader, then the FW using the STM32 SWD.
Hello tobia, I am using ST-link SWD for the stm 32, is it possible to use it with the nrf. I am always getting an error 'writing address 0X00000000 is not supported with JTAG/SWD debug port'
fmaina
Beginner
Posts: 6
Joined: Thu May 23, 2019 4:52 am

Re: Crazyclone

Post by fmaina »

Hello. Can someone please help me out. I want to flash the nrf51822 for the crazyclone. I can successfully read and flash the hex into the chip. I am however confused on which hex and which sequence is should follow regarding softdevices, application and bootloader. I have the following hex generated from the program in the eclipse:
1. cload-nrf-V10. hex and nrf-mbs-V10.hex under bootloader
2. cf2-nrf.hex or bin
3. tag-nrf.hex
I also have the s110-nrf51822-7.3-softdevice.hex
fmaina
Beginner
Posts: 6
Joined: Thu May 23, 2019 4:52 am

Re: Crazyclone

Post by fmaina »

Thanks for those who took time to reply to me. I solved my problem.
Post Reply