I am generating optimsed code using simulink coder for LMS filter using stm32f4VG407 discovery board,KEIL MDK-ARM, but upon single conversion of signal through ADC , it is stopping at hardfault handler. fault report: MM_FAULT_STAT:0x00 BUS_FAULT_STAT:0x04 i.e. IMPRECISERR IS HIGH USG_FAULT_STAT:0x000 HARD_FAULT_STAT:0x4000000 i.e.FORCED IS HIGH DBG_FAULT_STAT:0x00000001 i.e. HALTED IS HIGH
I am using Matlab 2013b & MDK_ARM 4.74 please help me how to get rid of this.
ADC is powered up since.... Does your adc have IRQ handler? Chances are that the adc interrupt may be enabled but doesnt have dedicated IRQ handler.