Open nashif opened 7 years ago
by Qiu Peiyang:
by Qiu Peiyang:
The same configuration may work when SAMPLE_WITH is configured to other values. However I cannot find the connections between these failure and success.
by Qiu Peiyang:
Another question, we can configure the cfg.window during runtime, which is adc_seq_entry.sampling_delay, why we are not allowed to configure cfg.resolution during runtime ? This doesn't make sense, and we may need to use different sample width in one APP.
by Mark Linkmeyer:
Fixing incorrect priority
by Andy Ross:
Can you clarify? What does "multiple sequence entries" mean? What does "fails to fetch value?" mean?
Are you getting a runtime error? Or are you getting a value read that doesn't seem to correspond to the voltage on the pin? Can you be explicit about exactly how you tested, and what was connected to the analog input?
by Qiu Peiyang:
Hi Andy Ross
There is a struct "adc_seq_table" which defines a list of sequence entries used to execute a sequence of samplings. This case uses two sequence entries in a sequence table and wants to return 2 samples from two specific channels which are channel 10 and channel 11. I connect GPIO_SS_AIN_10 and GPIO_SS_AIN_11 to 3.3V and try to fetch data from the pins, but the case fails to fetch samples and return error code "EIO". But if I modify the case and just want to fetch sample data from channel 10, then the case can pass.
by Andy Ross:
Is this maybe a duplicate of GH-3330 (suspected code generation problem)? Can you try the workaround there?
Reported by Qiu Peiyang:
Configuration