Page 1 of 1

ULP ADC conflit

Posted: Wed Oct 17, 2018 1:28 am
by urbanze
I using ULP to do an interrupt in main core when adc value goes to below threshold value and after this, main core takes control of adc and do a better filter.

However, when main core stop usage of adc, ulp has "bricked" and dont work any more UNTIL ulp halt and main core start ulp again.

1. How main core can HALT the ulp? Using ulp_run() again or what?

2. Even if adc1_ulp_enable() is called in main core after adc has been used, ulp doesnt work. How can I use adc in ulp and main core without this "bug"? (this not a bug, I think).