Difference between revisions of "DFU"
(hopefully now it's correct :)) |
m (typo, added small stuff) |
||
Line 7: | Line 7: | ||
DFU (Device Firmware Upgrade) is the standard method to upload paparazzi code to a stm32 MCU via usb.<br/> | DFU (Device Firmware Upgrade) is the standard method to upload paparazzi code to a stm32 MCU via usb.<br/> | ||
There are two different dfu bootloader which require different software: | There are two different dfu bootloader which require different software: | ||
* custom [[Luftboot]]/KroozSD bootloader which uses stm32_mem.py script | * custom [[Luftboot]]/KroozSD bootloader which uses stm32_mem.py script | ||
Line 26: | Line 27: | ||
This will be set as default at the appropriate makefile of the board.<br/> | This will be set as default at the appropriate makefile of the board.<br/> | ||
Set '''Flash_Mode=DFU''' <br/> | Set '''Flash_Mode=DFU''' <br/> | ||
Set '''DFU_UTIL=y'' | Set '''DFU_UTIL=y''' | ||
===needed software=== | ===needed software=== | ||
dfu-util is needed for this bootloader.<br/> | dfu-util packet is needed for this bootloader.<br/> | ||
sudo apt-get install dfu-util | sudo apt-get install dfu-util | ||
More information about dfu-util can be found at their Homepage [http://dfu-util.gnumonks.org/ http://dfu-util.gnumonks.org] | More information about dfu-util can be found at their Homepage [http://dfu-util.gnumonks.org/ http://dfu-util.gnumonks.org] |
Revision as of 22:29, 17 September 2013
DFU (Device Firmware Upgrade) is the standard method to upload paparazzi code to a stm32 MCU via usb.
There are two different dfu bootloader which require different software:
- custom Luftboot/KroozSD bootloader which uses stm32_mem.py script
- native (embedded in ROM) dfu bootloader which uses external dfu-util
Luftboot
This bootloader must be upload first, so paparazzi center can use stm32_mem.py to upload code to the MCU.
This bootloader is available for Lisa(m)/Lia (Luftboot) and Krooz/kroozSD (KroozSD) boards.
airframe configuration
This will be set as default at the appropriate makefile of the board.
Set Flash_Mode=DFU
native dfu bootloader
This bootloader is already embedded in the ROM of the MCU.
The MCU will not go automatically in dfu mode. To trigger dfu mode, connect pin BOOT0 with 3V(connect BOOT1 with GND ?), Reset MCU, disconnect BOOT0.
airframe configuration
This will be set as default at the appropriate makefile of the board.
Set Flash_Mode=DFU
Set DFU_UTIL=y
needed software
dfu-util packet is needed for this bootloader.
sudo apt-get install dfu-util
More information about dfu-util can be found at their Homepage http://dfu-util.gnumonks.org