2024-12-13 05:58 AM
hi
im using stm32g474vet6
timer1 is trigger mode ,timer3 slavemode, both timer1 and 3 operate at 5khz
timer1 will trigger timer3 and timer3 will trigger adc at every 5khz ,
im using adc in multimode dma ,
now the problem is when initally i start these configurations working fine , i have some protection for some calculation signals, when the protection occurs , i will start my sequence again , in that when again initializing these things adc1 init function is going to error handler.
i have tried with and without deinit of the peripherals which i used , but when again starting the sequence adc is going to error handler ,
what could be the reason
2024-12-23 07:20 AM - edited 2024-12-23 07:46 AM
@Srinath_03 wrote:
adc1 init function is going to error handler.
What adc1 init function returned as error? this is where you need to start. Then from the init HAL locate where it returned that error. Use breakpoints mainly on return "error" in "adc init function".