cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hiroshi Sakurai
Associate II
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''.
2 REPLIES 2
Nesrine M_O
Lead II
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
Senior III
Posted on July 04, 2016 at 18:44

Dear user,

Please note this issue will be fixed with STM32CubeMX 4.16.

Best regards