Using S32M2 motor control examples with AMMCLIB 1.1.44 - optimal performance settings

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

Using S32M2 motor control examples with AMMCLIB 1.1.44 - optimal performance settings

Using S32M2 motor control examples with AMMCLIB 1.1.44 - optimal performance settings

This article concerns the motor control examples for S32M2 and it is recommended to apply the following procedure to all SW examples mentioned in this article, S32M2xx - Motor control use cases, provided they are used with AMMCLIB release 1.1.44 (or later, future version).

This procedure concerns S32M2 motor control examples installed by the installer version 1.2 (or earlier) and will be fixed in the next S32M2 motor control example installer release.

Since AMMCLIB release 1.1.44 uses a slightly different compiler settings compared to the previous version, it is necessary to adjust the settings of the motor control example SW for optimal performance as follows:

JoJa_0-1781701257620.png

 


  1. Right-click on project and choose properties
  2. Navigate to C/C++ Build, choose Settings
  3. Navigate to Standard S32DS C Linker -> Miscellaneous and add the following to Linker flags field:
    -fno-lto
  4. Apply and close
  5. Rebuild the project with these settings

Alternatively, you can use AMMCLIB release 1.1.43 (or earlier) without the above-mentioned procedure.

%3CLINGO-SUB%20id%3D%22lingo-sub-2370194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUsing%20S32M2%20motor%20control%20examples%20with%20AMMCLIB%201.1.44%20-%20optimal%20performance%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2370194%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3EThis%20article%20concerns%20the%20motor%20control%20examples%20for%20S32M2%20and%20i%3CSPAN%20data-teams%3D%22true%22%3Et%20is%20recommended%20to%20apply%20the%20following%20procedure%20to%20all%3C%2FSPAN%3E%26nbsp%3BSW%20examples%20mentioned%20in%20this%20article%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32M-Knowledge-Base%2FS32M2xx-Motor-control-use-cases%2Fta-p%2F2039790%22%20target%3D%22_blank%22%3ES32M2xx%20-%20Motor%20control%20use%20cases%3C%2FA%3E%2C%20provided%20they%20are%20used%20with%20AMMCLIB%20release%201.1.44%20(or%20later%2C%20future%20version).%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20procedure%20concerns%20S32M2%20motor%20control%20examples%20installed%20by%20the%20installer%20version%201.2%20(or%20earlier)%20and%20will%20be%20fixed%20in%20the%20next%20S32M2%20motor%20control%20example%20installer%20release.%3CBR%20%2F%3E%3CBR%20%2F%3ESince%20AMMCLIB%20release%201.1.44%20uses%20a%20slightly%20different%20compiler%20settings%20compared%20to%20the%20previous%20version%2C%20it%20is%20necessary%20to%20adjust%20the%20settings%20of%20the%20motor%20control%20example%20SW%20for%20optimal%20performance%20as%20follows%3A%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JoJa_0-1781701257620.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JoJa_0-1781701257620.png%22%20style%3D%22width%3A%20825px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F389255i3A3F8A18956A91E6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JoJa_0-1781701257620.png%22%20alt%3D%22JoJa_0-1781701257620.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3COL%3E%0A%3CLI%3ERight-click%20on%20project%20and%20choose%20properties%3C%2FLI%3E%0A%3CLI%3ENavigate%20to%20%3CEM%3EC%2FC%2B%2B%20Build%3C%2FEM%3E%2C%20choose%3CEM%3E%20Settings%3C%2FEM%3E%3C%2FLI%3E%0A%3CLI%3ENavigate%20to%20%3CEM%3EStandard%20S32DS%20C%20Linker%20-%26gt%3B%20Miscellaneous%3C%2FEM%3E%20and%20add%20the%20following%20to%20%3CEM%3ELinker%20flags%3C%2FEM%3E%20field%3A%3CBR%20%2F%3E%3CSTRONG%3E-fno-lto%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-teams%3D%22true%22%3EApply%20and%20close%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20data-teams%3D%22true%22%3ERebuild%20the%20project%20with%20these%20settings%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EAlternatively%2C%20you%20can%20use%20AMMCLIB%20release%201.1.43%20(or%20earlier)%20without%20the%20above-mentioned%20procedure.%3C%2FP%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
3 weeks ago
Updated by: