-
Notifications
You must be signed in to change notification settings - Fork 167
OpenNaze Naze32
#OpenNaze/Naze32 dRonin now offers basic support for the OpenNaze rev. 4 (Naze32 compatible). More features will be implemented in future. ##Supported Features
- PWM and PPM receivers
- PWM outputs on motor pins and receiver pins
- GCS telemetry on USB/UART1
- SyncPWM and FastPWM (Oneshot)
- Autotune
- UART on receiver pins
- Serial receivers
- ADC
##Currently Unsupported
- GCS flashing
- Barometer
- Magnetometer
##GCS Connection GCS can be connected using the USB port. The Naze uses an SILabs CP2102 USB->UART chip to connect the USB port to UART1, which presents as a virtual serial port on the host OS. For Windows users this will require a driver. Linux users will need to be in the dialout group, acomplished using this command (change user to your username):
usermod -a -G dialout user
The onboard battery voltage divider (connected to the pins marked "Batt") should be selected as the voltage pin, this is ADC0. The calibration factor should be set to 90.9091 mv/V (1/11 ratio voltage divider).
##Flashing
###Entering Bootloader Mode
####dRonin Already On Board
Connect the board to GCS, go to the Firmware tab and click halt. The board will enter bootloader mode (all three LEDs on solid). See the Flashing Firmware instructions below.
####Initial dRonin Flash
To flash dRonin initially you will need to put it into bootloader mode by another method, either by shorting the "Boot" pads on startup, or sending the character "R" via serial if Baseflight is loaded (on *nix echo -n "R" > /dev/ttyUSB0
).
###Flashing Firmware
####Building firmware from source
> make fw_naze32
####Flash firmware and erase settings:
> ./tools/stm32flash/stm32flash -w ./build/fw_naze32/fw_naze32.tlfw -b 115200 -v -g 0x0 /dev/ttyUSB0
stm32flash - http://stm32flash.googlecode.com/
Using Parser : Raw BINARY
Serial Config: 115200 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (Medium-density)
RAM : 20KiB (512b reserved by bootloader)
Flash : 128KiB (sector size: 4x1024)
Option RAM : 15b
System RAM : 2KiB
Wrote and verified address 0x0801d000 (100.00%) Done.
Starting execution at address 0x08000000... done.
####Flash firmware and retain settings:
> ./tools/stm32flash/stm32flash -w ./build/fw_naze32/fw_naze32.tlfw -b 115200 -v -g 0x0 -e 116 /dev/ttyUSB0
stm32flash - http://stm32flash.googlecode.com/
Using Parser : Raw BINARY
Serial Config: 115200 8E1
Version : 0x22
Option 1 : 0x00
Option 2 : 0x00
Device ID : 0x0410 (Medium-density)
RAM : 20KiB (512b reserved by bootloader)
Flash : 128KiB (sector size: 4x1024)
Option RAM : 15b
System RAM : 2KiB
Wrote and verified address 0x0801d000 (100.00%) Done.
Starting execution at address 0x08000000... done.
Note:
- You will need stm32flash in your tools directory, this can be done using the command
make stm32flash_install
. - Replace /dev/ttyUSB0 with the appropriate port, on Windows this will be COMn where n is a number.