2019-02-09 17:52:58 -04:00
|
|
|
# hw definition file for processing by chibios_hwdef.py
|
2019-02-28 19:52:02 -04:00
|
|
|
# for H743 bootloader
|
2019-02-09 17:52:58 -04:00
|
|
|
|
|
|
|
# MCU class and specific type
|
|
|
|
MCU STM32H7xx STM32H743xx
|
|
|
|
|
2019-02-26 02:52:04 -04:00
|
|
|
# USB setup
|
|
|
|
USB_VENDOR 0x2DAE # ONLY FOR USE BY HEX! NOBODY ELSE
|
|
|
|
USB_PRODUCT 0x1016
|
|
|
|
USB_STRING_MANUFACTURER "Hex/ProfiCNC"
|
|
|
|
|
2019-02-09 17:52:58 -04:00
|
|
|
# crystal frequency
|
|
|
|
OSCILLATOR_HZ 24000000
|
|
|
|
|
|
|
|
# board ID for firmware load
|
2019-02-26 02:52:04 -04:00
|
|
|
APJ_BOARD_ID 140
|
2019-02-09 17:52:58 -04:00
|
|
|
|
|
|
|
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
|
2019-05-05 21:14:18 -03:00
|
|
|
FLASH_BOOTLOADER_LOAD_KB 128
|
2019-02-09 17:52:58 -04:00
|
|
|
|
|
|
|
define HAL_LED_ON 0
|
|
|
|
|
|
|
|
# order of UARTs (and USB)
|
2020-04-24 08:10:08 -03:00
|
|
|
SERIAL_ORDER OTG1 UART7
|
2019-02-09 17:52:58 -04:00
|
|
|
|
|
|
|
# UART7 maps to uartF in the HAL (serial5 in SERIALn_ parameters).
|
|
|
|
PE7 UART7_RX UART7
|
|
|
|
PE8 UART7_TX UART7
|
|
|
|
|
2019-04-01 05:16:01 -03:00
|
|
|
# Pin for PWM Voltage Selection
|
|
|
|
PB4 PWM_VOLT_SEL OUTPUT HIGH
|
|
|
|
|
2019-02-09 17:52:58 -04:00
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
2020-03-09 19:54:59 -03:00
|
|
|
# Add CS pins to ensure they are high in bootloader
|
|
|
|
PC1 MAG_CS CS
|
|
|
|
PC2 MPU_CS CS
|
|
|
|
PC13 GYRO_EXT_CS CS
|
|
|
|
PC14 BARO_EXT_CS CS
|
|
|
|
PC15 ACCEL_EXT_CS CS
|
|
|
|
PD7 BARO_CS CS
|
|
|
|
PE4 MPU_EXT_CS CS
|
|
|
|
PD10 FRAM_CS CS SPEED_VERYLOW
|
2020-09-13 12:46:29 -03:00
|
|
|
|
|
|
|
# disable peripheral and sensor power in the bootloader
|
|
|
|
PA8 nVDD_5V_PERIPH_EN OUTPUT HIGH
|
|
|
|
PE3 VDD_3V3_SENSORS_EN OUTPUT LOW
|