Other Parts Discussed in Thread: SYSCONFIG
Hello,
In my application, one job is ADC triggered by event, after it done, try to be back to software trigger, failed.
Started with official init by SYSCONFIG_WEAK void SYSCFG_DL_ADC_1_init(void), and then configured with event trigger:
DL_ADC12_initSeqSample(ADC_1_INST,
DL_ADC12_REPEAT_MODE_DISABLED, DL_ADC12_SAMPLING_SOURCE_AUTO, DL_ADC12_TRIG_SRC_EVENT,
...
...);
DL_ADC12_enableEvent(...);
DL_ADC12_enableConversions(...);
It works well with PWM trigger and DMA transfer. after job done, need to be back normal operation. even though take use a lot of try, like below,
use DL init code to re-init: SYSCFG_DL_ADC_1_init(); and with related or un-related such like SYSCFG_DL_DMA_init() and SYSCFG_DL_PWM_0_init(), even other SYSCFG_DL_xxxx_init(), no help.
Software trigger can work well before event opreation, afterwards the issue phenomena is ADC operation lost response completely, hang there.
Please help how to be back to normal software trigger?
Thanks