HOWTO: Working with AMMCLib SDKs

Document created by Mike Doidge Employee on Jul 13, 2018Last modified by Mike Doidge Employee on Aug 27, 2018
Version 3Show Document
  • View in full screen mode

Please note: AMMCLib SDK is standalone from S32/MPC SDK, it is intended for users who will not use the S32/MPC SDK. The AMMCLib SDK does not support all toolchains listed in S32DS new project wizard. For the toolchains it does support, It does not support all versions. The available SDKs will vary depending upon the toolchain which is selected.


When creating a new S32DS Application Project, you may have noticed the S32K14x_AMMCLib_xxx SDK option in the Select SDK menu. This is the standalone version of the AMMCLib. If you plan to use one of the S32/MPC SDKs, then it most likely contains an integrated version of the AMMCLib. For this integrated case, the AMMCLib is accessed like any other S32/MPC SDK component and you would not need to add the standalone version.



To add the AMMCLib SDK to your project, simply add it in the New Project Wizard (as pictured above) or add it later through the project properties menu, SDKs:



Select the SDK from the list and then click 'Attach/Detach...'



Click in the column for each build configuration for which you wish to have the SDK attached. You can remove SDKs by clicking the '+', causing it to disappear.


It should also be noted that there exist example projects which demonstrate usage of the AMMCLib, though these show usage of the S32/MPC SDK integrated version.



When working in your project, you can use the SDK Explorer to drag and drop macros and function calls into your code.

To add the SDK Explorer view to your perspective, there are at least 2 methods:

1) Menu method

a) Window -> Show View -> Other... OR Alt + Shift + Q, Q



b) Filter on 'SDK'

c) Select 'SDK Explorer'



d) Click OK

2) Quick Access method

a) Type 'SDK'

b) Select 'SDK Explorer'



To access the macros and function calls from the SDK Explorer:

1) Go to the Project Explorer and select your project to make it active.

2) Go to SDK Explorer and all of the SDKs you included in the project will be listed.

3) For the SDK you wish to access, expand the folders and files until you can see the function you wish to add. You can set some filters to hide unwanted content.



4) Simply drag and drop the macro/function call into your source file. The #include statement for the associated header file will be automatically added near the top of your source file.





Happy math coding with AMMCLib!