Source code to drive BLDC Motor using NXP DEVKIT-MOTORGD and S32K144

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

Source code to drive BLDC Motor using NXP DEVKIT-MOTORGD and S32K144

2,147 Views
mr_jeffs
Contributor II

Hello

I would like to do a test run of BLDC Motor with NXP DEVKIT-MOTORGD and S32K144. I am searching for a source code but could not find any. I refered the following post :

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-Spin-a-Motor-with-NPX-s-MOTORGD-...

but it gives only a binary file and also i need to remove registers from my Board and do some complicated adjustments with my Board, that I find too much just for a test run. I would therefore like to ask you whether I could get a sample project or source code for a test run that I can run on IAR Workbench IDE.

Thank you

0 Kudos
Reply
3 Replies

2,129 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi @mr_jeffs,

Thank you so much for your interest in our products and for using our community.

The examples codes that you are looking for are in MCSPTE1AK144 Development Kit Application Software and you can refer to MCSPTE1AK144 Development Kit Quick Start Guide to use it. If you need more information you can check the MCSPTE1AK144 page.

Regarding the Development Kit Application Software, it was built and tested using the following IDE, Drivers and Tools:
- S32 Design Studio (S32DS) for ARM 2.2
- S32 Software Development Kit (SDK) for S32K1xx 3.0.3
- FreeMASTER 3.1.4.5

And at the moment IAR Workbench IDE is not included.

Hope it helps you. Please let me know if you have more questions about it.

Have a nice day!

Best regards,
Leonardo

2,112 Views
mr_jeffs
Contributor II

Hello

I have downloaded the code and run it. But it only works on sensorless mode. If I switch to Hall Sensor Mode, the Motor is not running, it immediately gets into Fault state. 

To switch to Hall sensor Mode, I suppose I just need to set the Macro "HALL_SENSOR" to 1, as in the attached picture. This macro is defined in "motor_structure.h" file. I could not also find where the FTM XORing of Hall Sensor Signal takes place. So could you please let me know:

1. How to properly switch to Hall Sensor Mode and get the Hall Sector using the code provided by you.

2. Where can I find the FTM XORing of Hall Sensor Signals.

Thank you

mr_jeffs_0-1668587855607.png

 

0 Kudos
Reply

2,101 Views
_Leo_
NXP TechSupport
NXP TechSupport

Hi, @mr_jeffs

Because it is a completely different question from the initial one, I ask you to please open another case. This in order to maintain a better tracking of questions and answers.

Thank you in advance and have a great day!

0 Kudos
Reply