Question
Fail to build project under CubeIDE with DMA2D after generating with Cube
Hi,
I tried to add DMA2D to a successful generated and built L496 based CubeIDE\TouchGFX project .
I get compilation error regarding two elements in the DMA2D initialization function as below:
../Core/Src/main.c: In function 'MX_DMA2D_Init':
../Core/Src/main.c:286:14: error: 'DMA2D_InitTypeDef {aka struct <anonymous>}' has no member named 'BytesSwap'
hdma2d.Init.BytesSwap = DMA2D_BYTES_REGULAR;
^
../Core/Src/main.c:286:27: error: 'DMA2D_BYTES_REGULAR' undeclared (first use in this function); did you mean 'DMA2D_RB_REGULAR'?
hdma2d.Init.BytesSwap = DMA2D_BYTES_REGULAR;
^~~~~~~~~~~~~~~~~~~
DMA2D_RB_REGULAR
../Core/Src/main.c:286:27: note: each undeclared identifier is reported only once for each function it appears in
../Core/Src/main.c:287:14: error: 'DMA2D_InitTypeDef {aka struct <anonymous>}' has no member named 'LineOffsetMode'
hdma2d.Init.LineOffsetMode = DMA2D_LOM_PIXELS;
^
../Core/Src/main.c:287:32: error: 'DMA2D_LOM_PIXELS' undeclared (first use in this function); did you mean 'DMA2D_PIXEL'?
hdma2d.Init.LineOffsetMode = DMA2D_LOM_PIXELS;
^~~~~~~~~~~~~~~~
DMA2D_PIXELI see that if I take a a project that was created from a V3 AT those initialization are not there and also do not generated by CubeMX if I try to regenerate the code.
Note that my DMA2D bytes swap and line offset mode is the same as in the AT:

Any idea how to handle this?
