Board - CC3D
The OpenPilot Revolution aka Revo is a board more tuned to Acrobatic flying or GPS based auto-piloting. It has three sensors, the MPU6000 SPI based Accelerometer/Gyro, the MS5611 barometric pressure sensor and the and the Honeywell HMC5883L three axis digital compass module. It also features a 16Mbit SPI based EEPROM chip. It has 6 ports labeled as inputs (one pin each) and 6 ports labeled as motor/servo outputs (3 pins each).
It uses an STM32F4 MCU with 1 MB of flash storage , 192 Kb of RAM and runs at 168 MHz.
If issues are found with this board please report via the github issue tracker.
The board has a USB port directly connected to the processor. Other boards like the Naze and Flip32 have an on-board USB to uart adapter which connect to the processor's serial port instead.
All Cleanflight support is untested, please report success or failure if you try it.
////////////// All below is untocuhed from CC3D documentation.
The 8 pin RC_Input connector has the following pinouts when used in RX_PPM/RX_SERIAL mode
|4||SoftSerial1 TX / Sonar trigger|
|5||SoftSerial1 RX / Sonar Echo|
|7||Battery Voltage sensor||Enable
The 6 pin RC_Output connector has the following pinouts when used in RX_PPM/RX_SERIAL mode
The 8 pin RC_Input connector has the following pinouts when used in RX_PARALLEL_PWM mode
|7||CH4/Battery Voltage sensor||CH4 if battery voltage sensor is disabled|
|8||CH5/CH4||CH4 if battery voltage monitor is enabled|
The 6 pin RC_Output connector has the following pinouts when used in RX_PARALLEL_PWM mode
|2||USART1||MAIN PORT||Connected to an MCU controllable inverter|
|4||SoftSerial||RC connector||Pins 4 and 5 (Tx and Rx respectively)|
The SoftSerial port is not available when RX_PARALLEL_PWM is used. The transmission data rate is limited to 19200 baud.
To connect the GUI to the flight controller you just need a USB cable to use the Virtual Com Port (VCP) or you can use UART1 (Main Port).
CLI access is only available via the VCP by default.
The main port has MSP support enabled on it by default.
The main port is connected to an inverter which is automatically enabled as required. For example, if the main port is used for SBus Serial RX then an external inverter is not required.
The flex port will be enabled in I2C mode unless USART3 is used. You can connect external I2C sensors and displays to this port.
You cannot use USART3 and I2C at the same time.
Flex port pinout
|3||I2C SCL / UART3 TX||3.3v level|
|4||I2C SDA / UART3 RX||3.3v level (5v tolerant|
There are two primary ways to get Cleanflight onto a CC3D board.
- Single binary image mode - best mode if you don't want to use OpenPilot.
- OpenPilot Bootloader compatible image mode - best mode if you want to switch between OpenPilot and Cleanflight.
Single binary image mode.
The entire flash ram on the target processor is flashed with a single image.
The image can be flashed by using a USB to UART adapter connected to the main port when the CC3D is put into the STM32 bootloader mode, achieved by powering on the CC3D with the SBL/3.3v pads bridged.
OpenPilot Bootloader compatible image mode.
The initial section of flash ram on the target process is flashed with a bootloader which can then run the code in the remaining area of flash ram.
The OpenPilot bootloader code also allows the remaining section of flash to be reconfigured and re-flashed by the OpenPilot Ground Station (GCS) via USB without requiring a USB to uart adapter.
The following features are not available:
Restoring OpenPilot bootloader
If you have a JLink debugger, you can use JLinkExe to flash the open pilot bootloader.
- Run JLinkExe
loadbin opbl.bin, 0x08000000
- Re-plug CC3D.
Here's an example session:
$ /Applications/SEGGER/JLink/JLinkExe SEGGER J-Link Commander V4.90c ('?' for help) Compiled Aug 29 2014 09:52:38 DLL version V4.90c, compiled Aug 29 2014 09:52:33 Firmware: J-Link ARM-OB STM32 compiled Aug 22 2012 19:52:04 Hardware: V7.00 S/N: -1 Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull VTarget = 3.300V Info: Could not measure total IR len. TDO is constant high. Info: Could not measure total IR len. TDO is constant high. No devices found on JTAG chain. Trying to find device on SWD. Info: Found SWD-DP with ID 0x1BA01477 Info: Found Cortex-M3 r1p1, Little endian. Info: FPUnit: 6 code (BP) slots and 2 literal slots Info: TPIU fitted. Cortex-M3 identified. Target interface speed: 100 kHz J-Link>device STM32F103CB Info: Device "STM32F103CB" selected (128 KB flash, 20 KB RAM). Reconnecting to target... Info: Found SWD-DP with ID 0x1BA01477 Info: Found SWD-DP with ID 0x1BA01477 Info: Found Cortex-M3 r1p1, Little endian. Info: FPUnit: 6 code (BP) slots and 2 literal slots Info: TPIU fitted. J-Link>r Reset delay: 0 ms Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit. J-Link>h PC = 0800010C, CycleCnt = 00000000 R0 = 0000000C, R1 = 0000003F, R2 = 00000000, R3 = 00000008 R4 = 00003000, R5 = 023ACEFC, R6 = 200000F0, R7 = 20000304 R8 = 023B92BC, R9 = 00000000, R10= ED691105, R11= F626177C R12= 000F0000 SP(R13)= 20000934, MSP= 20000934, PSP= 20000934, R14(LR) = FFFFFFFF XPSR = 01000000: APSR = nzcvq, EPSR = 01000000, IPSR = 000 (NoException) CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00 J-Link>loadbin opbl.bin, 0x08000000 Downloading file [opbl.bin]... WARNING: CPU is running at low speed (8004 kHz). Info: J-Link: Flash download: Flash download into internal flash skipped. Flash contents already match Info: J-Link: Flash download: Total time needed: 0.898s (Prepare: 0.709s, Compare: 0.128s, Erase: 0.000s, Program: 0.000s, Verify: 0.000s, Restore: 0.059s) O.K. J-Link>q $