hwdef: added warning messages about flash size
This commit is contained in:
parent
5d2f3cd009
commit
a258a40681
@ -10,3 +10,6 @@ include ../include/minimal_GPS.inc
|
|||||||
FLASH_SIZE_KB 1024
|
FLASH_SIZE_KB 1024
|
||||||
define HAL_MINIMIZE_FEATURES 1
|
define HAL_MINIMIZE_FEATURES 1
|
||||||
undef STORAGE_FLASH_PAGE
|
undef STORAGE_FLASH_PAGE
|
||||||
|
|
||||||
|
# produce this error if we are on a 2M board and using 1M firmware
|
||||||
|
define BOARD_CHECK_F427_USE_2M "2M flash - use Pixhawk1 firmware"
|
||||||
|
@ -33,3 +33,7 @@ COMPASS LSM303D SPI:lsm9ds0_am ROTATION_NONE
|
|||||||
|
|
||||||
# also probe for external compasses
|
# also probe for external compasses
|
||||||
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
define HAL_PROBE_EXTERNAL_I2C_COMPASSES
|
||||||
|
|
||||||
|
# produce this error if we are on a 1M board
|
||||||
|
undef BOARD_CHECK_F427_USE_1M
|
||||||
|
define BOARD_CHECK_F427_USE_1M "ERROR: 1M flash use Pixhawk1-1M"
|
||||||
|
@ -16,3 +16,6 @@ undef STORAGE_FLASH_PAGE
|
|||||||
|
|
||||||
# minimal drivers to reduce flash usage
|
# minimal drivers to reduce flash usage
|
||||||
include ../include/minimal.inc
|
include ../include/minimal.inc
|
||||||
|
|
||||||
|
# produce this error if we are on a 2M board and using 1M firmware
|
||||||
|
define BOARD_CHECK_F427_USE_2M "2M flash - use fmuv3 firmware"
|
||||||
|
@ -472,3 +472,6 @@ ROMFS io_firmware.bin Tools/IO_Firmware/iofirmware_lowpolh.bin
|
|||||||
# for users running fmuv3 on their Solo:
|
# for users running fmuv3 on their Solo:
|
||||||
define HAL_OREO_LED_ENABLED (BOARD_FLASH_SIZE > 1024)
|
define HAL_OREO_LED_ENABLED (BOARD_FLASH_SIZE > 1024)
|
||||||
define HAL_SOLO_GIMBAL_ENABLED (HAL_MOUNT_ENABLED && BOARD_FLASH_SIZE > 1024)
|
define HAL_SOLO_GIMBAL_ENABLED (HAL_MOUNT_ENABLED && BOARD_FLASH_SIZE > 1024)
|
||||||
|
|
||||||
|
# produce this error if we are on a 1M board
|
||||||
|
define BOARD_CHECK_F427_USE_1M "ERROR: 1M flash use fmuv2"
|
||||||
|
Loading…
Reference in New Issue
Block a user