missing Motor Control PMSM example in the 1.60 version of the S32K3 MBDT

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

missing Motor Control PMSM example in the 1.60 version of the S32K3 MBDT

3,234 Views
leonggz
Contributor II

Hello Nxp developers,

i'm trying to follow AN13902 for the "3-Phase Sensorless PMSM Motor Control
Kit with S32K344 using MBDT Blocks". as of Jan 2025, the toolbox version progressed to 1.60 from 1.30 when the AN was created. As i'm trying to find the alternative in the latest release but could not locate the equivalent example. 

can you comment on the availability and if there is a downloadable example sw kit that can be accessed?

thank you

leong

Labels (1)
Tags (1)
0 Kudos
Reply
7 Replies

3,190 Views
leonggz
Contributor II

thank you Irina.. the model name under the 1.60 mbdt contains _S32k312, is there a migration guide to fit it to the original app note for the S32K344 ?

a follow up question: these models shown in the toolbox are "code gen models", is there a "simulation model" version to explore? 

thanks

regards

leonggz

0 Kudos
Reply

3,175 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hello @leonggz 

You could find the s32k344 model, the updated version of the one presented in the AN you are referring, inside the following path, as illustrated below.

<toolbox_installation_folder>/S32K3_Examples/mc/PMSM

 

pmsm.png

Indeed the models are designed to be deployed on the hardware reference design that we have used for development and testing, but you can modify the model for simulating the algorithm with respect to various scenarios.

For performing such an action, you could isolate the algorithm (hardware independent part) and, instead of feeding it with inputs acquired from the hardware, which is achieved using our MBDT blocks that allow peripherals interaction, you could define your own test inputs and connect them to the algorithm. In a similar manner, the MBDT blocks that are used to output the signals to the hardware could be replaced by scopes or other data visualization generic Simulink blocks.  Please feel free to check our webinars on the NXP MBDT Community to find out more about simulation modes, like MIL, SIL and PIL, and how these can be implemented using our toolbox. 

Hope this helps,

Irina

0 Kudos
Reply

3,220 Views
Irina_Costachescu
NXP Employee
NXP Employee

Hello @leonggz 

The example is still available in MBDT for S32K3 1.6.0, and you can access it by opening the examples library browser from Simulink, go to Motor Control, and then double click on either the Motor Control PMSM Dual Shunt EBT ot S32CT.

We deliver models supporting both EB tresos and S32 Configuration Tools. Please note that in case you would like to use the EB tresos option, you would need to install separately the tool. In the S32CT case, the configuration tool is delivered directly with our toolbox.

 

mc2sh.png

Hope this helps,
Irina

0 Kudos
Reply

1,452 Views
JonAnder_Amante
Contributor II

Hi,

 

I am using the board S32K344MINI-EVB with driver GD3000 and Sunrise motor. I have tested a program where you can manage the speed of motor with the project "S32K344:mc_pmsm_1sh_s32ct". I have different questions because I want to prove new options. 

 

JonAnder_Amante_0-1770198647728.png

 

 

1. I want to use the evaluation board to realize the control of motor, so I want to do the control FOC (2 controllers PI) but I want to simulate the plant (the motor PMSM) and the power electronics (GD3000). In this example, how I can modify it to simulate the plant but continue perfoming the control from the evaluation board? I suppose that I have to change something of state machine block but I don´t know what I have to change. 

2. Could you tell me the pins that I am using to send different signals from GD3000 (driver of motor) to motor PMSM? I have information in your website about this but I don´t if that´s the case. I send you a pdf with this information, although it´s not yhe same board I think the pins are the same (INFO_Driver_MOtor.pdf).

Thank you for all, 

 

Jon Ander Amante

0 Kudos
Reply

1,398 Views
stefancinipeanu
NXP Employee
NXP Employee

Hello @JonAnder_Amante 

The latest MBDT for S32K3 toolbox (v1.8.0) does not yet officially support the S32K344-MINIEVB. The motor control examples targeted for S32K344 MCU were designed and tested using the MCSPTE1AK344 motor control kit. Currently, we are taking into consideration to add support for this EVB.

Have in mind that the example you are testing (s32k344_mc_pmsm_1sh_s32ct) is using the single-shunt approach for motor phase current estimation, which requires a more complex SW design, thus a more complex Simulink modelling to achieve this type of current reconstruction.

1. To simulate the motor plant and power electronics, you can use other additional MathWorks toolboxes, like Motor Control Blockset and Simscape Electrical. Using these toolboxes can help you design the inverter system using the dedicated blocks for MOSFETs and you will find as well different blocks for simulating multiple types of electric motors. But it is up to you how you will design the model to have both simulation and code generation. I don't understand why you want to simulate the GD3000. This device is just a pre-driver IC that takes the PWM signals from the MCU to be able to drive the motor using the DC power supply voltage which is larger than what MCU can provide. Also, the Simulink blocks labeled with NXP for accessing the hardware are not design for simulation. Their purpose is for code generation only.

References:

Motor Control Blockset

Simscape Electrical

Here you will find some examples from MathWorks how you can design and simulate the motor and power electronics:

https://www.mathworks.com/help/sps/ug/three-phase-pmsm-drive.html

https://www.mathworks.com/help/sps/ug/ipmsm-velocity-control.html 

2. I cannot see any PDF file, if you have attached it to this thread.

Regards!

Stefan.

0 Kudos
Reply

1,359 Views
JonAnder_Amante
Contributor II

Hi, 

Thank you for your reply.

 

My target`s project is to use the board "S32K344 MINI EVB" to realize the control of FOC (for example reading currents) and simulate the plant with its power electronics. Could you tell me the pins and the blocks that I have to use?

 

(I send you the pdf which I mentioned previously (Info_Driver_Motor)

Thank you for all, 

 

0 Kudos
Reply

1,356 Views
JonAnder_Amante
Contributor II

Hi,

MI board "S32K344 MINI EVB" has to realize different functions for example:

Reading currents, reading postion and speed, reading bus Vdc, update PWM etc, from the plant simulated. 

There are different examples to simulate the controller and plant but I want to simulate the plant and realize the functions that I mentioned with the board:

JonAnder_Amante_0-1770628973440.png

JonAnder_Amante_1-1770628992866.png

 

There are different examples to simulate this but I have to use some blocks of NXP to simulate this, could you tell me which blocks I have to use?

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2051957%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Emissing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2051957%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Nxp%20developers%2C%3C%2FP%3E%3CP%3Ei'm%20trying%20to%20follow%26nbsp%3BAN13902%20for%20the%20%223-Phase%20Sensorless%20PMSM%20Motor%20Control%3CBR%20%2F%3EKit%20with%20S32K344%20using%20MBDT%20Blocks%22.%20as%20of%20Jan%202025%2C%20the%20toolbox%20version%20progressed%20to%201.60%20from%201.30%20when%20the%20AN%20was%20created.%20As%20i'm%20trying%20to%20find%20the%20alternative%20in%20the%20latest%20release%20but%20could%20not%20locate%20the%20equivalent%20example.%26nbsp%3B%3C%2FP%3E%3CP%3Ecan%20you%20comment%20on%20the%20availability%20and%20if%20there%20is%20a%20downloadable%20example%20sw%20kit%20that%20can%20be%20accessed%3F%3C%2FP%3E%3CP%3Ethank%20you%3C%2FP%3E%3CP%3Eleong%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2051957%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EExample%20Models%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2306010%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20missing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2306010%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20am%20using%20the%20board%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ES32K344MINI-EVB%20with%20driver%20GD3000%20and%20Sunrise%20motor.%20I%20have%20tested%20a%20program%20where%20you%20can%20manage%20the%20speed%20of%20motor%20with%20the%20project%20%22S32K344%3Amc_pmsm_1sh_s32ct%22.%20I%20have%20different%20questions%20because%20I%20want%20to%20prove%20new%20options.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_0-1770198647728.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770198647728.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770198647728.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770198647728.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770198647728.png%22%20style%3D%22width%3A%20399px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375474i48DBE82F8A1CC046%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_0-1770198647728.png%22%20alt%3D%22JonAnder_Amante_0-1770198647728.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E1.%20I%20want%20to%20use%20the%20evaluation%20board%20to%20realize%20the%20control%20of%20motor%2C%20so%20I%20want%20to%20do%20the%20control%20FOC%20(2%20controllers%20PI)%20but%20I%20want%20to%20simulate%20the%20plant%20(the%20motor%20PMSM)%20and%20the%20power%20electronics%20(GD3000).%20In%20this%20example%2C%20how%20I%20can%20modify%20it%20to%20simulate%20the%20plant%20but%20continue%20perfoming%20the%20control%20from%20the%20evaluation%20board%3F%3C%2FSPAN%3E%26nbsp%3BI%20suppose%20that%20I%20have%20to%20change%20something%20of%20state%20machine%20block%20but%20I%20don%C2%B4t%20know%20what%20I%20have%20to%20change.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20Could%20you%20tell%20me%20the%20pins%20that%20I%20am%20using%20to%20send%20different%20signals%20from%20GD3000%20(driver%20of%20motor)%20to%20motor%20PMSM%3F%20I%20have%20information%20in%20your%20website%20about%20this%20but%20I%20don%C2%B4t%20if%20that%C2%B4s%20the%20case.%20I%20send%20you%20a%20pdf%20with%20this%20information%2C%20although%20it%C2%B4s%20not%20yhe%20same%20board%20I%20think%20the%20pins%20are%20the%20same%20(INFO_Driver_MOtor.pdf).%3C%2FP%3E%3CP%3EThank%20you%20for%20all%2C%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EJon%20Ander%20Amante%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2054505%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20missing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2054505%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F99974%22%20target%3D%22_blank%22%3E%40leonggz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20could%20find%20the%20s32k344%20model%2C%20the%20updated%20version%20of%20the%20one%20presented%20in%20the%20AN%20you%20are%20referring%2C%20inside%20the%20following%20path%2C%20as%20illustrated%20below.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%20%3CTOOLBOX_INSTALLATION_FOLDER%3E%2FS32K3_Examples%2Fmc%2FPMSM%3C%2FTOOLBOX_INSTALLATION_FOLDER%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorIrina_Costachescu_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pmsm.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pmsm.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pmsm.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pmsm.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pmsm.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F326444iDD457DD7049C389F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pmsm.png%22%20alt%3D%22pmsm.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIndeed%20the%20models%20are%20designed%20to%20be%20deployed%20on%20the%20hardware%20reference%20design%20that%20we%20have%20used%20for%20development%20and%20testing%2C%20but%20you%20can%20modify%20the%20model%20for%20simulating%20the%20algorithm%20with%20respect%20to%20various%20scenarios.%3C%2FP%3E%0A%3CP%3EFor%20performing%20such%20an%20action%2C%20you%20could%20isolate%20the%20algorithm%20(hardware%20independent%20part)%20and%2C%20instead%20of%20feeding%20it%20with%20inputs%20acquired%20from%20the%20hardware%2C%20which%20is%20achieved%20using%20our%20MBDT%20blocks%20that%20allow%20peripherals%20interaction%2C%20you%20could%20define%20your%20own%20test%20inputs%20and%20connect%20them%20to%20the%20algorithm.%20In%20a%20similar%20manner%2C%20the%20MBDT%20blocks%20that%20are%20used%20to%20output%20the%20signals%20to%20the%20hardware%20could%20be%20replaced%20by%20scopes%20or%20other%20data%20visualization%20generic%20Simulink%20blocks.%26nbsp%3B%20Please%20feel%20free%20to%20check%20our%20webinars%20on%20the%20NXP%20MBDT%20Community%20to%20find%20out%20more%20about%20simulation%20modes%2C%20like%20MIL%2C%20SIL%20and%20PIL%2C%20and%20how%20these%20can%20be%20implemented%20using%20our%20toolbox.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHope%20this%20helps%2C%3C%2FP%3E%0A%3CP%3EIrina%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2054211%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20missing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2054211%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ethank%20you%20Irina..%20the%20model%20name%20under%20the%201.60%20mbdt%20contains%20_S32k312%2C%20is%20there%20a%20migration%20guide%20to%20fit%20it%20to%20the%20original%20app%20note%20for%20the%20S32K344%20%3F%3C%2FP%3E%3CP%3Ea%20follow%20up%20question%3A%20these%20models%20shown%20in%20the%20toolbox%20are%20%22code%20gen%20models%22%2C%20is%20there%20a%20%22simulation%20model%22%20version%20to%20explore%3F%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3Eregards%3C%2FP%3E%3CP%3Eleonggz%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2053584%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20missing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2053584%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F99974%22%20target%3D%22_blank%22%3E%40leonggz%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20example%20is%20still%20available%20in%20MBDT%20for%20S32K3%201.6.0%2C%20and%20you%20can%20access%20it%20by%20opening%20the%20examples%20library%20browser%20from%20Simulink%2C%20go%20to%20Motor%20Control%2C%20and%20then%20double%20click%20on%20either%20the%20Motor%20Control%20PMSM%20Dual%20Shunt%20EBT%20ot%20S32CT.%3C%2FP%3E%0A%3CP%3EWe%20deliver%20models%20supporting%20both%20EB%20tresos%20and%20S32%20Configuration%20Tools.%20Please%20note%20that%20in%20case%20you%20would%20like%20to%20use%20the%20EB%20tresos%20option%2C%20you%20would%20need%20to%20install%20separately%20the%20tool.%20In%20the%20S32CT%20case%2C%20the%20configuration%20tool%20is%20delivered%20directly%20with%20our%20toolbox.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorIrina_Costachescu_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mc2sh.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mc2sh.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mc2sh.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mc2sh.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mc2sh.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F326225iFD8E7599881E3867%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22mc2sh.png%22%20alt%3D%22mc2sh.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20this%20helps%2C%3CBR%20%2F%3EIrina%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20missing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313448%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226147%22%20target%3D%22_blank%22%3E%40JonAnder_Amante%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20latest%20MBDT%20for%20S32K3%20toolbox%20(v1.8.0)%20does%20not%20yet%20officially%20support%20the%20S32K344-MINIEVB.%20The%20motor%20control%20examples%20targeted%20for%20S32K344%20MCU%20were%20designed%20and%20tested%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2FMCSPTE1AK344%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMCSPTE1AK344%3C%2FA%3E%20motor%20control%20kit.%20Currently%2C%20we%20are%20taking%20into%20consideration%20to%20add%20support%20for%20this%20EVB.%3C%2FP%3E%0A%3CP%3EHave%20in%20mind%20that%20the%20example%20you%20are%20testing%20(s32k344_mc_pmsm_1sh_s32ct)%20is%20using%20the%20single-shunt%20approach%20for%20motor%20phase%20current%20estimation%2C%20which%20requires%20a%20more%20complex%20SW%20design%2C%20thus%20a%20more%20complex%20Simulink%20modelling%20to%20achieve%20this%20type%20of%20current%20reconstruction.%3C%2FP%3E%0A%3CP%3E1.%20To%20simulate%20the%20motor%20plant%20and%20power%20electronics%2C%20you%20can%20use%20other%20additional%20MathWorks%20toolboxes%2C%20like%20%3CSTRONG%3EMotor%20Control%20Blockset%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ESimscape%20Electrical%3C%2FSTRONG%3E.%20Using%20these%20toolboxes%20can%20help%20you%20design%20the%20inverter%20system%20using%20the%20dedicated%20blocks%20for%20MOSFETs%20and%20you%20will%20find%20as%20well%20different%20blocks%20for%20simulating%20multiple%20types%20of%20electric%20motors.%20But%20it%20is%20up%20to%20you%20how%20you%20will%20design%20the%20model%20to%20have%20both%20simulation%20and%20code%20generation.%20I%20don't%20understand%20why%20you%20want%20to%20simulate%20the%20GD3000.%20This%20device%20is%20just%20a%20pre-driver%20IC%20that%20takes%20the%20PWM%20signals%20from%20the%20MCU%20to%20be%20able%20to%20drive%20the%20motor%20using%20the%20DC%20power%20supply%20voltage%20which%20is%20larger%20than%20what%20MCU%20can%20provide.%20Also%2C%20the%20Simulink%20blocks%20labeled%20with%20NXP%20for%20accessing%20the%20hardware%20are%20not%20design%20for%20simulation.%20Their%20purpose%20is%20for%20code%20generation%20only.%3C%2FP%3E%0A%3CP%3EReferences%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fmcb%2Ftypes-of-motors.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMotor%20Control%20Blockset%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fsps%2Fsimscape-based-blocks.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ESimscape%20Electrical%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EHere%20you%20will%20find%20some%20examples%20from%20MathWorks%20how%20you%20can%20design%20and%20simulate%20the%20motor%20and%20power%20electronics%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fsps%2Fug%2Fthree-phase-pmsm-drive.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fsps%2Fug%2Fthree-phase-pmsm-drive.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fsps%2Fug%2Fipmsm-velocity-control.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.mathworks.com%2Fhelp%2Fsps%2Fug%2Fipmsm-velocity-control.html%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E2.%20I%20cannot%20see%20any%20PDF%20file%2C%20if%20you%20have%20attached%20it%20to%20this%20thread.%3C%2FP%3E%0A%3CP%3ERegards!%3C%2FP%3E%0A%3CP%3EStefan.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20missing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314435%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EMy%20target%60s%20project%20is%20to%20use%20the%20board%20%22S32K344%20MINI%20EVB%22%20to%20realize%20the%20control%20of%20FOC%20(for%20example%20reading%20currents)%20and%20simulate%20the%20plant%20with%20its%20power%20electronics.%20Could%20you%20tell%20me%20the%20pins%20and%20the%20blocks%20that%20I%20have%20to%20use%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E(I%20send%20you%20the%20pdf%20which%20I%20mentioned%20previously%20(Info_Driver_Motor)%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20all%2C%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2314535%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20missing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2314535%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EMI%20board%20%22S32K344%20MINI%20EVB%22%20has%20to%20realize%20different%20functions%20for%20example%3A%3C%2FP%3E%3CP%3EReading%20currents%2C%20reading%20postion%20and%20speed%2C%20reading%20bus%20Vdc%2C%20update%20PWM%20etc%2C%20from%20the%20plant%20simulated.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThere%20are%20different%20examples%20to%20simulate%20the%20controller%20and%20plant%20but%20I%20want%20to%20simulate%20the%20plant%20and%20realize%20the%20functions%20that%20I%20mentioned%20with%20the%20board%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_0-1770628973440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770628973440.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376072i98BACE5AD13C72DA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_0-1770628973440.png%22%20alt%3D%22JonAnder_Amante_0-1770628973440.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_1-1770628992866.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770628992866.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376074i1EB859F771A0A4C9%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_1-1770628992866.png%22%20alt%3D%22JonAnder_Amante_1-1770628992866.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThere%20are%20different%20examples%20to%20simulate%20this%20but%20I%20have%20to%20use%20some%20blocks%20of%20NXP%20to%20simulate%20this%2C%20could%20you%20tell%20me%20which%20blocks%20I%20have%20to%20use%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E