How can i capture PWM duty cycle? Does SDK have the associated calling function? If yes, could you tell me which one?
Besides, I have another question:
How do I modify the bootloader and APP momery addresses?
Regarding the SDK, there is FTM_DRV_GetInputCaptureMeasurement() function that returns a value calculated from Channel (n, n+1) Value Registers based on the timer configuration.
This function returns Rising Edge Period Measurement in the example in Design Studio (S32K144_FTM_Signal_Measurement). This can be changed to Period On Measurement.
There is also an application note for the FlexTimer: Features and Operation Modes of FlexTimer Module on S32K
Retrieving data ...