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
Last revision Both sides next revision
doc:crazyflie:bootloader:protocol [2015-07-31 14:43]
arnaud [LOAD_BUFFER]
doc:crazyflie:bootloader:protocol [2017-02-01 19:01]
whoenig Add additional bootloader commands added by PR 18
Line 79: Line 79:
 | 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 153: Line 159:
 |  1-2  | page | Buffer page to load into | |  1-2  | page | Buffer page to load into |
 |  3-4  | Address | Address in the buffer page to load from | |  3-4  | Address | Address in the buffer page to load from |
-|  5-28 | data | Data to load |+|  5-31 | data | Data to load |
 </WRAP> </WRAP>
  
Line 167: Line 173:
 |  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 180:
 |  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 237:
 |  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 244:
 |  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.txt · Last modified: 2021-06-24 16:36 by kimberly