hwdef: fixed reported flash on boards with storage at end of flash

this was in hwdef-bl.dat but had been left out of hwdef.dat which led
to flash_free being wrong in apj file
This commit is contained in:
Andrew Tridgell 2021-10-28 21:03:56 +11:00
parent 1c33cfca5d
commit a0b662f161
4 changed files with 12 additions and 1 deletions

View File

@ -110,6 +110,9 @@ define HAL_STORAGE_SIZE 16384
# H743 has 16 pages of 128k each
define STORAGE_FLASH_PAGE 14
# reserve space for flash storage in last 2 sectors
FLASH_RESERVE_END_KB 256
# enable logging to dataflash
define HAL_LOGGING_DATAFLASH

View File

@ -24,6 +24,9 @@ FLASH_RESERVE_START_KB 128
define STORAGE_FLASH_PAGE 14
define HAL_STORAGE_SIZE 32768
# reserve space for flash storage in last 2 sectors
FLASH_RESERVE_END_KB 256
# one I2C bus
I2C_ORDER I2C1

View File

@ -180,6 +180,9 @@ define HAL_STORAGE_SIZE 16384
# H743 has 16 pages of 128k each
define STORAGE_FLASH_PAGE 14
# reserve space for flash storage in last 2 sectors
FLASH_RESERVE_END_KB 256
# spi devices
SPIDEV mpu6000 SPI1 DEVID1 IMU1_CS MODE3 1*MHZ 4*MHZ
SPIDEV icm20602 SPI4 DEVID1 IMU2_CS MODE3 1*MHZ 4*MHZ

View File

@ -12,11 +12,13 @@ define CAN_APP_NODE_NAME "org.ardupilot.ap_periph_ZubaxGNSS"
# bootloader starts firmware at 34k
FLASH_RESERVE_START_KB 34
# store parameters in last 2 pages
define STORAGE_FLASH_PAGE 126
define HAL_STORAGE_SIZE 800
# reserve space for flash storage in last 2 sectors
FLASH_RESERVE_END_KB 2
# board ID for firmware load
APJ_BOARD_ID 1005