User Tools

Site Tools


doc:crazyflie:dev:starting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:crazyflie:dev:starting [2015-12-27 05:41]
chad [STM32] Fix compile instructions to reflect master branch that has both CF1 and CF2 code in it.
doc:crazyflie:dev:starting [2020-05-12 14:16] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and moved to the new documentation framework of the main Bitcraze website. Please go to [[https://www.bitcraze.io/documentation/system/]]
 +</WRAP>
 +
 +
 ====== Getting started developing for Crazyflie ====== ====== Getting started developing for Crazyflie ======
  
Line 85: Line 90:
 OPENOCD_TARGET    ?= target/stm32f4x_stlink.cfg OPENOCD_TARGET    ?= target/stm32f4x_stlink.cfg
 </code> </code>
 +
 +==J-LINK==
 +
 +The SEGGER J-LINK can be used for debugging and flashing.
 +
 +  * Download and install a recent version of [[http://openocd.org/|OpenOCD]], you will need at least version 0.9.
 +  * (Optional) Download and install (or extract) the [[https://www.segger.com/jlink-software.html|J-Link Software]]. The following was tested with version 5.10u.
 +  * In order to flash the NRF51, add the following to your crazyflie2-nrf-firmware/config.mk
 +<code>
 +OPENOCD_INTERFACE ?= interface/jlink.cfg
 +OPENOCD_TARGET    ?= target/nrf51.cfg
 +OPENOCD_CMDS      ?= -c "set WORKAREASIZE 0" -c "transport select swd"
 +</code>
 +   * In order to flash the STM32, add the following to your crazyflie-firmware/tools/make/config.mk
 +<code>
 +OPENOCD_INTERFACE ?= interface/jlink.cfg
 +OPENOCD_TARGET    ?= target/stm32f4x.cfg
 +OPENOCD_CMDS      ?= -c "transport select swd"
 +</code>
 +
 +   * If there is an error, you can execute the following once and type connect in the command prompt. This fixes issues in case openOCD left the J-Link in an invalid state.
 +<code>
 +./JLinkExe -device STM32F405RG -if swd -speed 4000
 +</code>
 +
 +   
  
 === Command line === === Command line ===
Line 103: Line 134:
 ===== Contributing code back ===== ===== Contributing code back =====
 ===== Finding more information ===== ===== Finding more information =====
 +===== Tips and Tricks =====
 +==== Reset EEPROM ====
 +The EEPROM stores configuration data, which persists even after a firmware update. You might want to reset this information. For example, if you forget the address of your Crazyflie, you won't be able to connect wirelessly anymore. In order to reset the EEPROM, follow the following steps:
 +  - Unplug your Crazyradio
 +  - Connect the Crazyflie to the PC using a USB-cable
 +  - Execute the following from the examples of [[https://github.com/bitcraze/crazyflie-lib-python|crazyflie-lib-python]]:
 +<code>
 +python3 write-eeprom.py
 +</code>
 +    
 +
 +This will find your first Crazyflie (which is the one you connected over USB) and write the default values to the EEPROM.
  
  
doc/crazyflie/dev/starting.1451191295.txt.gz · Last modified: 2015-12-27 05:41 by chad