Commit Graph

967 Commits

Author SHA1 Message Date
Andrew Tridgell f0f36c6237 HAL_ChibiOS: fixed watchdog timeout setting 2019-04-22 16:53:35 +10:00
Andrew Tridgell 3b5463f061 HAL_ChibiOS: allow for delay in bootloader flash 2019-04-22 16:53:35 +10:00
Andrew Tridgell 2476927048 HAL_ChibiOS: don't call internalerror for iomcu 2019-04-22 16:53:35 +10:00
Andrew Tridgell 63d21d995a HAL_ChibiOS: setup watchdog_reset internal error 2019-04-22 16:53:35 +10:00
Andrew Tridgell 9ca67dc811 HAL_ChibiOS: implement was_watchdog_armed() 2019-04-22 16:53:35 +10:00
Andrew Tridgell 1acb7e977f HAL_ChibiOS: added ability to restore safety state on watchdog reset 2019-04-22 16:53:35 +10:00
Andrew Tridgell 54cbf8ea9e HAL_ChibiOS: change to 2s timeout on watchdog
a bit more of a safety net against false positives for stable release
2019-04-22 16:53:35 +10:00
Andrew Tridgell 58aca561fd HAL_ChibiOS: fixed watchdog on H7 2019-04-22 16:53:35 +10:00
Andrew Tridgell 19526b5826 HAL_ChibiOS: implement scheduler->expect_delay_ms() 2019-04-22 16:53:35 +10:00
Andrew Tridgell 8100c71a96 HAL_ChibiOS: added commented out test code for watchdog 2019-04-22 16:53:35 +10:00
Andrew Tridgell 03886f241e HAL_ChibiOS: implement was_watchdog_reset() 2019-04-22 16:53:35 +10:00
Andrew Tridgell a5309b3afa HAL_ChibiOS: record reason for reset
allows us to tell if reset was due to watchdog
2019-04-22 16:53:35 +10:00
Andrew Tridgell 272c277056 HAL_ChibiOS: use BRD_OPTIONS to enable watchdog 2019-04-22 16:53:35 +10:00
Andrew Tridgell c09df1ea7b HAL_ChibiOS: added IWDG watchdog support
this resets the MCU if the main loop stops for 1 second
2019-04-22 16:53:35 +10:00
Michael du Breuil b0f4611ddc AP_HAL_ChibiOS: Fix python3 with F7 builds 2019-04-20 12:33:44 +10:00
Randy Mackay 69882d9898 AP_HAL_ChibiOS: fix Pixhawk4 readme 2019-04-17 09:08:41 +09:00
Peter Barker 3c3b12ba77 AP_HAL_ChibiOS: Bitmask is now a template 2019-04-16 15:12:07 +10:00
Andrew Tridgell 967c6462cb HAL_ChibiOS: rename Pixhawk4Pro to Pixhawk6 2019-04-16 04:33:17 +10:00
Andrew Tridgell 32ebd2080f HAL_ChibiOS: mark SDIO and SDMMC IO as pullup
this is needed for boards such as PixhackV3 which don't have hardware
pullups. Thanks to Hongle for reporting this.
2019-04-12 19:44:00 +10:00
Andrew Tridgell 006583d812 HAL_ChibiOS: fixed iomcu build with flash driver 2019-04-11 13:22:53 +10:00
Andrew Tridgell 7c726b2f42 HAL_ChibiOS: use hal.flash API 2019-04-11 13:22:53 +10:00
Andrew Tridgell 36f7116054 HAL_ChibiOS: implement flash driver 2019-04-11 13:22:53 +10:00
Andrew Tridgell a767c15986 HAL_ChibiOS: change CUAVv5Nano default PWM count to 11 2019-04-08 08:21:39 -07:00
Andrew Tridgell c6637fbe38 HAL_ChibiOS: fixed CUAVv5Nano uarts 2019-04-08 08:21:39 -07:00
Andrew Tridgell ce4abf8dcb HAL_ChibiOS: support for CUAVv5Nano board
F765 with no IOMCU
2019-04-08 08:21:39 -07:00
Andrew Tridgell edd793c152 HAL_ChibiOS: fixed fallback to microSD for storage
this is used when FRAM fails on a board with microSD support. The
double init caused the validate() in the FATFS code to fail
2019-04-07 13:37:57 +10:00
Andrew Tridgell d59cf15594 HAL_ChibiOS: enable heater pin on Pixhawk4Pro 2019-04-06 10:08:39 +11:00
Siddharth Purohit 7b54103271 HAL_ChibiOS: set pwm select pins high for 3.3V PWMout on startup 2019-04-01 21:30:12 +11:00
Siddharth Purohit 051842ea34 HAL_ChibiOS: add support for PWM Voltage level selection on CubeYellow and CubeOrange 2019-04-01 21:30:12 +11:00
Tom Pittenger 91b0650765 AP_HAL_ChibiOS: rename dataflash to logger 2019-03-28 16:40:58 +11:00
Andrew Tridgell 591e2ebeea HAL_ChibiOS: remove unused config files
these do not build correctly
2019-03-15 20:08:26 +11:00
Andrew Tridgell d942b64584 HAL_ChibiOS: fixed NucleoH743 build 2019-03-15 20:08:26 +11:00
Andrew Tridgell bf0a4a23b2 HAL_ChibiOS: fixed build of crazyflie2 2019-03-15 20:08:26 +11:00
Andrew Tridgell b754d56ecb HAL_ChibiOS: fixed revo-mini build 2019-03-15 11:54:57 +11:00
Andrew Tridgell 69edd5a544 HAL_ChibiOS: fixed typos in hwdef.dat files 2019-03-15 11:54:57 +11:00
Andrew Tridgell cd27e3022f HAL_ChibiOS: check for prefix match on peripherals 2019-03-15 11:54:57 +11:00
Andrew Tridgell 3fd3e88d04 HAL_ChibiOS: fixed typo
thanks to Malcolm Churn for noticing
2019-03-15 08:51:52 +11:00
Andrew Tridgell b3f48a1477 HAL_ChibiOS: added CS line for Pixhawk4Pro temp sensor 2019-03-14 16:10:40 +11:00
Andrew Tridgell 2842063146 HAL_ChibiOS: optimize CubeYellow build
and fixed comment in CubeOrange
2019-03-11 12:40:21 +11:00
Andrew Tridgell 59652ad147 HAL_ChibiOS: added more IMU devices for Hex Cube boards 2019-03-11 12:40:21 +11:00
Andrew Tridgell 7577ebb33e HAL_ChibiOS: added bootloader hwdef for mindpx-v2 2019-03-11 09:58:12 +11:00
Andrew Tridgell f7b6f9d70b HAL_ChibiOS: added retries to flash based storage
this prevents a single flash write error from causing parameter reset
2019-03-11 09:52:19 +11:00
Andrew Tridgell 63895d8b0c HAL_ChibiOS: setup dummy pointers for H7 SPI 2019-03-10 21:53:06 +11:00
Andrew Tridgell 1414988870 HAL_ChibiOS: use spiSend/spiReceive
this fixes an issue with microSD on F405.
2019-03-10 21:53:06 +11:00
Andrew Tridgell 26d1371d25 HAL_ChibiOS: separate out DMA allocation for sdcard IO
this fixes an issue with DMA to SPI6 on STM32H7. On the H7 SRAM4 can
be used for DMA and BDMA to all devices except for SDMMC which uses
IDMA.

by separating out DMA of sdcard data from other data we can arrange
for DMA to all devices to work
2019-03-09 07:33:47 +11:00
Andrew Tridgell a7c91d1cb4 HAL_ChibiOS: show all SPI clocks 2019-03-09 07:33:47 +11:00
Siddharth Purohit fef81b6381 HAL_ChibiOS: add support for new main sensors 2019-03-06 20:47:10 +11:00
Andrew Tridgell 160de969a5 HAL_ChibiOS: simplify H7 clock tree setup
and push more peripherals to max of 100MHz
2019-03-04 21:42:07 +11:00
Andrew Tridgell 5bcfe41d1f HAL_ChibiOS: push H7 clock to 400MHz 2019-03-04 19:38:06 +11:00
Andrew Tridgell a59e1d0e0f HAL_ChibiOS: fixed H7 dma sharing between BDMA and DMA
the BDMA and DMA controllers have separate namespaces for streams, so
we can allocate a lot more streams than we were
2019-03-02 20:50:59 +11:00
Andrew Tridgell c7ca6d77c7 HAL_ChibiOS: H7 doesn't need a DMA mapping for SDMMC
it uses a dedicated internal DMA controller in the SDMMC peripheral
2019-03-02 20:50:59 +11:00
Andrew Tridgell 6f07d804b9 HAL_ChibiOS: adjust Pixhawk4Pro VBUS and DMA priority 2019-03-02 20:50:59 +11:00
Andrew Tridgell 603d9f6907 HAL_ChibiOS: fixed typo in ITCM base address 2019-03-02 09:01:20 +11:00
Andrew Tridgell 4c12ba4c2c HAL_ChibiOS: fixed SDMMC IRQ priority 2019-03-01 11:39:27 +11:00
Andrew Tridgell 7e1048c89b HAL_ChibiOS: enable UART inversion on H7 2019-03-01 11:39:27 +11:00
Andrew Tridgell 2f833c92d3 HAL_ChibiOS: enable SDMMC for CubeOrange 2019-03-01 11:39:12 +11:00
Andrew Tridgell 37010a568e HAL_ChibiOS: enable SDMMC on Pixhawk4Pro 2019-03-01 11:39:12 +11:00
Andrew Tridgell e192bc6c10 HAL_ChibiOS: adjust H7 clocks, and enabled SDMMC 2019-03-01 11:39:12 +11:00
Andrew Tridgell ff28337bfd HAL_ChibiOS: fixed typos 2019-03-01 07:27:47 +11:00
Andrew Tridgell 64681cb05c HAL_ChibiOS: allocate threads from any heap
this fixes a failure on MatekF405-Wing where it fails to allocate the
SPI thread for the IMU
2019-02-27 11:54:28 +11:00
Andrew Tridgell 3a2227c912 HAL_ChibiOS: updated IDs for CubeOrange 2019-02-26 18:21:13 +11:00
Andrew Tridgell ff4614b399 HAL_ChibiOS: rename CubeH7 to CubeOrange 2019-02-26 18:21:13 +11:00
Andrew Tridgell 94abc5a54d HAL_ChibiOS: fixed DShot on H7 2019-02-26 16:18:26 +11:00
Andrew Tridgell 26e76e51ed HAL_ChibiOS: fixed H7 build with older compilers 2019-02-26 16:18:26 +11:00
Andrew Tridgell 70930cca29 HAL_ChibiOS: fixed bootloader build with gcc 4.9 2019-02-26 16:18:26 +11:00
Andrew Tridgell 723e8a23fc HAL_ChibiOS: enable HSE_BYPASS for NucleoH743 2019-02-26 16:18:26 +11:00
Andrew Tridgell f8aeeb0333 HAL_ChibiOS: adjust clock tree to be more consistent
use 96MHz for all peripheral buses
2019-02-26 16:18:26 +11:00
Andrew Tridgell 5dd82f1d63 HAL_ChibiOS: adjust 16MHz HSE settings for H743 (CubeH7) 2019-02-26 16:18:26 +11:00
Andrew Tridgell b0f4494c4a HAL_ChibiOS: fixed DMA on SPI for Pixhawk4Pro 2019-02-26 16:18:26 +11:00
Andrew Tridgell 312597ac20 HAL_ChibiOS: fixed default batt2 pins for fmuv5 2019-02-26 16:18:26 +11:00
Andrew Tridgell 584e36e360 HAL_ChibiOS: switch Holybro to their own VID 2019-02-26 16:18:26 +11:00
Andrew Tridgell 9966fbea0f HAL_ChibiOS: fixed bootloader build error 2019-02-26 16:18:26 +11:00
Andrew Tridgell 8e745f74fb HAL_ChibiOS: support SPI6 on Pixhawk4Pro 2019-02-26 16:18:26 +11:00
Andrew Tridgell 75cd20aea4 HAL_ChibiOS: handle DMAMUX2 on H7
with BDMA
2019-02-26 16:18:26 +11:00
Andrew Tridgell e43ad56920 HAL_ChibiOS: fixed Pixhawk4Pro battery defaults 2019-02-26 16:18:26 +11:00
Andrew Tridgell 87e7ea368f HAL_ChibiOS: fixed battery monitoring and buzzer for Pixhawk4Pro 2019-02-26 16:18:26 +11:00
Andrew Tridgell 542372014e HAL_ChibiOS: enable SPI5 on Pixhawk4Pro 2019-02-26 16:18:26 +11:00
Andrew Tridgell 778d892fc2 HAL_ChibiOS: fixed dma resolved for H7 2019-02-26 16:18:26 +11:00
Andrew Tridgell bf783e73ab HAL_ChibiOS: use polled SPI for Pixhawk4Pro for now
and disable sensors rail till later in startup
2019-02-26 16:18:26 +11:00
Andrew Tridgell 807d9e4b92 HAL_ChibiOS: added optional polled SPI mode 2019-02-26 16:18:26 +11:00
Andrew Tridgell bd47aba5ca HAL_ChibiOS: reduced delay time in main loop to 50us
this allows for faster loop rates, and seems to be enough in testing
2019-02-26 16:18:26 +11:00
Andrew Tridgell e92c66418d HAL_ChibiOS: fixed bouncebuffer code on STM32F7 2019-02-26 16:18:26 +11:00
Andrew Tridgell a3e69e715d HAL_ChibiOS: avoid doing one-way SPI transfers
these transfers use dummy bytes in the hal driver, which may not be in
DMA safe memory, so best to avoid them
2019-02-26 16:18:26 +11:00
Andrew Tridgell dad1774330 HAL_ChibiOS: fixed channel selection for F4/F7 uart driver 2019-02-26 16:18:26 +11:00
Andrew Tridgell cda1959629 HAL_ChibiOS: added support for more flexible memory regions
this allows for an arbitrary number of memory regions, with each one
flagged as DMA safe, fast or normal
2019-02-26 16:18:26 +11:00
Andrew Tridgell 5f88340919 HAL_ChibiOS: fixed flash build warning 2019-02-26 16:18:26 +11:00
Andrew Tridgell 8a40ee8132 HAL_ChibiOS: fixed idle wait on H7 flash program 2019-02-26 16:18:26 +11:00
Andrew Tridgell 1d6c877c3c HAL_ChibiOS: set board type on PH4Pro 2019-02-26 16:18:26 +11:00
Andrew Tridgell 6177129e41 HAL_ChibiOS: fixed typo in dma_resolver.py 2019-02-26 16:18:26 +11:00
Andrew Tridgell 4e067ee3cd HAL_ChibiOS: fixed DMA on TIM12 for Pixhawk4Pro 2019-02-26 16:18:26 +11:00
Andrew Tridgell dd835f5fce HAL_ChibiOS: optimize for speed on more boards 2019-02-26 16:18:26 +11:00
Andrew Tridgell 34a7812416 HAL_ChibiOS: use -O3 on boards with 2M flash 2019-02-26 16:18:26 +11:00
Andrew Tridgell b07ba37359 HAL_ChibiOS: pass optimization to ChibiOS build 2019-02-26 16:18:26 +11:00
Andrew Tridgell 77d4e1f796 HAL_ChibiOS: removed ID_ANY streams for H7
use generated map instead
2019-02-26 16:18:26 +11:00
Andrew Tridgell ee1d2e8edb HAL_ChibiOS: adjust H743 DMA settings 2019-02-26 16:18:26 +11:00
Andrew Tridgell cb77b06460 HAL_ChibiOS: generate a dma map for H7
this allows for DMA sharing, allowing for more peripherals with DMA
2019-02-26 16:18:26 +11:00
Andrew Tridgell 423ad60c47 HAL_ChibiOS: enable all DMAs on Pixhawk4Pro 2019-02-26 16:18:26 +11:00
Andrew Tridgell 718cf4377d HAL_ChibiOS: reduce DMA count until we can share 2019-02-26 16:18:26 +11:00
Andrew Tridgell 0c01375799 HAL_ChibiOS: enable IOMCU for CubeH7 2019-02-26 16:18:26 +11:00
Andrew Tridgell 9647a68c9e HAL_ChibiOS: fixed UART RX DMA for H7 2019-02-26 16:18:26 +11:00