HOWTO: Working with FreeMASTER SDKs

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

HOWTO: Working with FreeMASTER SDKs

HOWTO: Working with FreeMASTER SDKs

The FreeMASTER serial communication driver is a piece of code that enables an embedded application to communicate with the FreeMASTER PC application.

Please note: The FreeMASTER_S32xx does not support all Toolchains and not all versions of supported Toolchains. The available SDKs will vary depending upon the toolchain which is selected. It is independent of the S32/MPC SDKs. In most cases, it is not integrated with the S32/MPC SDKs, although this could change in the future.

When creating a new S32DS Application Project, you may have noticed the FreeMASTER_S32xx SDK option in the Select SDK menu.

pastedImage_1.png

To add the FreeMASTER 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_2.png

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

pastedImage_3.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 '+', making it disappear.

It should also be noted that there exists example projects which demonstrate usage of the FreeMASTER serial communication driver, though these do not use the FreeMASTER SDK, the driver was added manually.

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 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_6.png

pastedImage_7.png

Happy FreeMASTER serial communicating!

Labels (2)
Tags (1)
Comments

Hi Mike, 

Thanks a lot for the introduction of FreeMaster. 

I tried to add the freemaster component in my current project with s32K142 processor. but i can't finde the freemaster sdk in project properties window. see pic below. It seems that the freemaster ist not supported for S32K142 but i can still find a example names freemaster_s32k142 under new project from example. 

could you please help me to figure out how can i add this component in my owm project ? 

Regards 

Baoyuan  

freemaster.PNG

Hello bgong@borgwarner.com,

As you have discovered. the S32K142 is not supported by the FreeMaster_s32xx SDK. This means that it will be necessary to integrate the FreeMaster Serial Commuication Driver manually. This is what the example 'freemaster_s32k142 demonstrates. It shows you an example of an application project with the driver integration completed and functional.

You already have all of the files you need, they are located in the following directories:

C:\NXP\S32DS_ARM_v2018.R1\S32DS\FreeMASTER_Serial_Communication_Driver_V2_0\src_common

C:\NXP\S32DS_ARM_v2018.R1\S32DS\FreeMASTER_Serial_Communication_Driver_V2_0\src_platforms\S32xx

You should also see the application note on FreeMASTER Serial Driver Usage: https://www.nxp.com/docs/en/application-note/AN4752.pdf 

Hope it helps,

Mike

No ratings
Version history
Last update:
‎07-19-2018 02:21 PM
Updated by: