mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Version 2.1.2
This commit is contained in:
parent
f09d764742
commit
751ed53615
4 changed files with 53 additions and 1 deletions
26
Vagrantfile
vendored
Normal file
26
Vagrantfile
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# -*- mode: ruby -*-
|
||||||
|
# vi: set ft=ruby :
|
||||||
|
|
||||||
|
# All Vagrant configuration is done below. The "2" in Vagrant.configure
|
||||||
|
# configures the configuration version (we support older styles for
|
||||||
|
# backwards compatibility). Please don't change it unless you know what
|
||||||
|
# you're doing.
|
||||||
|
Vagrant.configure(2) do |config|
|
||||||
|
# The most common configuration options are documented and commented below.
|
||||||
|
# For a complete reference, please see the online documentation at
|
||||||
|
# https://docs.vagrantup.com.
|
||||||
|
|
||||||
|
# Every Vagrant development environment requires a box. You can search for
|
||||||
|
# boxes at https://atlas.hashicorp.com/search.
|
||||||
|
config.vm.box = "ubuntu/trusty64"
|
||||||
|
|
||||||
|
# Enable provisioning with a shell script. Additional provisioners such as
|
||||||
|
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
|
||||||
|
# documentation for more information about their specific syntax and use.
|
||||||
|
config.vm.provision "shell", inline: <<-SHELL
|
||||||
|
apt-get remove -y binutils-arm-none-eabi gcc-arm-none-eabi
|
||||||
|
add-apt-repository ppa:terry.guo/gcc-arm-embedded
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y git gcc-arm-none-eabi=4.9.3.2015q3-1trusty1
|
||||||
|
SHELL
|
||||||
|
end
|
26
docs/USB Flashing.md
Normal file
26
docs/USB Flashing.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# USB Flashing
|
||||||
|
Some newer boards with full USB support must be flashed in USB DFU mode. This is a straightforward process in Configurator versions 0.67 and newer. The standard flashing procedure should work successfully with the caveat of some platform specific problems as noted below. The "No reboot sequence" checkbox has no effect as the device will automatically be detected when already in bootloader mode (a DFU device will appear in the connect dropdown if this is the case). The Full chip erase checkbox operates as normal. The baudrate checkbox is ignored as it has no relevance to USB.
|
||||||
|
|
||||||
|
## Platform Specific: Linux
|
||||||
|
Linux requires udev rules to allow write access to USB devices for users. An example shell command to acheive this on Ubuntu is shown here:
|
||||||
|
```
|
||||||
|
(echo '# DFU (Internal bootloader for STM32 MCUs)'
|
||||||
|
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"') | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules > /dev/null
|
||||||
|
```
|
||||||
|
|
||||||
|
This assigns the device to the plugdev group(a standard group in Ubuntu). To check that your account is in the plugdev group type `groups` in the shell and ensure plugdev is listed. If not you can add yourself as shown (replacing `<username>` with your username):
|
||||||
|
```
|
||||||
|
sudo usermod -a -G plugdev <username>
|
||||||
|
```
|
||||||
|
|
||||||
|
## Platform Specific: Windows
|
||||||
|
Chrome can have problems accessing USB devices on Windows. A driver should be automatically installed by Windows for the ST Device in DFU Mode but this doesn't always allow access for Chrome. The solution is to replace the ST driver with a libusb driver. The easiest way to do that is to download [Zadig](http://zadig.akeo.ie/).
|
||||||
|
With the board connected and in bootloader mode (reset it by sending the character R via serial, or simply attempt to flash it with the correct serial port selected in Configurator):
|
||||||
|
* Open Zadig
|
||||||
|
* Choose Options > List All Devices
|
||||||
|
* Select `STM32 BOOTLOADER` in the device list
|
||||||
|
* Choose `WinUSB (v6.x.x.x)` in the right hand box
|
||||||
|

|
||||||
|
* Click Replace Driver
|
||||||
|
* Restart Chrome (make sure it is completely closed, logout and login if unsure)
|
||||||
|
* Now the DFU device should be seen by Configurator
|
BIN
docs/assets/images/zadig-dfu.png
Normal file
BIN
docs/assets/images/zadig-dfu.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#define FC_VERSION_MAJOR 2 // increment when a major release is made (big new feature, etc)
|
#define FC_VERSION_MAJOR 2 // increment when a major release is made (big new feature, etc)
|
||||||
#define FC_VERSION_MINOR 1 // increment when a minor release is made (small new feature, change etc)
|
#define FC_VERSION_MINOR 1 // increment when a minor release is made (small new feature, change etc)
|
||||||
#define FC_VERSION_PATCH_LEVEL 1 // increment when a bug is fixed
|
#define FC_VERSION_PATCH_LEVEL 2 // increment when a bug is fixed
|
||||||
|
|
||||||
#define STR_HELPER(x) #x
|
#define STR_HELPER(x) #x
|
||||||
#define STR(x) STR_HELPER(x)
|
#define STR(x) STR_HELPER(x)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue