Skip to content

Commit 60d9757

Browse files
authored
AP_HAL_ChibiOS: add CORVON743V1
1 parent 66c1b05 commit 60d9757

File tree

8 files changed

+325
-0
lines changed

8 files changed

+325
-0
lines changed
Loading
Loading
Binary file not shown.
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# CORVON743V1 Flight Controller
2+
3+
The CORVON743V1 is a flight controller designed and produced by [CORVON]
4+
5+
## Features
6+
7+
- STM32H743 microcontroller
8+
- BMI088/BMI270 dual IMUs
9+
- DPS310 barometer
10+
- IST8310 magnetometer
11+
- AT7456E OSD
12+
- 9V 3A BEC; 5V 3A BEC
13+
- MicroSD Card Slot
14+
- 7 UARTs
15+
- 10 PWM outputs
16+
- 1 CAN
17+
- 1 I2C
18+
- 1 SWD
19+
20+
## Physical
21+
22+
![CORVON743V1 Front View](CORVON743V1_FrontView.jpg)
23+
24+
![CORVON743V1 Back View](CORVON743V1_BackView.jpg)
25+
26+
## UART Mapping
27+
28+
- SERIAL0 -> USB
29+
- SERIAL1 -> UART1 (MAVLink2, DMA-enabled)
30+
- SERIAL2 -> UART2 (DisplayPort, DMA-enabled)
31+
- SERIAL3 -> UART3 (GPS, DMA-enabled)
32+
- SERIAL4 -> UART4 (MAVLink2, DMA-enabled)
33+
- SERIAL5 -> UART6 (RCIN, DMA-enabled)
34+
- SERIAL6 -> UART7 (RX only, ESC Telemetry, DMA-enabled)
35+
- SERIAL7 -> UART8 (User, DMA-enabled)
36+
37+
38+
## RC Input
39+
40+
The default RC input is configured on the UART6. The SBUS pin is inverted and connected to RX6. Non SBUS, single wire serial inputs can be directly tied to RX6 if SBUS pin is left unconnected. RC could be applied instead at a different UART port such as UART1, UART4 or UART8, and set the protocol to receive RC data: `SERIALn_PROTOCOL=23` and change SERIAL5 _Protocol to something other than '23'.
41+
42+
## OSD Support
43+
44+
The CORVON743V1 supports onboard OSD using OSD_TYPE 1 (MAX7456 driver). Simultaneously, DisplayPort OSD is available on the HD VTX connector, See below.
45+
46+
47+
## VTX Support
48+
49+
The SH1.0-6P connector supports a DJI Air Unit / HD VTX connection. Protocol defaults to DisplayPort. Pin 1 of the connector is 9v so be careful not to connect this to a peripheral requiring 5v.
50+
51+
## PWM Output
52+
53+
The CORVON743V1 supports up to 10 PWM outputs.
54+
55+
All the channels support DShot.
56+
57+
Channels 1-8 support bi-directional DShot.
58+
59+
PWM outputs are grouped and every group must use the same output protocol:
60+
61+
1, 2, 3, 4 are Group 1;
62+
63+
5, 6 are Group 2;
64+
65+
7, 8, 9, 10 are Group 3;
66+
67+
## Battery Monitoring
68+
69+
The board has a internal voltage sensor and connections on the ESC connector for an external current sensor input.
70+
The voltage sensor can handle up to 6S LiPo batteries.
71+
72+
The default battery parameters are:
73+
74+
- BATT_MONITOR 4
75+
- BATT_VOLT_PIN 10
76+
- BATT_CURR_PIN 11
77+
- BATT_VOLT_MULT 21.2
78+
- BATT_CURR_SCALE 40.2
79+
80+
## Compass
81+
82+
The CORVON743V1 has a built-in compass sensor (IST8310), and you can also attach an external compass using I2C on the SDA and SCL connector.
83+
84+
## Mechanical
85+
86+
- Mounting: 30.5 x 30.5mm, Φ4mm
87+
- Dimensions: 36 x 36 x 8 mm
88+
- Weight: 9g
89+
90+
## Ports Connector
91+
92+
![CORVON743V1 Ports Connection](CORVON743V1_PortsConnection.jpg)
93+
94+
## Loading Firmware
95+
96+
Initial firmware load can be done with DFU by plugging in USB with the bootloader button pressed. Then you should load the "with_bl.hex" firmware, using your favorite DFU loading tool.
97+
98+
Once the initial firmware is loaded you can update the firmware using any ArduPilot ground station software. Updates should be done with the "*.apj" firmware files.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#BATTERY MONITOR ON
2+
BATT_MONITOR 4
3+
4+
#enable second OSD type
5+
OSD_TYPE2 = 5
6+
7+
#Serial Port defaults
8+
SERIAL2_PROTOCOL 42
9+
SERIAL4_PROTOCOL 2
10+
SERIAL5_PROTOCOL 23
11+
SERIAL6_PROTOCOL 16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# hw definition file for processing by chibios_hwdef.py
2+
# for the CORVON743V1 hardware
3+
4+
# MCU class and specific type
5+
MCU STM32H7xx STM32H743xx
6+
7+
# board ID. See Tools/AP_Bootloader/board_types.txt
8+
APJ_BOARD_ID AP_HW_CORVON743V1
9+
10+
# crystal frequency
11+
OSCILLATOR_HZ 8000000
12+
13+
# flash size
14+
FLASH_SIZE_KB 2048
15+
16+
# bootloader is installed at zero offset
17+
FLASH_RESERVE_START_KB 0
18+
19+
# the location where the bootloader will put the firmware
20+
FLASH_BOOTLOADER_LOAD_KB 128
21+
22+
23+
24+
# order of UARTs (and USB)
25+
SERIAL_ORDER OTG1 USART1
26+
27+
# USB
28+
PA11 OTG_FS_DM OTG1
29+
PA12 OTG_FS_DP OTG1
30+
31+
# USART1
32+
PA9 USART1_TX USART1
33+
PA10 USART1_RX USART1
34+
35+
# pins for SWD debugging
36+
PA13 JTMS-SWDIO SWD
37+
PA14 JTCK-SWCLK SWD
38+
39+
# CS pins
40+
PB12 AT7456E_CS CS
41+
PA15 BMI270_CS CS
42+
PD5 GYRO_CS CS
43+
PD4 ACCEL_CS CS
44+
45+
# LEDs
46+
PE6 LED_ACTIVITY OUTPUT LOW #green
47+
PE4 LED_BOOTLOADER OUTPUT LOW #blue
48+
define HAL_LED_ON 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# hw definition file for processing by chibios_hwdef.py
2+
# for the CORVON743V1 hardware
3+
4+
# MCU class and specific type
5+
MCU STM32H7xx STM32H743xx
6+
7+
# board ID. See Tools/AP_Bootloader/board_types.txt
8+
APJ_BOARD_ID AP_HW_CORVON743V1
9+
10+
# crystal frequency
11+
OSCILLATOR_HZ 8000000
12+
13+
# ChibiOS system timer
14+
STM32_ST_USE_TIMER 12
15+
define CH_CFG_ST_RESOLUTION 16
16+
17+
# flash size
18+
FLASH_SIZE_KB 2048
19+
FLASH_RESERVE_START_KB 128
20+
21+
define HAL_STORAGE_SIZE 32768
22+
STORAGE_FLASH_PAGE 14
23+
24+
# default to all pins low to avoid ESD issues
25+
DEFAULTGPIO OUTPUT LOW PULLDOWN
26+
27+
# order of UARTs (and USB)
28+
SERIAL_ORDER OTG1 USART1 USART2 USART3 UART4 USART6 UART7 UART8
29+
30+
# USB
31+
PA11 OTG_FS_DM OTG1
32+
PA12 OTG_FS_DP OTG1
33+
34+
# USART1 - TELEM1
35+
PA9 USART1_TX USART1
36+
PA10 USART1_RX USART1
37+
38+
# USART2 - DJIO3
39+
PA2 USART2_TX USART2
40+
PA3 USART2_RX USART2
41+
42+
# USART3 - GPS
43+
PD8 USART3_TX USART3
44+
PD9 USART3_RX USART3
45+
46+
# UART4 - TELEM2
47+
PA0 UART4_TX UART4
48+
PA1 UART4_RX UART4
49+
50+
# UART6 - RC_INPUT
51+
PC6 USART6_TX USART6
52+
PC7 USART6_RX USART6
53+
PD0 SBUS_INV OUTPUT LOW
54+
55+
# UART7 - ESC
56+
PE7 UART7_RX UART7
57+
58+
# UART8 - TELEM3
59+
PE1 UART8_TX UART8
60+
PE0 UART8_RX UART8
61+
62+
# SWD
63+
PA13 JTMS-SWDIO SWD
64+
PA14 JTCK-SWCLK SWD
65+
66+
# CAN
67+
PB8 CAN1_RX CAN1
68+
PB9 CAN1_TX CAN1
69+
70+
# two I2C bus
71+
I2C_ORDER I2C2 I2C1
72+
73+
# I2C1 - CONNECTOR
74+
PB6 I2C1_SCL I2C1
75+
PB7 I2C1_SDA I2C1
76+
77+
# I2C2 - BARO & MAG
78+
PB10 I2C2_SCL I2C2
79+
PB11 I2C2_SDA I2C2
80+
81+
# PWM output pins
82+
PE14 TIM1_CH4 TIM1 PWM(1) GPIO(50) BIDIR
83+
PE13 TIM1_CH3 TIM1 PWM(2) GPIO(51)
84+
PE11 TIM1_CH2 TIM1 PWM(3) GPIO(52) BIDIR
85+
PE9 TIM1_CH1 TIM1 PWM(4) GPIO(53)
86+
PB1 TIM3_CH4 TIM3 PWM(5) GPIO(54) BIDIR
87+
PB0 TIM3_CH3 TIM3 PWM(6) GPIO(55)
88+
PD12 TIM4_CH1 TIM4 PWM(7) GPIO(56) BIDIR
89+
PD13 TIM4_CH2 TIM4 PWM(8) GPIO(57)
90+
PD14 TIM4_CH3 TIM4 PWM(9) GPIO(58)
91+
PD15 TIM4_CH4 TIM4 PWM(10) GPIO(59)
92+
93+
# 10 PWM available by default
94+
define BOARD_PWM_COUNT_DEFAULT 10
95+
96+
# LEDs
97+
PE5 LED_RED OUTPUT LOW GPIO(0)
98+
PE6 LED_GREEN OUTPUT LOW GPIO(1)
99+
PE4 LED_BLUE OUTPUT LOW GPIO(2)
100+
101+
define AP_NOTIFY_GPIO_LED_RGB_RED_PIN 0
102+
define AP_NOTIFY_GPIO_LED_RGB_GREEN_PIN 1
103+
define AP_NOTIFY_GPIO_LED_RGB_BLUE_PIN 2
104+
105+
define AP_NOTIFY_GPIO_LED_RGB_ENABLED 1
106+
107+
# ADC for Power
108+
PC0 BATT_VOLTAGE_SENS ADC1 SCALE(1)
109+
PC1 BATT_CURRENT_SENS ADC1 SCALE(1)
110+
111+
define HAL_BATT_VOLT_PIN 10
112+
define HAL_BATT_CURR_PIN 11
113+
define HAL_BATT_VOLT_SCALE 21.12
114+
define HAL_BATT_CURR_SCALE 40.2
115+
116+
# compass
117+
define HAL_COMPASS_DISABLE_IST8310_INTERNAL_PROBE
118+
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
119+
COMPASS IST8310 I2C:ALL_EXTERNAL:0x0E true ROTATION_NONE
120+
COMPASS IST8310 I2C:ALL_INTERNAL:0x0E false ROTATION_YAW_90
121+
122+
# barometers
123+
BARO DPS310 I2C:0:0x76
124+
125+
# microSD support
126+
PC12 SDMMC1_CK SDMMC1
127+
PD2 SDMMC1_CMD SDMMC1
128+
PC8 SDMMC1_D0 SDMMC1
129+
PC9 SDMMC1_D1 SDMMC1
130+
PC10 SDMMC1_D2 SDMMC1
131+
PC11 SDMMC1_D3 SDMMC1
132+
define FATFS_HAL_DEVICE SDCD1
133+
134+
# SPI1 - AT7456E
135+
PA5 SPI1_SCK SPI1
136+
PA6 SPI1_MISO SPI1
137+
PA7 SPI1_MOSI SPI1
138+
PB12 AT7456E_CS CS
139+
140+
# SPI2 - IMUs
141+
PD3 SPI2_SCK SPI2
142+
PC2 SPI2_MISO SPI2
143+
PC3 SPI2_MOSI SPI2
144+
PD5 GYRO_CS CS
145+
PD4 ACCEL_CS CS
146+
PA15 BMI270_CS CS
147+
148+
# SPI devices
149+
SPIDEV bmi088_a SPI2 DEVID1 ACCEL_CS MODE3 10*MHZ 10*MHZ
150+
SPIDEV bmi088_g SPI2 DEVID2 GYRO_CS MODE3 10*MHZ 10*MHZ
151+
SPIDEV bmi270 SPI2 DEVID3 BMI270_CS MODE3 1*MHZ 10*MHZ
152+
SPIDEV osd SPI1 DEVID4 AT7456E_CS MODE0 10*MHZ 10*MHZ
153+
154+
# 2 IMUs
155+
IMU BMI088 SPI:bmi088_a SPI:bmi088_g ROTATION_ROLL_180_YAW_270
156+
IMU BMI270 SPI:bmi270 ROTATION_ROLL_180
157+
158+
# enable FAT filesystem support (needs a microSD defined via SDMMC)
159+
define HAL_OS_FATFS_IO 1
160+
161+
# setup for OSD
162+
define OSD_ENABLED 1
163+
define HAL_OSD_TYPE_DEFAULT 1
164+
ROMFS_WILDCARD libraries/AP_OSD/fonts/font*.bin
165+
166+
# setup for BF migration
167+
define HAL_FRAME_TYPE_DEFAULT 12
168+

0 commit comments

Comments
 (0)