Skip to content

Commit

Permalink
AP_HAL_ChibiOS: add hwdef files for NarinFC-H7
Browse files Browse the repository at this point in the history
  • Loading branch information
vololand committed Jan 17, 2025
1 parent 372a1a6 commit 388690a
Show file tree
Hide file tree
Showing 21 changed files with 448 additions and 0 deletions.
57 changes: 57 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/NarinFC-H7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# [NarinFC-H7 VOLOLAND CO., LTD](https://vololand.com/pages/product/computer "NarinFC-H7")

The NarinFC-H7 is a flight controller produced by [VOLOLAND CO., LTD](https://vololand.com "VOLOLAND CO., LTD")

![NarinFC-H7](./images/NarinFC_Header.jpg "NarinFC")

## 1. Basic Parameters
![Basic Parameters](./images/1.Basic_Parameters.png "Basic Parameters")

## 2. Outline Dimensions
![Outline Dimensions](./images/2.Outline_Dimensions.png "Outline Dimensions")

## 3. Wire Diagram
![Wire Diagram](./images/3.Wire_Diagram.png "Wire Diagram")

## 4. Port Diagram & Pin outs
![Port Diagram & Pin outs](./images/4.Port_Diagram&Pin_outs_Diagram-A.png "Port Diagram-A")

### 1. TELEM1, TELEM2 Port (JST GH 6P Connector)
![TELEM Pinout](./images/4.1.TELEM1,TELEM2_Port(JST_GH_6P_Connector).png "TELEM Pinout")

### 2. CAN1, CAN2 Port (JST GH 4P Connector)
![CAN Port](./images/4.2.CAN1,CAN2_Port(JST_HG_4P_Connector).png "CAN Port")

### 3. I2C, I2C2, I2C3, I2C4 Port (JST GH 4P Connector)
![I2C Port](./images/4.3.I2C1,I2C2,I2C3,I2C4_Port(JST_GH_4P_Connector).png "I2C Port")

### 4. UART4 Port (JST GH 6P Connector)
![UART Port](./images/4.4.UART4_Port(JST_GH_6P_Connector).png "UART Port")

### 5. GPS & Safety Port (JST GH 10P Connector)
![GPS & Safety Port](./images/4.5.GPS&Safety_Port(JST_GH_10P_Connector).png "GPS & Safety Port")

<br>

![Port Diagram & Pin outs](./images/4.Port_Diagram&Pin_outs_Diagram-B.png "Port Diagram-B")

### 6. PWM Out (M1-M14)
![PWM Out](./images/4.6.PWM_Out(M1-M14).png "PWM Out")

### 7. Power Input
![Power Input](./images/4.7.Power_Input.png "Power Input")

### 8. DEBUG Port(JST GH 6P Connector)
![DEBUG Port](./images/4.8.DEBUG_Port(JST_HG_6P_Connector).png "DEBUG Port")

### 9. USB Port(USB C Type)

### 10. SPI Port (JST GH 7P Connector)
![SPI Port](./images/4.10.SPI_Port(JST_GH_7P_Connector).png "SPI Port")

### 11. SD CARD

<br>

# [VOLOLAND CO., LTD](https://vololand.com "VOLOLAND CO., LTD")

18 changes: 18 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/NarinFC-H7/defaults.parm
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# temperature control. We need lower P/I values
# to prevent oscillation of the BMI088 temperature
# the ADIS16470 is factory temperature calibrated,
# but the BMI088 isn't, so temperature control is still
# worthwhile
BRD_HEAT_TARG 45
BRD_HEAT_P 50
BRD_HEAT_I 0.07

# turn on the CAN power monitoring(default)
CAN_P1_DRIVER 1
BATT_MONITOR 8

# setup the parameter for the ADC power module
BATT_VOLT_PIN 16
BATT_CURR_PIN 17
BATT_VOLT_MULT 18.000
BATT_AMP_PERVLT 24.000
60 changes: 60 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/NarinFC-H7/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# hw definition file for processing by chibios_hwdef.py
# for NarinFC-H7 board

# MCU class and specific type
MCU STM32H7xx STM32H743xx

# crystal frequency
OSCILLATOR_HZ 16000000

# board ID for firmware load
APJ_BOARD_ID 1010

FLASH_SIZE_KB 2048

# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

# the location where the bootloader will put the firmware
# the H743 has 128k sectors
FLASH_BOOTLOADER_LOAD_KB 128

# ChibiOS system timer
STM32_ST_USE_TIMER 2

PI5 LED_RED OUTPUT OPENDRAIN HIGH # red
PI7 LED_ACTIVITY OUTPUT OPENDRAIN HIGH # blue
PI6 LED_BOOTLOADER OUTPUT OPENDRAIN HIGH # green

define HAL_LED_ON 0

# order of UARTs (and USB)
SERIAL_ORDER OTG1 UART7

# UART7 is debug
PF6 UART7_RX UART7 NODMA
PE8 UART7_TX UART7 NODMA

PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1

PA13 JTMS-SWDIO SWD
PA14 JTCK-SWCLK SWD

define BOOTLOADER_DEBUG SD7


# Add CS pins to ensure they are high in bootloader
PF10 ADIS16470_CS CS
PF2 RM3100_CS CS
PG6 ICM20689_CS CS SPEED_VERYLOW
PI12 ICM20649_CS CS SPEED_VERYLOW
PE15 ICM20689_BOARD_CS CS SPEED_VERYLOW
PF3 BMI088_A_CS CS
PF4 BMI088_G_CS CS
PF5 FRAM_CS CS SPEED_VERYLOW
PG10 MS5611_IMU_CS CS
PI8 MS5611_BOARD_CS CS
PI4 EXT1_CS1 CS
PI10 EXT1_CS2 CS
PI13 EXT1_CS3 CS
Loading

0 comments on commit 388690a

Please sign in to comment.