HOWTO: Working with AMMCLib SDKs

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

HOWTO: Working with AMMCLib SDKs

HOWTO: Working with AMMCLib SDKs

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.

pastedImage_1.png

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:

pastedImage_3.png

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

pastedImage_4.png

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.

pastedImage_1.png

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

pastedImage_1.png

b) Filter on 'SDK'

c) Select 'SDK Explorer'

pastedImage_2.png

d) Click OK

2) Quick Access method

a) Type 'SDK'

b) Select 'SDK Explorer'

pastedImage_3.png

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.

pastedImage_4.png

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.

pastedImage_5.png

pastedImage_6.png

Happy math coding with AMMCLib!

No ratings
Version history
Last update:
‎07-13-2018 02:42 PM
Updated by: