S32DS printf implementation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32DS printf implementation

790 Views
sarwath
Contributor IV

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.

sarwath_0-1661320599925.png

 

BR,

Sarwath

Labels (1)
Tags (2)
0 Kudos
Reply
1 Reply

783 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Sarwath,

the problem is that printf is blocking function and it can affect the control loop. Better option is to use Freemaster:

https://www.nxp.com/design/software/development-software/freemaster-run-time-debugging-tool:FREEMAST...

There's also community space for Freemaster:

https://community.nxp.com/t5/FreeMASTER/bd-p/freemaster

Regards,

Lukas

0 Kudos
Reply