ADC example for SPC560B-DIS not working
I imported the SPC560Bxx_RLA ADC example. As I understand, this example use ADC conversion with DMA, and the ADC value will be converted to the delay time between each time LED D8 is toggled.
But some type like uint32_t could not be resolved and I tried this, I added these path to my project properties "path and symbols":
C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\include
C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\include\sys
C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\lib\gcc\powerpc-eabivle\4.9.4\include
and it could be built then.
But the problem is I did not see any difference of LED's blinking when I connect the PB[8] pin to VCC pin. in UDE window I did not see any change in "samples[0]" variable. So ADC was not working?
I noticed this statement: "adc_lld_start(&ADCD2, NULL);" is this "NULL" an error? I do not understand this. can anyone explain this to me, and did it cause my problem or I included gcc wrong or something else?
thanks for reading.
