New target: SDMODELH7V2 (STM32H743)#11341
New target: SDMODELH7V2 (STM32H743)#11341sensei-hacker merged 3 commits intoiNavFlight:maintenance-9.xfrom
Conversation
SDMODEL SDH7 V2 flight controller with MPU6000 on SPI4 (CW270), MAX7456 OSD on SPI2, SD card blackbox on SPI1, BMP280/MS5611 baro and IST8310 mag on I2C1, 8 motor outputs across TIM2/3/5/8, VCP + 6 UARTs (UART7 RX-only for ESC sensor).
|
…RT2 for onboard Bluetooth MSP Remove the camera control timer output on PE9. Add config.c to wire PINIO1/PINIO2 to USER1/USER2 mode boxes and preset UART2 for MSP at 115200 baud since it is connected to an onboard Bluetooth module.
| #define USE_PINIO | ||
| #define USE_PINIOBOX | ||
| #define PINIO1_PIN PE13 | ||
| #define PINIO1_FLAGS PINIO_FLAGS_INVERTED | ||
| #define PINIO2_PIN PB11 | ||
| #define PINIO2_FLAGS PINIO_FLAGS_INVERTED |
|
Merging this with the following configuration. VTX power is USER1, cam pin is USER2, Bleutooth is turned off upon arming. // VTX power // Cam pin // Bluetooth (off on arm) |
| #define PINIO2_PIN PB11 | ||
|
|
||
| // Cam pin | ||
| #define PINIO2_PIN PE9 |
There was a problem hiding this comment.
(Well kind of GPIO but not as PINIO)
There was a problem hiding this comment.
| PIN | PINIO | BOX | CONFIG | FUNCTION |
|---|---|---|---|---|
| PE13 | 1 | 0 | 129 | disable BT device on ARM |
| PB11 | 2 | 40 | 129 | VTX PWR |
There was a problem hiding this comment.
By camera control do you mean?:
- Runcam UART control
- Switching between the cam 1 pad and the cam2 pad
- Emulating a joystick board (pwm)
There was a problem hiding this comment.
Guess run cam - but not sure which UART is responsible
Definite not 2.
There was a problem hiding this comment.
Yeah it doesn't look like there is a uart that can use that pin. So Runcam is out.
We could make it a PWM which could be used to emulate a camera joystick if someone want to, or for any other PWM use. Of course the board already has 8 PWM, and no exposed PINIO available. Having a PINIO could be useful.
I'm somewhat tempted to do both. Assign it so that the user can use it either for PINIO or PWM.
Doing that would only require adding a guard in the PINIO section which skips setting it as pinio if it's being used by the servo or motor mixers:
if (ioRec->owner == OWNER_MOTOR || ioRec->owner == OWNER_SERVO) {
continue; // Pin already claimed by PWM - skip PINIO
}
|
Thank You @haslinghuis and @sensei-hacker So Much. |
|
I have something more planned for camera control and PINIO in INAV 9.1 or maybe 10, but for now I'm merging this with it as pinio. |
9e4bb24
into
iNavFlight:maintenance-9.x
|
Thank you so much of @sensei-hacker |
Summary
Adds support for the SDMODEL SDH7 V2 flight controller (STM32H743).
Hardware
Changes
src/main/target/SDMODELH7V2/CMakeLists.txtsrc/main/target/SDMODELH7V2/target.hsrc/main/target/SDMODELH7V2/target.c