STM32H7A3 DCMI, CubeIDE generates faulty DCMI.c with wrong DMA initialization
I use CubeIDE 1.9.0
MCU packate STM32H7 V1.10.0
My project generates separate files for each hardware. In this case "dcmi.c" and "dcmi.h"
DCMI is set to Slave 10 bits External Synchro
I use DCMI_PSSI DMA1 Stream 2 Perpheral to Memory
CubeIDE generates following lines in HAL_DCMI_MspInit
__HAL_LINKDMA(dcmiHandle,hdmarx,hdma_dcmi_pssi);
__HAL_LINKDMA(dcmiHandle,hdmatx,hdma_dcmi_pssi);
Both of these lines fail with
../Core/Src/dcmi.c:161:5: note: in expansion of macro '__HAL_LINKDMA'
161 | __HAL_LINKDMA(dcmiHandle,hdmarx,hdma_dcmi_pssi);
| ^~~~~~~~~~~~~
../Drivers/STM32H7xx_HAL_Driver/Inc/stm32h7xx_hal_def.h:65:43: error: 'DCMI_HandleTypeDef' {aka 'struct __DCMI_HandleTypeDef'} has no member named 'hdmatx'
65 | (__HANDLE__)->__PPP_DMA_FIELD__ = &(__DMA_HANDLE__); \What is the correct way of handling this?
For now, I just comment these lines out. DMA seems to work...
dcmi.c
/* Several peripheral DMA handle pointers point to the same DMA handle.
Be aware that there is only one channel to perform all the requested DMAs. */
__HAL_LINKDMA(dcmiHandle,DMA_Handle,hdma_dcmi_pssi);
//__HAL_LINKDMA(dcmiHandle,hdmarx,hdma_dcmi_pssi);
//__HAL_LINKDMA(dcmiHandle,hdmatx,hdma_dcmi_pssi);Is this a bug in FW-Package?
Is "commenting out" the correct workaround?
Thanks for your help
Johannes
