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:
parent
1c33cfca5d
commit
a0b662f161
@ -110,6 +110,9 @@ define HAL_STORAGE_SIZE 16384
|
|||||||
# H743 has 16 pages of 128k each
|
# H743 has 16 pages of 128k each
|
||||||
define STORAGE_FLASH_PAGE 14
|
define 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
|
define HAL_LOGGING_DATAFLASH
|
||||||
|
|
||||||
|
@ -24,6 +24,9 @@ FLASH_RESERVE_START_KB 128
|
|||||||
define STORAGE_FLASH_PAGE 14
|
define 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
|
||||||
|
|
||||||
|
@ -180,6 +180,9 @@ define HAL_STORAGE_SIZE 16384
|
|||||||
# H743 has 16 pages of 128k each
|
# H743 has 16 pages of 128k each
|
||||||
define STORAGE_FLASH_PAGE 14
|
define 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
|
||||||
|
@ -12,11 +12,13 @@ define CAN_APP_NODE_NAME "org.ardupilot.ap_periph_ZubaxGNSS"
|
|||||||
# bootloader starts firmware at 34k
|
# bootloader starts firmware at 34k
|
||||||
FLASH_RESERVE_START_KB 34
|
FLASH_RESERVE_START_KB 34
|
||||||
|
|
||||||
|
|
||||||
# store parameters in last 2 pages
|
# store parameters in last 2 pages
|
||||||
define STORAGE_FLASH_PAGE 126
|
define 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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user