Could you post your latest JSON parameter file?
Edit - Also are you still getting the ERR_LORESAMP error reported? If so the sin/cos setup may need adjusting. Noticed a comment in the code
Code: Select all
else //SINCOS
{
//Offset assumed 3.3V/2 - 2048
//on my hardware, min is 0.465V, max is 2.510v, so offset is 1.4875v, or 1846
//this should be a parameter?
adc_set_injected_offset(ADC1, 2, sincosoffs);
adc_set_injected_offset(ADC1, 3, sincosoffs);
}