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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

819 Views
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.

Labels (1)
Tags (2)
4 Replies

466 Views
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 Kudos

466 Views
miduo
NXP Employee
NXP Employee

Hi, Paul

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

466 Views
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 Kudos

466 Views
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 Kudos