AnsweredAssumed Answered

STM32F4xx Example code bug?

Question asked by anderson.steven on Oct 13, 2015
Latest reply on Oct 13, 2015 by Clive One
In file: 
...\STM32F4xx_DSP_StdPeriph_Lib_V1.6.0\Project\STM32F4xx_StdPeriph_Examples\ADC\ADC_TripleModeInterleaved\main.c


Is DMA_Memory0BaseAddr really intended to be a pointer to a pointer?
The variable aADCTripleConvertedValue is an array of 3 uint32_t's, so should (uint32_t)&aADCTripleConvertedValue below need a "[0]" appended?


From the file:
Declaration:
/* Private variables ---------------------------------------------------------*/
__IO uint32_t aADCTripleConvertedValue[3];


Use:
  DMA_InitStructure.DMA_Memory0BaseAddr = (uint32_t)&aADCTripleConvertedValue;

Outcomes