mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-09 16:13:56 -03:00
hwdef: fixed flash double reserve
fixes #19765, an alternative to #19768 the advantage of this approach is it is less error prone, as the actual position and size of the storage sectors is calculated
This commit is contained in:
parent
c285f4c748
commit
d22e3a1f52
@ -15,8 +15,9 @@ FLASH_SIZE_KB 2048
|
|||||||
# bootloader starts at zero offset
|
# bootloader starts at zero offset
|
||||||
FLASH_RESERVE_START_KB 0
|
FLASH_RESERVE_START_KB 0
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
# use last 2 pages for flash storage
|
||||||
FLASH_RESERVE_END_KB 256
|
# H743 has 16 pages of 128k each
|
||||||
|
STORAGE_FLASH_PAGE 14
|
||||||
|
|
||||||
# the location where the bootloader will put the firmware
|
# the location where the bootloader will put the firmware
|
||||||
# the H743 has 128k sectors
|
# the H743 has 128k sectors
|
||||||
|
@ -110,9 +110,6 @@ define HAL_STORAGE_SIZE 16384
|
|||||||
# H743 has 16 pages of 128k each
|
# H743 has 16 pages of 128k each
|
||||||
STORAGE_FLASH_PAGE 14
|
STORAGE_FLASH_PAGE 14
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
|
||||||
FLASH_RESERVE_END_KB 256
|
|
||||||
|
|
||||||
# enable logging to dataflash
|
# enable logging to dataflash
|
||||||
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ FLASH_RESERVE_START_KB 0
|
|||||||
# the location where the bootloader will put the firmware
|
# the location where the bootloader will put the firmware
|
||||||
FLASH_BOOTLOADER_LOAD_KB 128
|
FLASH_BOOTLOADER_LOAD_KB 128
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
STORAGE_FLASH_PAGE 14
|
||||||
FLASH_RESERVE_END_KB 256
|
define HAL_STORAGE_SIZE 32768
|
||||||
|
|
||||||
# order of UARTs (and USB)
|
# order of UARTs (and USB)
|
||||||
SERIAL_ORDER OTG1
|
SERIAL_ORDER OTG1
|
||||||
|
@ -24,9 +24,6 @@ FLASH_RESERVE_START_KB 128
|
|||||||
STORAGE_FLASH_PAGE 14
|
STORAGE_FLASH_PAGE 14
|
||||||
define HAL_STORAGE_SIZE 32768
|
define HAL_STORAGE_SIZE 32768
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
|
||||||
FLASH_RESERVE_END_KB 256
|
|
||||||
|
|
||||||
# one I2C bus
|
# one I2C bus
|
||||||
I2C_ORDER I2C1
|
I2C_ORDER I2C1
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ FLASH_RESERVE_START_KB 0
|
|||||||
# the location where the bootloader will put the firmware
|
# the location where the bootloader will put the firmware
|
||||||
FLASH_BOOTLOADER_LOAD_KB 128
|
FLASH_BOOTLOADER_LOAD_KB 128
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
STORAGE_FLASH_PAGE 14
|
||||||
FLASH_RESERVE_END_KB 256
|
define HAL_STORAGE_SIZE 32768
|
||||||
|
|
||||||
# order of UARTs (and USB)
|
# order of UARTs (and USB)
|
||||||
SERIAL_ORDER OTG1
|
SERIAL_ORDER OTG1
|
||||||
|
@ -27,9 +27,6 @@ define HAL_STORAGE_SIZE 32768
|
|||||||
# enable logging to dataflash
|
# enable logging to dataflash
|
||||||
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
define HAL_LOGGING_DATAFLASH_ENABLED 1
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
|
||||||
FLASH_RESERVE_END_KB 256
|
|
||||||
|
|
||||||
# one I2C bus
|
# one I2C bus
|
||||||
I2C_ORDER I2C1
|
I2C_ORDER I2C1
|
||||||
|
|
||||||
|
@ -15,8 +15,9 @@ FLASH_SIZE_KB 2048
|
|||||||
# bootloader starts at zero offset
|
# bootloader starts at zero offset
|
||||||
FLASH_RESERVE_START_KB 0
|
FLASH_RESERVE_START_KB 0
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
# use last 2 pages for flash storage
|
||||||
FLASH_RESERVE_END_KB 256
|
# H743 has 16 pages of 128k each
|
||||||
|
STORAGE_FLASH_PAGE 14
|
||||||
|
|
||||||
# the location where the bootloader will put the firmware
|
# the location where the bootloader will put the firmware
|
||||||
# the H743 has 128k sectors
|
# the H743 has 128k sectors
|
||||||
|
@ -180,9 +180,6 @@ define HAL_STORAGE_SIZE 16384
|
|||||||
# H743 has 16 pages of 128k each
|
# H743 has 16 pages of 128k each
|
||||||
STORAGE_FLASH_PAGE 14
|
STORAGE_FLASH_PAGE 14
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
|
||||||
FLASH_RESERVE_END_KB 256
|
|
||||||
|
|
||||||
# spi devices
|
# spi devices
|
||||||
SPIDEV mpu6000 SPI1 DEVID1 IMU1_CS MODE3 1*MHZ 4*MHZ
|
SPIDEV mpu6000 SPI1 DEVID1 IMU1_CS MODE3 1*MHZ 4*MHZ
|
||||||
SPIDEV icm20602 SPI4 DEVID1 IMU2_CS MODE3 1*MHZ 4*MHZ
|
SPIDEV icm20602 SPI4 DEVID1 IMU2_CS MODE3 1*MHZ 4*MHZ
|
||||||
|
@ -26,9 +26,9 @@ define CH_CFG_ST_FREQUENCY 1000
|
|||||||
|
|
||||||
FLASH_SIZE_KB 256
|
FLASH_SIZE_KB 256
|
||||||
|
|
||||||
# reserve space for params
|
# store parameters in last 2 pages
|
||||||
FLASH_RESERVE_END_KB 2
|
STORAGE_FLASH_PAGE 126
|
||||||
|
define HAL_STORAGE_SIZE 800
|
||||||
|
|
||||||
# USART3 for debug
|
# USART3 for debug
|
||||||
#STDOUT_SERIAL SD3
|
#STDOUT_SERIAL SD3
|
||||||
|
@ -16,9 +16,6 @@ FLASH_RESERVE_START_KB 34
|
|||||||
STORAGE_FLASH_PAGE 126
|
STORAGE_FLASH_PAGE 126
|
||||||
define HAL_STORAGE_SIZE 800
|
define HAL_STORAGE_SIZE 800
|
||||||
|
|
||||||
# reserve space for flash storage in last 2 sectors
|
|
||||||
FLASH_RESERVE_END_KB 2
|
|
||||||
|
|
||||||
# board ID for firmware load
|
# board ID for firmware load
|
||||||
APJ_BOARD_ID 1005
|
APJ_BOARD_ID 1005
|
||||||
|
|
||||||
@ -32,10 +29,6 @@ define CH_CFG_ST_FREQUENCY 1000
|
|||||||
|
|
||||||
FLASH_SIZE_KB 256
|
FLASH_SIZE_KB 256
|
||||||
|
|
||||||
|
|
||||||
# reserve space for params
|
|
||||||
FLASH_RESERVE_END_KB 2
|
|
||||||
|
|
||||||
# USART3 for debug
|
# USART3 for debug
|
||||||
STDOUT_SERIAL SD3
|
STDOUT_SERIAL SD3
|
||||||
STDOUT_BAUDRATE 115200
|
STDOUT_BAUDRATE 115200
|
||||||
|
@ -20,9 +20,6 @@ FLASH_SIZE_KB 2048
|
|||||||
# space to reserve for bootloader and storage at start of flash
|
# space to reserve for bootloader and storage at start of flash
|
||||||
FLASH_RESERVE_START_KB 16
|
FLASH_RESERVE_START_KB 16
|
||||||
|
|
||||||
# space to reserve for storage at end of flash
|
|
||||||
FLASH_RESERVE_END_KB 0
|
|
||||||
|
|
||||||
# serial port for stdout disabled, uses USB instead
|
# serial port for stdout disabled, uses USB instead
|
||||||
# STDOUT_SERIAL SD7
|
# STDOUT_SERIAL SD7
|
||||||
# STDOUT_BAUDRATE 57600
|
# STDOUT_BAUDRATE 57600
|
||||||
|
Loading…
Reference in New Issue
Block a user