The difference between motor control program based on state machine and FreeRTOS

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

The difference between motor control program based on state machine and FreeRTOS

939 Views
xgy_upc
Contributor III

Now I am using FRDM-KV31 and FRDM-MC-LVPMSM. I have downloaded MCRSP_PMSM_V1.1.2 and AN5309SW from the official website.MCRSP_PMSM_V1.1.2 is based on state machine, AN5309SW is based on FreeRTOS, I would like to ask the difference between them, it is better to be specific.In addition, how do I port MCRSP_PMSM_V1.1.2 to FreeRTOS

0 Kudos
1 Reply

906 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi, I hope you're doing well!

 

These two implementations use a different "base" or system to schedule and run the example. The more advanced FreeRTOS version implements a scheduler and task management offered by the RTOS, which may increase program performance, as opposed to the simple State Machine version.

 

It would be better to use the FreeRTOS version instead of porting the MCRSP_PMSM_V1.1.2 version to it, as the amount of work needed to port from one to another might be close to rewriting the program altogether.

 

Best regards,

Sebastian

0 Kudos