User Tools

Site Tools


doc:crazyflie:bootloader:protocol

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:bootloader:protocol [2015-07-15 16:31]
127.0.0.1 external edit
doc:crazyflie:bootloader:protocol [2021-06-24 16:36] (current)
kimberly
Line 1: Line 1:
 +<WRAP center round important 60%>
 +This page has deprecated and will be archived. Please go to [[https://www.bitcraze.io/]].
 +</WRAP>
 +
 ====== Crazyflie bootloader architecture and protocol ====== ====== Crazyflie bootloader architecture and protocol ======
  
Line 79: Line 83:
 | 0x19  | FLASH_STATUS  |   | | 0x19  | FLASH_STATUS  |   |
 | 0x1C  | READ_FLASH  |   | | 0x1C  | READ_FLASH  |   |
 +| 0xFF  | RESET_INIT  | Only implemented in version 0x10 target 0xFE |
 +| 0xF0  | RESET | Only implemented in version 0x10 target 0xFE |
 +| 0x01  | ALLOFF | Only implemented in version 0x10 target 0xFE |
 +| 0x02  | SYSOFF | Only implemented in version 0x10 target 0xFE |
 +| 0x03  | SYSON | Only implemented in version 0x10 target 0xFE |
 +| 0x04  | GETVBAT | Only implemented in version 0x10 target 0xFE |
  
 ==== GET_INFO ==== ==== GET_INFO ====
Line 92: Line 102:
 ^ Byte ^ Answer fields  ^ Content  ^ ^ Byte ^ Answer fields  ^ Content  ^
 |  0   | GET_INFO       | 0x10 | |  0   | GET_INFO       | 0x10 |
-   | pageSize       | Size in byte of flash and buffer page | +| 1-2  | pageSize       | Size in byte of flash and buffer page | 
-|  2   | nBuffPage      | Number of ram buffer page available | +3-4  | nBuffPage      | Number of ram buffer page available | 
-|  3   | nFlashPage     | Total number of flash page | +5-6  | nFlashPage     | Total number of flash page | 
-|  4   | flashStart     | Start flash page of the firmware | +7-8  | flashStart     | Start flash page of the firmware | 
- 5-17  | cpuId          | Legacy 12Bytes CPUID, shall be ignored | +9-21 | cpuId          | Legacy 12Bytes CPUID, shall be ignored | 
-|  18   | version        | Version of the protocol |+|  22  | version        | Version of the protocol |
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 152: Line 162:
 |  0   | LOAD_BUFFER       | 0x14 | |  0   | LOAD_BUFFER       | 0x14 |
 |  1-2  | page | Buffer page to load into | |  1-2  | page | Buffer page to load into |
-|  2-3  | Address | Address in the buffer page to load from | +|  3-4  | Address | Address in the buffer page to load from | 
-|  3-27 | data | Data to load |+|  5-31 | data | Data to load |
 </WRAP> </WRAP>
  
Line 167: Line 177:
 |  0   | READ_BUFFER       | 0x15 | |  0   | READ_BUFFER       | 0x15 |
 |  1-2  | page | Buffer page to read | |  1-2  | page | Buffer page to read |
-|  2-3  | Address | Address in the buffer page to read from |+|  3-4  | Address | Address in the buffer page to read from |
 </WRAP> </WRAP>
  
Line 174: Line 184:
 |  0   | READ_BUFFER       | 0x15 | |  0   | READ_BUFFER       | 0x15 |
 |  1-2  | page | Buffer page read | |  1-2  | page | Buffer page read |
-|  2-3  | Address | Address in the buffer page read from | +|  3-4  | Address | Address in the buffer page read from | 
-|  3-27 | data | Data read |+|  5-31 | data | Data read |
 </WRAP> </WRAP>
 </WRAP> </WRAP>
Line 231: Line 241:
 |  0   | READ_FLASH       | 0x1C | |  0   | READ_FLASH       | 0x1C |
 |  1-2  | page | Flash page to read | |  1-2  | page | Flash page to read |
-|  2-3  | Address | Address in the flash page to read from |+|  3-4  | Address | Address in the flash page to read from |
 </WRAP> </WRAP>
  
Line 238: Line 248:
 |  0   | READ_FLASH       | 0x1C | |  0   | READ_FLASH       | 0x1C |
 |  1-2  | page | Flash page read | |  1-2  | page | Flash page read |
-|  2-3  | Address | Address in the flash page read from | +|  3-4  | Address | Address in the flash page read from | 
-|  3-27 | data | Data read |+|  5-31 | data | Data read |
 </WRAP> </WRAP>
 </WRAP> </WRAP>
 +
 +====  RESET_INIT ====
 +
 +Prepare to reset (no additional data fields). The result will be the original request.
 +
 +====  RESET ====
 +
 +Reset (no additional data fields). No result will be sent.
 +
 +====  ALLOFF ====
 +
 +Turn everything off as if the power button would have been pressed (i.e. STM32 and radio). The CF won't be able to wake-up unless the power button is pressed. No result will be sent.
 +
 +====  SYSOFF ====
 +
 +Turn the STM32 off, but keep the NRF51 with radio awake. The CF can be woken up by: sending reset, pressing the power button, or sendind SYSON. No result will be sent.
 +
 +====  SYSON ====
 +
 +Turn the STM32 on. No result will be sent.
 +
 +====  GETVBAT ====
 +
 +<WRAP group>
 +<WRAP half column>
 +</WRAP>
 +
 +<WRAP half column>
 +^ Byte ^ Answer fields ^ Content  ^
 +|  0-3   | vbat | floating point value containing the current battery voltage in volts |
 +</WRAP>
 +</WRAP>
 +
 +Check battery status (works even if the STM32 is turned off). 
  
  
doc/crazyflie/bootloader/protocol.1436970670.txt.gz · Last modified: 2015-07-30 13:10 (external edit)