ChibiOS upgrade to version 21.11.5#30605
Conversation
|
Does this require updates to the OpenOCD and Segger thread debugging? |
ea523cb to
0d672b1
Compare
Don't know as yet. |
|
I'm all in favor of updating ChibiOS, and I see you've updated the submodule.. but shouldn't there be a pull-request in ardupilot/ChibiOS for this too? Where's the changelog for v8? |
There's a branch, no PR as yet but I can put it up. |
0d672b1 to
109132a
Compare
|
@andyp1per what branch is this based on? is it a rebase? |
|
@andyp1per it seems to be missing these recent changes? |
|
@andyp1per Peter and I tested on a KakuteF7 quad and it seems that ESC telemetry messages come through less frequently on mavlink with this PR. They are not as frequent as I would normally expect (expect 4Hz) on master too, but with this PR I was seeing an update every 10s or so, so seems to have gotten worse. |
|
Peter and I tested on mini-pix on a plane, no issues |
|
Definitely want to hold this til 4.8, and debugging needs testing and possible fixing. |
109132a to
43bc5ec
Compare
43bc5ec to
c4b7b66
Compare
No changes required, the two versions are binary compatible |
68582c4 to
da43bf9
Compare
The ChibiOS I2Cv4 LLD (used on STM32G0/G4/C0/U0/U3/H5/L4+) uses a single DMA channel per I2C peripheral, shared between TX and RX, configured via STM32_I2C_I2Cx_DMA_CHANNEL. The previous code emitted the separate STM32_I2C_I2Cx_RX/TX_DMA_STREAM defines used by I2Cv2/I2Cv3, which no longer satisfy the I2Cv4 driver. Detect I2Cv4 MCUs from CHIBIOS_PLATFORM_MK, allocate a single DMA channel per I2C peripheral in dma_resolver.py (no _RX/_TX split), and generate HAL_I2Cn_CONFIG entries that feed the single channel into the shared DMA slot with SHARED_DMA_NONE as the partner. Also replace the unconditional STM32_I2C_USE_I2Cn TRUE lines in stm32g4_mcuconf.h with #ifndef-guarded defaults to FALSE, so boards only enable the I2C peripherals their hwdef actually uses. Without this, the I2Cv4 driver demanded DMA channels for every I2C peripheral on every G4 board regardless of pin usage.
Rename STM32_I2C_I2Cn_IRQ_PRIORITY to STM32_IRQ_I2Cn_PRIORITY to match the naming used by the kernel v9 I2Cv4 driver, mirroring the same rename already applied to stm32g4_mcuconf.h.
049f51e to
dabfcfe
Compare
|
ok this is a rebase of all our changes on top of the ChibiOS stable 21.11.5 branch. Should all be in there now. I think we will probably have to branch the current ChibiOS repo as 21.11.3 and then force push this to master |
Upgrade ChibiOS to the latest stable version with support for hal v9.1 and H5
Currently boots on a Pixhawk6X and TBS Lucid H7