Hello Community,
I want to implement the printf statement to check the ADC ouput data.
currently I am running NXP sample code MCSPTE1AK144_BLDC_6Step.
I am trying to add the printf statement in checkfault function, I can able to see the value in console but My motor is not running. if comment the printf statement then build the flash, now my motor is working fine.
my doubt is if I added the printf statement why motor is not rotating.
BR,
Sarwath
Hi Sarwath,
the problem is that printf is blocking function and it can affect the control loop. Better option is to use Freemaster:
There's also community space for Freemaster:
https://community.nxp.com/t5/FreeMASTER/bd-p/freemaster
Regards,
Lukas