Run px4 on stm32f4discovery

Hi,all
I was troubled by a problem in a few days.i just wanna add the adc module to the firmware for stm32f4discovery,i did the following steps:
1)add drivers/stm32/adc in px4_stm32f4discovery_default;
drivers/stm32/adc
2)add adc pins configuration in px4discovery->nsh_archinitialize();
px4_arch_configgpio(GPIO_ADC1_IN4);
px4_arch_configgpio(GPIO_ADC1_IN10);
px4_arch_configgpio(GPIO_ADC1_IN11);
px4_arch_configgpio(GPIO_ADC1_IN12);
px4_arch_configgpio(GPIO_ADC1_IN13); /* FMU_AUX_ADC_1 /
px4_arch_configgpio(GPIO_ADC1_IN14); /
FMU_AUX_ADC_2 /
px4_arch_configgpio(GPIO_ADC1_IN15); /
PRESSURE_SENS /
3)add the adc channels define in boards/px4-stm32f4discovery/board_config.h
/

  • ADC channels
  • These are the channel numbers of the ADCs of the microcontroller that can be used by the Px4 Firmware in the adc driver
    */
    #define ADC_CHANNELS (1 << 4) | (1 << 10) | (1 << 11) | (1 << 12) | (1 << 13) | (1 << 14) | (1 << 15)

// ADC defines to be used in sensors.cpp to read from a particular channel
//#define ADC_BATTERY_VOLTAGE_CHANNEL 2
//#define ADC_BATTERY_CURRENT_CHANNEL 3
#define ADC_5V_RAIL_SENSE 4
#define ADC_AIRSPEED_VOLTAGE_CHANNEL 15

Then make clean --> make px4-stm32f4discovery_default->upload.
When i test “adc test” in nsh terminal,it return a fatal error:
nsh> adc test
Assertion failed at file:irq_unexpectedisr.c line: 86 task: adc
sp: 20001e14
IRQ stack:
base: 20001e80
size: 00000ffc …(more information)
help!!!sos!!!