AnsweredAssumed Answered

Problems porting from STM32f407 Discovery to STM32F429 Discovery

Question asked by di_Bene.Alberto on May 11, 2015
Latest reply on May 13, 2015 by di_Bene.Alberto
Good afternoon,

 I am trying to port an application I wrote for the STM32F407 Discovery board, which makes use of the ADC, DMA and NVIC to the STM32F429 Discovery board.

I receive a lot of errors when compiling, it looks like many things changed from one board to the other... for example in this snippet of code:
   NVIC_InitTypeDef                  NVIC_InitStructure;
   ADC_CommonInitTypeDef    ADC_CommonInitStructure;
/* Enable peripheral clocks */
   RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_DMA2, ENABLE);
   RCC_APB2PeriphClockCmd(RCC_APB2Periph_ADC1 | RCC_APB2Periph_ADC2, ENABLE);
/* Configure Interrupt Controller for DMA requests */
   NVIC_InitStructure.NVIC_IRQChannel  = DMA2_Stream0_IRQn;
   NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
   NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
   NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;

I receive these errors :

Globals.h(52): error:  #20: identifier "NVIC_InitTypeDef" is undefined
Globals.h(55): error:  #20: identifier "ADC_CommonInitTypeDef" is undefined

and many, many others... those are just an example.
It looks like the porting is not so straightforward...
Does anybody have words of wisdom on how to proceed ?