2019-03-10 00:17:38 -04:00
|
|
|
# hw definition file for processing by chibios_hwdef.py
|
|
|
|
# for MindPX-v2 hardware bootloader
|
|
|
|
|
|
|
|
# MCU class and specific type
|
|
|
|
MCU STM32F4xx STM32F427xx
|
|
|
|
|
|
|
|
define HAL_CHIBIOS_ARCH_MINDPXV2 1
|
|
|
|
|
|
|
|
# board ID for firmware load
|
|
|
|
APJ_BOARD_ID 88
|
|
|
|
|
|
|
|
# crystal frequency
|
|
|
|
OSCILLATOR_HZ 8000000
|
|
|
|
|
|
|
|
STM32_ST_USE_TIMER 5
|
|
|
|
|
|
|
|
|
|
|
|
# flash size
|
|
|
|
FLASH_SIZE_KB 2048
|
|
|
|
|
|
|
|
# location of application code
|
2019-05-05 21:14:18 -03:00
|
|
|
FLASH_BOOTLOADER_LOAD_KB 16
|
2019-03-10 00:17:38 -04:00
|
|
|
|
|
|
|
# bootloader loads at start of flash
|
|
|
|
FLASH_RESERVE_START_KB 0
|
|
|
|
|
|
|
|
# order of UARTs (and USB)
|
2020-04-24 08:10:08 -03:00
|
|
|
SERIAL_ORDER OTG1 USART2
|
2019-03-10 00:17:38 -04:00
|
|
|
|
|
|
|
PA9 VBUS INPUT
|
|
|
|
|
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
|
|
|
# USART2 serial2 telem1
|
|
|
|
PD5 USART2_TX USART2
|
|
|
|
PD6 USART2_RX USART2
|
|
|
|
|
|
|
|
PA8 LED_BOOTLOADER OUTPUT
|
|
|
|
define HAL_LED_ON 1
|
|
|
|
|
2020-03-09 19:54:59 -03:00
|
|
|
|
|
|
|
# Add CS pins to ensure they are high in bootloader
|
|
|
|
PB2 GYRO_CS CS
|
|
|
|
PC15 BARO_CS CS
|
|
|
|
PD11 ACCEL_MAG_CS CS
|
|
|
|
PE3 MPU_CS CS
|
|
|
|
PE12 FRAM_CS CS
|
|
|
|
PE15 NRF_CS CS
|