Skip to content

Commit

Permalink
hwdef: force 100MBit fullduplex for BotBloxSwitch
Browse files Browse the repository at this point in the history
auto-negotiation doesn't work

also disable TX/RX swap as not needed on final board
  • Loading branch information
AaronElijah authored and tridge committed Sep 1, 2024
1 parent b78cf86 commit 786d811
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 1 addition & 4 deletions libraries/AP_HAL_ChibiOS/hwdef/BotBloxSwitch/defaults.parm
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ NET_OPTIONS 1
# enable hw flow control
UART1_RTSCTS 1

# swap TX and RX
UART1_OPTIONS 8

SCR_ENABLE 1
SCR_VM_I_COUNT 1000000
SCR_HEAP_SIZE 150000
SCR_HEAP_SIZE 100000

WEB_ENABLE 1
WEB_PORT 80
6 changes: 4 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/BotBloxSwitch/hwdef-bl.dat
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ PB11 ETH_RMII_TX_EN ETH1
PA7 ETH_RMII_CRS_DV ETH1
PA1 ETH_RMII_REF_CLK ETH1

define BOARD_PHY_ID MII_LAN8742A_ID
define BOARD_PHY_ADDRESS 0x0005
define BOARD_PHY_ADDRESS 5
define BOARD_PHY_RMII

# auto-negotiation doesn't work, force 100MBit full duplex
define STM32_MAC_PHY_LINK_TYPE MAC_LINK_100_FULLDUPLEX

include ../include/network_bootloader.inc

SERIAL_ORDER OTG1 USART3
10 changes: 8 additions & 2 deletions libraries/AP_HAL_ChibiOS/hwdef/BotBloxSwitch/hwdef.dat
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ PB11 ETH_RMII_TX_EN ETH1
PA7 ETH_RMII_CRS_DV ETH1
PA1 ETH_RMII_REF_CLK ETH1

define BOARD_PHY_ID MII_LAN8742A_ID
define BOARD_PHY_ADDRESS 0x0005
define BOARD_PHY_ADDRESS 5
define BOARD_PHY_RMII

# auto-negotiation doesn't work, force 100MBit full duplex
define STM32_MAC_PHY_LINK_TYPE MAC_LINK_100_FULLDUPLEX

define HAL_PERIPH_ENABLE_NETWORKING
define AP_NETWORKING_MAX_INSTANCES 4

Expand All @@ -98,6 +100,10 @@ define AP_SERIALMANAGER_REGISTER_ENABLED 1
define AP_SCRIPTING_ENABLED 1
define AP_FILESYSTEM_ROMFS_ENABLED 1

# keep ROMFS uncompressed as we don't have enough RAM
# to uncompress the network enabled bootloader at runtime
env ROMFS_UNCOMPRESSED True

include ../include/network_PPPGW.inc

define HAL_MONITOR_THREAD_ENABLED 1

0 comments on commit 786d811

Please sign in to comment.