AnsweredAssumed Answered

Undefined reference to `CTIMER_SetupCapture'

Question asked by Peter Ma on Jun 6, 2019
Latest reply on Jun 17, 2019 by Sabina Bruce

   What I used is Lpc845BRK, the code is from LPC845 SDK.

    I want to change PWM duty cycle every 4/8/16 PWM period, so I use CTIMER with capture mode to counter PWM rise edge, I have already included fsl_ctimer.h but an error occured, undefined reference to `CTIMER_SetupCapture'. I checked my project and I'm sure that fsl_ctimer.h and fsl_ctimer.c are in the drivers folder.

    What makes me confused is that I write CTIMER_Init() before CTIMER_SetupCapture(), the error is not on the line of Init, but on SetupCapture line.