Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_HAL_ChibiOS: Add ZeroOneX6 Flight Controller Bootloader File. #27282

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
dcacb53
Add ZeroOne Bootloader File.
Jun 11, 2024
5e96204
Update hwdef-bl.dat
ZeroOne-Aero Jun 14, 2024
6c0c0fa
Update hwdef.dat
ZeroOne-Aero Jun 14, 2024
6175bde
Update hwdef-bl.dat
ZeroOne-Aero Jun 17, 2024
d961abc
Update hwdef.dat
ZeroOne-Aero Jun 17, 2024
6b5032c
Merge branch 'ArduPilot:master' into zeroOneBootLoader
ZeroOne-Aero Jun 18, 2024
5167202
Merge branch 'ArduPilot:master' into zeroOneBootLoader
ZeroOne-Aero Jun 20, 2024
77f29f4
ZeroOneX6 README file and pin diagram
ZeroOne-Aero Jun 20, 2024
24e348c
Update README.md
ZeroOne-Aero Jun 20, 2024
5561638
Update README.md
ZeroOne-Aero Jun 20, 2024
51eca40
Update defaults.parm
ZeroOne-Aero Jun 21, 2024
45cf212
Update hwdef-bl.dat
ZeroOne-Aero Jun 26, 2024
584666c
Update README.md
ZeroOne-Aero Jul 19, 2024
3545a4e
Update hwdef-bl.dat
ZeroOne-Aero Jul 19, 2024
6b45b55
Update hwdef.dat
ZeroOne-Aero Jul 19, 2024
cd4ace7
Update hwdef-bl.dat
ZeroOne-Aero Jul 19, 2024
0202780
Add files via upload
ZeroOne-Aero Jul 19, 2024
ff405ed
Add files via upload
ZeroOne-Aero Jul 19, 2024
70aeafe
Add Bootloader Binary
ZeroOne-Aero Jul 19, 2024
699cd75
Merge branch 'master' into zeroOneBootLoader
ZeroOne-Aero Jul 19, 2024
6ea2f73
Update hwdef.dat
ZeroOne-Aero Jul 20, 2024
416d360
Update hwdef-bl.dat
ZeroOne-Aero Jul 20, 2024
5d2a4c1
Update defaults.parm
ZeroOne-Aero Jul 20, 2024
02828c7
Update defaults.parm
ZeroOne-Aero Jul 20, 2024
6de6def
Update hwdef.dat
ZeroOne-Aero Jul 20, 2024
54dfc92
Update hwdef.dat
ZeroOne-Aero Jul 20, 2024
85db285
Delete ZeroOneX6Pinout.jpg
ZeroOne-Aero Jul 20, 2024
8847978
Update README.md
ZeroOne-Aero Jul 21, 2024
63fd5b3
Update hwdef.dat
ZeroOne-Aero Jul 21, 2024
bc714b1
Update hwdef-bl.dat
ZeroOne-Aero Jul 21, 2024
532e6b6
Update hwdef-bl.dat
ZeroOne-Aero Jul 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/ZeroOneX6/hwdef-bl.dat
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
# hw definition file for processing by chibios_hwdef.py
# for the ZeroOneX6 hardware

# MCU class and specific type
MCU STM32H7xx STM32H743xx

# crystal frequency
OSCILLATOR_HZ 16000000

# board ID for firmware load
APJ_BOARD_ID 5600

# bootloader is installed at zero offset
FLASH_RESERVE_START_KB 0

# the location where the bootloader will put the firmware
FLASH_BOOTLOADER_LOAD_KB 128

# flash size
FLASH_SIZE_KB 2048

env OPTIMIZE -Os

# order of UARTs (and USB)
SERIAL_ORDER OTG1 UART7 UART5 USART3

# default to all pins low to avoid ESD issues
DEFAULTGPIO OUTPUT LOW PULLDOWN
andyp1per marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should just remove this line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this need remain to avoid ESD issues?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should not be used in the bootloader...can be used in main firmware...this prevents some peripherals from entering test modes during their power up


# USB
PA11 OTG_FS_DM OTG1
PA12 OTG_FS_DP OTG1
PA9 VBUS INPUT OPENDRAIN

# pins for SWD debugging
PA13 JTMS-SWDIO SWD
PA14 JTCK-SWCLK SWD

# CS pins
PI9 IMU1_CS CS
PH5 ICM42688_CS CS
PI4 BMI088_A_CS CS
PI8 BMI088_G_CS CS
PH15 BMM150_CS CS
PG7 FRAM_CS CS
PI10 EXT1_CS CS

# telem1
PE8 UART7_TX UART7
PF6 UART7_RX UART7

# telem2
PC12 UART5_TX UART5
PD2 UART5_RX UART5

# debug uart
PD8 USART3_TX USART3
PD9 USART3_RX USART3

# armed indication
PE6 nARMED OUTPUT HIGH

# start peripheral power off
PF12 nVDD_5V_HIPOWER_EN OUTPUT HIGH
PG4 nVDD_5V_PERIPH_EN OUTPUT HIGH

# LEDs
PE3 LED_ACTIVITY OUTPUT OPENDRAIN HIGH # red
PE5 LED_BOOTLOADER OUTPUT OPENDRAIN HIGH # blue
define HAL_LED_ON 0
Hwurzburg marked this conversation as resolved.
Show resolved Hide resolved

define HAL_USE_EMPTY_STORAGE 1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need these in the bootloader

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, removed.

define HAL_STORAGE_SIZE 16384

Hwurzburg marked this conversation as resolved.
Show resolved Hide resolved
# enable DFU by default
ENABLE_DFU_BOOT 1

# support flashing from SD card:
# power enable pins
PC13 VDD_3V3_SD_CARD_EN OUTPUT HIGH

# FATFS support:
define CH_CFG_USE_MEMCORE 1
define CH_CFG_USE_HEAP 1
define CH_CFG_USE_SEMAPHORES 0
define CH_CFG_USE_MUTEXES 1
define CH_CFG_USE_DYNAMIC 1
define CH_CFG_USE_WAITEXIT 1
define CH_CFG_USE_REGISTRY 1

# microSD support
PD6 SDMMC2_CK SDMMC2
PD7 SDMMC2_CMD SDMMC2
PB14 SDMMC2_D0 SDMMC2
PB15 SDMMC2_D1 SDMMC2
PG11 SDMMC2_D2 SDMMC2
PB4 SDMMC2_D3 SDMMC2
define FATFS_HAL_DEVICE SDCD2

DMA_PRIORITY SDMMC* USART6* ADC* UART* USART* SPI* TIM*

# enable FAT filesystem support (needs a microSD defined via SDMMC)
define HAL_OS_FATFS_IO 1

define AP_BOOTLOADER_FLASH_FROM_SD_ENABLED 1

Loading
Loading