2018-07-04 08:18:23 -03:00
|
|
|
# hwdef for bootloader for CubeYellow
|
2018-06-16 04:43:28 -03:00
|
|
|
|
|
|
|
# MCU class and specific type
|
|
|
|
MCU STM32F7xx STM32F777xx
|
|
|
|
|
|
|
|
# crystal frequency
|
|
|
|
OSCILLATOR_HZ 24000000
|
|
|
|
|
|
|
|
# board ID for firmware load
|
2018-06-16 08:09:31 -03:00
|
|
|
APJ_BOARD_ID 120
|
2018-06-16 04:43:28 -03:00
|
|
|
|
|
|
|
# flash size
|
|
|
|
FLASH_SIZE_KB 2048
|
|
|
|
|
|
|
|
# USB setup
|
|
|
|
USB_VENDOR 0x2DAE # ONLY FOR USE BY ProfiCNC / HEX! NOBODY ELSE
|
2018-07-04 07:43:17 -03:00
|
|
|
USB_PRODUCT 0x1002
|
|
|
|
USB_STRING_MANUFACTURER "Hex/ProfiCNC"
|
2018-06-16 04:43:28 -03:00
|
|
|
|
|
|
|
# order of UARTs (and USB)
|
2020-04-24 08:10:08 -03:00
|
|
|
SERIAL_ORDER OTG1 USART2 USART3 UART7
|
2018-06-25 03:08:38 -03:00
|
|
|
|
|
|
|
PD5 USART2_TX USART2
|
|
|
|
PD6 USART2_RX USART2
|
|
|
|
PD3 USART2_CTS USART2
|
|
|
|
PD4 USART2_RTS USART2
|
|
|
|
|
2018-06-27 23:31:41 -03:00
|
|
|
# the telem2 USART, also with RTS/CTS available
|
|
|
|
# USART3 serial3 telem2
|
|
|
|
PD8 USART3_TX USART3
|
|
|
|
PD9 USART3_RX USART3
|
|
|
|
PD11 USART3_CTS USART3
|
|
|
|
PD12 USART3_RTS USART3
|
|
|
|
|
2018-06-25 03:08:38 -03:00
|
|
|
PE7 UART7_RX UART7
|
|
|
|
PE8 UART7_TX UART7
|
2018-06-16 04:43:28 -03:00
|
|
|
|
2019-04-01 05:16:01 -03:00
|
|
|
# Pin for PWM Voltage Selection
|
|
|
|
PB4 PWM_VOLT_SEL OUTPUT HIGH
|
|
|
|
|
2018-06-16 04:43:28 -03:00
|
|
|
# now we define the pins that USB is connected on
|
|
|
|
PA11 OTG_FS_DM OTG1
|
|
|
|
PA12 OTG_FS_DP OTG1
|
|
|
|
|
|
|
|
# these are the pins for SWD debugging with a STlinkv2 or black-magic probe
|
|
|
|
PA13 JTMS-SWDIO SWD
|
|
|
|
PA14 JTCK-SWCLK SWD
|
|
|
|
|
|
|
|
# no reserved flash for bootloader
|
|
|
|
FLASH_RESERVE_START_KB 0
|
|
|
|
|
2018-06-16 08:09:31 -03:00
|
|
|
# start on 4th sector (1st sector for bootloader, 2 for extra storage)
|
2019-05-05 21:14:18 -03:00
|
|
|
FLASH_BOOTLOADER_LOAD_KB 96
|
2018-06-16 04:43:28 -03:00
|
|
|
|
|
|
|
define HAL_USE_EMPTY_STORAGE 1
|
2018-06-16 18:11:35 -03:00
|
|
|
define HAL_STORAGE_SIZE 16384
|
2018-06-16 08:09:31 -03:00
|
|
|
|
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
|