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''.