How to modify KMS generated code to turn on the motor?

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

How to modify KMS generated code to turn on the motor?

1,275 次查看
PaulTan
Contributor III

Hi,

I'm fairly new to BLDC development.  I have a FRDM-KV31F working with the KMS.  I saved the project.  I've opened the project and can compile it and debug it with MCUXpresso.  (project: FRDMKV31F_SNLESSHALL_MXP)  Now what?

Where do I modify the sample project to actually turn on and off the motor?  Do I just change the dsm.state in drv.c? Is there a road map or an app note that covers the software structure that I can read?  

Also, is there an easy way to incorporate FreeRTOS into the project?

Thanks.

Paul Tan.

Exadler Technologies Inc.

标签 (1)
标记 (2)
4 回复数

922 次查看
PaulTan
Contributor III

Found solution in https://community.nxp.com/thread/469347 

Answering my own question just in case other people have the same problem.

Still no idea how to implement freeRTOS easily in an existing project though..

0 项奖励

922 次查看
miduo
NXP Employee
NXP Employee

Hi, Paul

Please let me know if this helpful: https://community.nxp.com/docs/DOC-334496 

922 次查看
PaulTan
Contributor III

It's helpful, but not detailed enough for a specific example.  I was hoping for some walkthrough lab type scenario where it gives you please add this include and do this step, but watch out for this step.

0 项奖励

922 次查看
miduo
NXP Employee
NXP Employee

Hi,

Thanks for your suggestion. I totally agree with you that we should add more lab demos.  Hope it will been added soon. Thanks again.

0 项奖励