Hello,
I am working with MPC5644A/SPC5644A MCU and the spark function of NXP's engine control library. The problem is that, I can not maintain the spark end angle and dwell time correctly (as below, I am expecting a zero value spark end angle). Are these effects normal or something is wrong in spark function of NXP's engine control library ? Would you please share your suggestion for that problem?
I am building sw for 2-stroke engine (thus engine cycle is 360 degree) with 35-1 crank teeth. My engine system configuration is as below;

API configuration for spark function is as below (I am not using multi pulses);

I also checked the pre-compiled etpu set in the new etpu function selector utility as below, and the effect was the same.
https://www.nxp.com/webapp/etpu_cw/
Outputs for crank (in green) and spark (in yellow) signals are as below;



Thank you for your help !
Regards,
Turgay Kale