Skip to main content
Hiroshi Sakurai
Associate II
June 28, 2016
Question

STM32CubeMX bug: data width is changed to Byte after you generate the code

  • June 28, 2016
  • 2 replies
  • 988 views
Posted on June 28, 2016 at 06:58

1. Open DAC Configuration and set Data Width to ''Half Width'' .

2. Generate code. Generated stm32f7xx_hal_msp.c has following lines despite the ''Half Width'' setting.

    hdma_dac1.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;

    hdma_dac1.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;

3. Open DAC Configuration. Data width seems to be ''Half Width'', but in DMA Configuration, it's changed to ''Byte''.
    This topic has been closed for replies.

    2 replies

    Nesrine M_O
    Associate
    June 28, 2016
    Posted on June 28, 2016 at 11:32

    Hi sakurai.hiroshi,

    I'll report this issue to our MX team for checking. Sorry for the inconvenience it may bring.

    -Syrine-

    stm32cube-t
    ST Employee
    July 4, 2016
    Posted on July 04, 2016 at 18:44

    Dear user,

    Please note this issue will be fixed with STM32CubeMX 4.16.

    Best regards