ardupilot/libraries/AP_HAL_ChibiOS/hwdef
Andrew Tridgell a0c867bce7 HAL_ChibiOS: disable interrupts during flash operations
we have now shown that interrupts being enabled during flash
operations can cause the infamous "68ms" bug, or watchdog when using a
32 bit timer on boards using flash for storage

The issue is quite repeatable with a load of a very large waypoint
file (over 500 waypoints) using "wp ftpload" in MAVProxy. This puts a
huge load on flash storage.

Our current working theory is that while doing flash writes for
storage on dual-bank we block access to only one bank, so if another
thread uses a timeout function with a short timeout while the flash
write is happening and chVTDoTickI calls code which crosses the flash
bank boundary then it can cause chVTDoTickI to violate the assumption
that no more than CH_CFG_ST_DELTA ticks pass while it is calculating
the value to set in the system timer. In that case we get a delay of a
full timer wrap, which is 68ms on boards with 16 bit timer and 70
minutes on boards with 32 bit timer
2022-04-05 17:46:52 +10:00
..
airbotf4 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
AIRLink hwdef: fixed VCC monitoring on AIRLink 2022-01-29 15:09:46 +11:00
ARK_GPS hwdef: add ARK_GPS 2022-02-03 18:36:02 +11:00
BeastF7 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
BeastF7v2 AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
BeastH7 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
BeastH7v2 AP_HAL_ChibiOS: normalize BeastH7v2 in line with BeastF7v2 definition 2022-03-02 15:46:17 +11:00
BirdCANdy hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
CarbonixL496 AP_Periph: Hwdef CarbonixL496 update 2022-04-05 09:57:02 +10:00
common HAL_ChibiOS: disable interrupts during flash operations 2022-04-05 17:46:52 +10:00
crazyflie2 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
CUAV_GPS hwdef: fixed buzzer on CUAV_GPS peripheral 2022-03-03 16:26:27 +11:00
CUAV-Nora hwdef: CUAV-Nora: Add servo voltage detection pin 2022-01-06 12:39:45 +11:00
CUAV-X7 CUAV-X7: Add servo voltage detection pin 2021-11-22 16:39:15 +11:00
CUAV-X7-bdshot AP_HAL_ChibiOS: update for renamed BRD_HEAT_ parameters 2021-11-09 08:02:57 +09:00
CUAVv5 AP_HAL_ChibiOS: CUAVv5: use icm42688p instead of icm20602 2022-03-15 05:59:14 +11:00
CUAVv5-bdshot AP_HAL_ChibiOS: bdshot version of CUAVv5 2021-09-08 17:09:49 +10:00
CUAVv5Nano HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
CUAVv5Nano-bdshot AP_HAL_ChibiOS: bdshot version of CUAVv5Nano 2021-09-08 17:09:49 +10:00
CubeBlack AP_HAL_ChibiOS: update CubeBlack-pinout image 2021-12-03 13:49:20 +09:00
CubeBlack-periph hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
CubeBlack+ HAL_ChibiOS: removed unnecessary USB product IDs from boards 2021-05-27 09:30:30 +09:00
CubeGreen-solo AP_HAL_ChibiOS: enable Solo Gimbal only on CubeGreen 2022-03-29 08:24:59 +09:00
CubeOrange hwdef: enable both OreoLED and Solo gimbal on CubeOrange 2022-03-29 08:24:59 +09:00
CubeOrange-bdshot AP_HAL_ChibiOS: ensure GPIO pins get undef'ed properly 2021-02-03 18:49:06 +11:00
CubeOrange-joey AP_HAL_ChibiOS: rename AP_AHRS::get_position to get_location 2022-01-25 10:47:22 +11:00
CubeOrange-periph AP_HAL_ChibiOS: remove stray define HAL_PERIPH_ENABLE_BATTERY_MPPT_PACKETDIGITAL 2021-12-17 20:24:25 +09:00
CubeOrange-periph-heavy AP_HAL_ChibiOS: remove stray define HAL_PERIPH_ENABLE_BATTERY_MPPT_PACKETDIGITAL 2021-12-17 20:24:25 +09:00
CubeOrangePlus AP_HAL_ChibiOS: add CubeOrangePlus 2022-03-20 07:23:10 -07:00
CubePurple CubePurple: define HAL_CHIBIOS_ARCH_CUBE 2021-11-30 10:20:54 +11:00
CubeSolo AP_HAL_ChibiOS: enable Solo Gimbal only on CubeGreen 2022-03-29 08:24:59 +09:00
CubeYellow CubeYellow: define HAL_CHIBIOS_ARCH_CUBE 2021-11-30 10:20:54 +11:00
CubeYellow-bdshot AP_HAL_ChibiOS: bdshot configs for CubeYellow and mRoControlZeroH7 2021-03-03 18:02:26 +11:00
DevEBoxH7v2 AP_HAL_ChibiOS: hwdef for SPRacingH7 2022-02-09 12:47:55 +00:00
DrotekP3Pro HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
Durandal AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
Durandal-bdshot AP_HAL_ChibiOS: ensure GPIO pins get undef'ed properly 2021-02-03 18:49:06 +11:00
f103-ADSB HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f103-Airspeed HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f103-GPS HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f103-HWESC HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f103-periph hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
f103-QiotekPeriph HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f103-RangeFinder hwdef: f103-RangeFinder, use AP_PERIPH_RANGEFINDER_PORT_DEFAULT 2022-02-02 18:45:59 +11:00
f103-Trigger HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f303-GPS hwdef: enable GPS_MOVING_BASELINE on FreeflyRTK and f303-GPS 2022-03-09 07:52:42 +11:00
f303-HWESC HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f303-M10025 HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f303-M10070 HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f303-MatekGPS hwdef: fixed debug pins on two boards bootloaders 2021-12-28 10:31:25 +11:00
f303-periph hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
f303-PWM HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
f303-Universal hwdef: enable GPS_MOVING_BASELINE on FreeflyRTK and f303-GPS 2022-03-09 07:52:42 +11:00
f405-MatekAirspeed hwdef: Add f405-MatekAirspeed 2022-02-08 10:41:02 +11:00
f405-MatekGPS hwdef: f405-MatekGPS add debug pin info, set default arspd, batt 0 2022-02-08 10:41:02 +11:00
F4BY HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
F35Lightning HAL_ChibiOS: move to using parameter STORAGE_FLASH_PAGE instead of define 2021-10-30 19:24:57 +11:00
FlywooF745 AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
FlywooF745Nano AP_HAL_ChibiOS: add FlywooF745Nano board definition 2021-08-18 17:06:09 +10:00
fmuv2 HAL_ChibiOS: removed EKF2 define, not needed any more 2020-05-10 15:09:54 +10:00
fmuv3 hwdef: enable both OreoLED and Solo gimbal on fmuv3 2022-03-29 08:24:59 +09:00
fmuv3-bdshot AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT 2021-08-20 10:51:19 +10:00
fmuv5 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
FreeflyRTK hwdef: enable GPS_MOVING_BASELINE on FreeflyRTK and f303-GPS 2022-03-09 07:52:42 +11:00
G4-ESC hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
H757I_EVAL AP_HAL_ChibiOS: hwdef for SPRacingH7 2022-02-09 12:47:55 +00:00
H757I_EVAL_intf AP_HAL_ChibiOS: hwdef for SPRacingH7 2022-02-09 12:47:55 +00:00
HereCommon HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
HereID AP_HAL_ChibiOS: add HereID board 2021-08-25 10:09:23 +10:00
HerePro HAL_ChibiOS: simplify AP_Periph hwdef.dat 2021-10-26 15:56:53 +11:00
Hitec-Airspeed AP_HAL_ChibiOS: add support for CAN/I2C switch 2022-02-16 13:25:58 +11:00
HitecMosaic hwdef: fixed debug pins on two boards bootloaders 2021-12-28 10:31:25 +11:00
HolybroG4_GPS hwdef: added HolybroG4_GPS 2022-03-09 07:51:35 +11:00
HolybroGPS hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
iomcu AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
iomcu_f103_8MHz AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
JHEMCU-GSF405A hwdef: Set the maximum number of barometric pressure sensors to 1 2022-03-08 14:21:31 -08:00
JHEMCU-GSF405A-RX2 Tools: add JHEMCU GSF405A bootloader and ID 2022-01-19 18:31:05 +11:00
KakuteF4 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
KakuteF4Mini AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
KakuteF7 AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
KakuteF7-bdshot AP_HAL_ChibiOS: KakuteF7 bdshot configuration, tested by yaapu 2021-04-06 11:33:53 +10:00
KakuteF7Mini AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
KakuteH7 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
KakuteH7-bdshot AP_HAL_ChibiOS: add KakuteH7-bdshot target 2022-03-15 10:18:58 +11:00
KakuteH7Mini AP_HAL_ChibiOS: add support for alternate alarm PWM group 2022-02-23 18:35:43 +11:00
luminousbee4 HAL_ChibiOS: convert some hwdef.dat to unix line endings 2021-10-26 15:56:53 +11:00
luminousbee5 HAL_ChibiOS: move to using parameter STORAGE_FLASH_PAGE instead of define 2021-10-30 19:24:57 +11:00
MambaF405US-I2C AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
MambaF405v2 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
MatekF405 AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
MatekF405-bdshot AP_HAL_ChibiOS: re-enable LEDs on MatekF405-bdshot 2021-07-06 10:10:04 +10:00
MatekF405-CAN hwdef: MatekF045-CAN remove unused define, set BATT_Default 0 2022-02-08 10:41:02 +11:00
MatekF405-STD HAL_ChibiOS: add MatekF405-STD S7 PWM output 2022-03-13 14:00:26 +11:00
MatekF405-TE AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
MatekF405-Wing AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
MatekF765-SE hwdef: added OTG2 for MatekF765-SE 2021-11-22 22:48:59 +11:00
MatekF765-Wing AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
MatekH743 Revert "hwdef: changed MatekH743 to a 32 bit timer" 2022-04-05 17:46:52 +10:00
MatekH743-bdshot Revert "hwdef: changed MatekH743 to a 32 bit timer" 2022-04-05 17:46:52 +10:00
MatekH743-periph hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
MatekL431 hwdef: leave MatekL431 ROMFS uncompressed 2022-03-19 12:06:04 +11:00
MatekL431-Airspeed AP_HAL_ChibiOS: add MatekL431 AP_Periph hwdef 2022-03-19 12:06:04 +11:00
MatekL431-Periph AP_HAL_ChibiOS: add MatekL431 AP_Periph hwdef 2022-03-19 12:06:04 +11:00
MazzyStarDrone AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
mindpx-v2 hwdef: fixed flash double reserve 2022-01-13 06:44:46 +11:00
mini-pix HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
modalai_fc-v1 hwdef: modalai_fc_v1 update documentation 2022-02-01 11:02:23 +11:00
mRo-M10095 hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
mRoControlZeroClassic HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
mRoControlZeroF7 HAL_ChibiOS: move to using parameter STORAGE_FLASH_PAGE instead of define 2021-10-30 19:24:57 +11:00
mRoControlZeroH7 HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
mRoControlZeroH7-bdshot AP_HAL_ChibiOS: bdshot configs for CubeYellow and mRoControlZeroH7 2021-03-03 18:02:26 +11:00
mRoControlZeroOEMH7 HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
mRoNexus HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
mRoPixracerPro AP_HAL_ChibiOS: add MANUFACTURER and BRAND_NAME to PixRacer Pro 2022-01-07 22:46:52 +11:00
mRoPixracerPro-bdshot AP_HAL_ChibiOS: ensure GPIO pins get undef'ed properly 2021-02-03 18:49:06 +11:00
mRoX21 HAL_ChibiOS: changed optimisation of higher end boards to -O2 2019-09-28 08:57:26 +10:00
mRoX21-777 HAL_ChibiOS: move to using parameter STORAGE_FLASH_PAGE instead of define 2021-10-30 19:24:57 +11:00
Nucleo-G491 hwdef: remove unused define NO_DATAFLASH 2021-11-24 18:18:06 +11:00
Nucleo-L476 hwdef: remove unused HAL_NO_GCS defines 2021-11-26 12:25:40 +11:00
Nucleo-L496 hwdef: remove unused HAL_NO_GCS defines 2021-11-26 12:25:40 +11:00
NucleoH743 AP_HAL_ChibiOS: fix ms5611 probe for NucleoH743 2022-03-31 16:31:13 +11:00
omnibusf4 AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT 2021-08-20 10:51:19 +10:00
omnibusf4pro AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
omnibusf4pro-bdshot AP_HAL_ChibiOS: fix bi-directional dshot on omnibusf4pro 2022-02-08 12:12:28 +11:00
omnibusf4pro-one AP_HAL_ChibiOS: add omnibusf4pro config with one compass and gps 2021-05-19 18:04:20 +10:00
omnibusf4v6 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
OMNIBUSF7V2 AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
OMNIBUSF7V2-bdshot AP_HAL_ChibiOS: update option names in BATTMonitor in prep for expansion 2022-02-01 12:35:03 +11:00
OmnibusNanoV6 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
OmnibusNanoV6-bdshot AP_HAL_ChibiOS: ensure GPIO pins get undef'ed properly 2021-02-03 18:49:06 +11:00
PH4-mini hwdef: Redefine DMA priority PH4-mini 2021-12-27 11:25:51 +11:00
Pix32v5 hwdef: enable telem3 (SERIAL5) TX on Pix32v5 2021-12-28 10:13:58 +11:00
PixC4-Jetson AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
Pixhawk1 HAL_ChibiOS: fixed Pixhawk1 gyro orientation 2019-08-27 19:29:37 +10:00
Pixhawk1-1M AP_HAL_ChibiOS: avoid referencing flash sector/page 22 on 1MB boards 2020-03-03 10:13:53 +11:00
Pixhawk1-1M-bdshot AP_HAL_ChibiOS: add support for bidir DShot support in RCOutput 2020-12-30 19:14:16 +11:00
Pixhawk4 AP_HAL_ChibiOS: swap Pixhawk4 blue and red LEDs 2021-08-17 10:13:39 +10:00
Pixhawk4-bdshot AP_HAL_ChibiOS: correct and compact Pixhawk4-bdshot build 2021-09-08 17:09:49 +10:00
Pixhawk5X hwdef: correct Pixhawk5 3.3V analog in scale factor 2022-01-25 09:37:34 +11:00
Pixracer HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
Pixracer-bdshot AP_HAL_ChibiOS: ensure GPIO pins get undef'ed properly 2021-02-03 18:49:06 +11:00
Pixracer-periph hwdef: Pixracer-periph, use AP_PERIPH_RANGEFINDER_PORT_DEFAULT 2022-02-02 18:45:59 +11:00
QioTekZealotF427 HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
QioTekZealotH743 HWDEF: add SLCAN OTG port, correct defaults.param errors 2022-03-29 10:43:51 +11:00
R9Pilot AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
revo-mini AP_HAL_ChibiOS: eliminate HAL_LOGGING_DATAFLASH 2021-11-23 11:24:46 +11:00
revo-mini-bdshot AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT 2021-08-20 10:51:19 +10:00
revo-mini-i2c AP_HAL_ChibiOS: revo-mini-i2c probe for external compasses 2022-02-01 17:36:14 +11:00
revo-mini-i2c-bdshot AP_HAL_ChibiOS: remove definitions of BOARD_PWM_COUNT_DEFAULT 2021-08-20 10:51:19 +10:00
scripts AP_HAL_ChibiOS: ensure that common ram is selected for bootloader/app comms in STM32H7 2022-03-23 19:09:21 +11:00
Sierra-F9P AP_HAL_ChibiOS: Add Sierra-F9P support 2022-03-10 08:29:51 +11:00
Sierra-F405 hwdef: RM3100 reversal mask 2022-03-24 07:47:11 +11:00
Sierra-F412 hwdef: RM3100 reversal mask 2022-03-24 07:47:11 +11:00
Sierra-L431 hwdef: RM3100 no false rotation 2022-03-24 07:47:11 +11:00
skyviper-f412-rev1 hwdef: removed unnecessary PLL overrides 2022-01-29 18:57:33 +11:00
skyviper-journey AP_HAL_ChibiOS: allow specification of AUTOBUILD_TARGETS in hwdef files 2022-03-03 09:03:17 +11:00
skyviper-v2450 AP_HAL_ChibiOS: allow specification of AUTOBUILD_TARGETS in hwdef files 2022-03-03 09:03:17 +11:00
sparky2 AP_HAL_ChibiOS: eliminate HAL_LOGGING_DATAFLASH 2021-11-23 11:24:46 +11:00
speedybeef4 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
SPRacingH7 AP_HAL_ChibiOS: spro H7 extreme updates. 2022-03-29 10:39:35 +11:00
STM32CubeConf AP_HAL_ChibiOS: update clock tree to have FDCAN Base clock at 80MHz 2022-03-11 18:13:54 +11:00
SuccexF4 AP_HAL_ChibiOS: remove HAL_COMPASS_DEFAULT define 2022-02-01 12:10:38 +11:00
Swan-K1 AP_HAL_ChibiOS: allow specification of AUTOBUILD_TARGETS in hwdef files 2022-03-03 09:03:17 +11:00
TBS-Colibri-F7 HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
VRBrain-v51 hwdef: remove OpticalFlow from builds in several low-flash boards 2022-01-06 13:35:51 +11:00
VRBrain-v52 HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
VRBrain-v54 HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
VRCore-v10 HAL_ChibiOS: removed boilerplate lines from bootloaders 2021-10-26 15:56:53 +11:00
VRUBrain-v51 hwdef: remove OpticalFlow from builds in several low-flash boards 2022-01-06 13:35:51 +11:00
ZubaxGNSS hwdef: fixed flash double reserve 2022-01-13 06:44:46 +11:00