S32DS printf implementation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32DS printf implementation

772 次查看
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 回复

765 次查看
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 项奖励
回复