AnsweredAssumed Answered

FRDM-KE04Z  KDS  ADC_LDD sample code compile errors

Question asked by George Chamberlayne on Mar 20, 2015

Hardware:-

FRDM-KE04Z PCB - with extra 10K Pot connected to the PKE04Z8VFK4 PTB2 pin. (Pot input +3V3 and GND)

Dev platform:-

Kinetis Design Studio and Processor Expert

Problem:-

ADC_LDD Component example code compile errors

 

Every second my Test program uses the ADC_LDD example code to read the ADC value of a Pot connected to PTB2 pin (J4 pin 1) and sets the intensity of the Red (RGB) Led PWM period accordingly.

 

I’m getting the following KDS compile errors.

'Building file: ../Sources/Events.c'

'Invoking: Cross ARM C Compiler'

 

../Sources/Events.c: In function 'TU2_OnCounterRestart':

../Sources/Events.c:195:46: error: 'LDD_ADC_Tsample' undeclared (first use in this function)

   Error = AD1_CreateSampleGroup(MyADCPtr, (LDD_ADC_Tsample *)SampleGroup, SAMPLE_GROUP_SIZE); // Set created sample group

   ^

../Sources/Events.c:195:63: error: expected expression before ')' token

   Error = AD1_CreateSampleGroup(MyADCPtr, (LDD_ADC_Tsample *)SampleGroup, SAMPLE_GROUP_SIZE); // Set created sample group

^

../Sources/Events.c:195:63: error: too few arguments to function 'AD1_CreateSampleGroup'

 

NB:-

I’m new to Freescale and Kinetis processors.

The ‘old’ CW ‘ADC_poll_demo’ example code runs OK on my FRDM-KE04Z PCB.


Original Attachment has been moved to: KE04Z-_ADC_Test_01.zip

Outcomes