S32DS printf implementation

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS printf implementation

649件の閲覧回数
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

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 返信

642件の閲覧回数
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 件の賞賛
返信