Add Software CAN Terminiation Support to Holybro CAN Products

This commit is contained in:
Vincent Poon 2024-12-16 18:26:14 +08:00
parent eaf20db6ea
commit 8973534ab2
17 changed files with 5362 additions and 1304 deletions

Binary file not shown.

1209
Tools/bootloaders/HolybroF4_PMU_bl.hex generated Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

1409
Tools/bootloaders/HolybroG4_Airspeed_bl.hex generated Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

1408
Tools/bootloaders/HolybroG4_Compass_bl.hex generated Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,7 @@ PC11 USART3_RX USART3
PA11 CAN1_RX CAN1 PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1 PA12 CAN1_TX CAN1
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
define HAL_USE_CAN TRUE define HAL_USE_CAN TRUE
define STM32_CAN_USE_CAN1 TRUE define STM32_CAN_USE_CAN1 TRUE

View File

@ -61,6 +61,7 @@ env ROMFS_UNCOMPRESSED True
PA11 CAN1_RX CAN1 PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1 PA12 CAN1_TX CAN1
PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PA15 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
# use DNA for node allocation # use DNA for node allocation

View File

@ -74,6 +74,7 @@ define HAL_DISABLE_LOOP_DELAY
PB12 CAN2_RX CAN2 PB12 CAN2_RX CAN2
PB13 CAN2_TX CAN2 PB13 CAN2_TX CAN2
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
# make bl baudrate match debug baudrate for easier debugging # make bl baudrate match debug baudrate for easier debugging
define BOOTLOADER_BAUDRATE 57600 define BOOTLOADER_BAUDRATE 57600

View File

@ -75,6 +75,7 @@ define HAL_DISABLE_LOOP_DELAY
PB12 CAN2_RX CAN2 PB12 CAN2_RX CAN2
PB13 CAN2_TX CAN2 PB13 CAN2_TX CAN2
PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PB2 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
define HAL_NO_MONITOR_THREAD define HAL_NO_MONITOR_THREAD

View File

@ -64,6 +64,7 @@ define DMA_RESERVE_SIZE 0
PA11 CAN1_RX CAN1 PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1 PA12 CAN1_TX CAN1
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
# make bl baudrate match debug baudrate for easier debugging # make bl baudrate match debug baudrate for easier debugging
define BOOTLOADER_BAUDRATE 57600 define BOOTLOADER_BAUDRATE 57600

View File

@ -80,6 +80,7 @@ define DMA_RESERVE_SIZE 0
PA11 CAN1_RX CAN1 PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1 PA12 CAN1_TX CAN1
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
define HAL_DEVICE_THREAD_STACK 768 define HAL_DEVICE_THREAD_STACK 768

View File

@ -64,10 +64,12 @@ define DMA_RESERVE_SIZE 0
PA11 CAN1_RX CAN1 PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1 PA12 CAN1_TX CAN1
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW LOW
PB12 CAN2_RX CAN2 PB12 CAN2_RX CAN2
PB13 CAN2_TX CAN2 PB13 CAN2_TX CAN2
PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB9 GPIO_CAN2_TERM OUTPUT PUSHPULL SPEED_LOW LOW
# make bl baudrate match debug baudrate for easier debugging # make bl baudrate match debug baudrate for easier debugging
define BOOTLOADER_BAUDRATE 57600 define BOOTLOADER_BAUDRATE 57600

View File

@ -110,10 +110,12 @@ define DMA_RESERVE_SIZE 0
PA11 CAN1_RX CAN1 PA11 CAN1_RX CAN1
PA12 CAN1_TX CAN1 PA12 CAN1_TX CAN1
PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PC13 GPIO_CAN1_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB4 GPIO_CAN1_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
PB12 CAN2_RX CAN2 PB12 CAN2_RX CAN2
PB13 CAN2_TX CAN2 PB13 CAN2_TX CAN2
PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW PB14 GPIO_CAN2_SILENT OUTPUT PUSHPULL SPEED_LOW LOW
PB9 GPIO_CAN2_TERM OUTPUT PUSHPULL SPEED_LOW HIGH
define HAL_DEVICE_THREAD_STACK 768 define HAL_DEVICE_THREAD_STACK 768