How to use FreeMaster SDKs in S32K3 RTD 0.9.0

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

How to use FreeMaster SDKs in S32K3 RTD 0.9.0

How to use FreeMaster SDKs in S32K3 RTD 0.9.0

Some customers inquire how to use FreeMASTER with S32K3. But there is no exists example projects which demonstrate usage of the FreeMASTER serial communication driver in S32K3 Real Time Drivers at the moment.

So this article will introduce how to use FreeMaster SDKs in S32K3 RTD 0.9.0.

  1. Download S32DS \ S32K3 Development Package \ RTD (SDK) \ FreeMASTER Driver

    Login your account on NXP website, and download the S32K3 Standard software from TOOLS &SOFTWARE of S32K3 webpage.

    If you have already installed the S32DS3.4 \ S32K3 Development Package 3.4.0 \ RTD 0.9.0, then you can skip the following part and start directly from 4.Install FreeMASTER Driver 3.0 for S32K3

    S32K3 Standard Software.png

    Download S32DS  S32K3 Development Package  RTD FreeMASTER Driver.png

  2. Install S32K3 Development Package 3.4.0

    After install the S32 Design Studio v3.4, we should install S32K3 Development Package 3.4.0(SW32K3_S32DS_3.4.0_D2012.zip):

    go to menu "Help" -> "Install New Software" and click on "Add..." button

    Add Repository.png

    Here we uncheck S32 Design Studio S32K3 SDK (RTD S32K3 0.8.1), because we will install the newer version S32K3 RTD 0.9.0 later.

    Install New Software SW32K3_S32DS_3.4.0_D2012.png
  3. Install S32K3 Real Time Drivers Version 0.9.0

    S32K3 Real Time Drivers Version 0.9.0 can be installed by refer the Offline Package Installation Setup of S32DS Extensions & Updates: Explanation and How To Use.

    Offline Package Installation Setup S32K3 Real Time Drivers Version 0.9.0.pngS32K3 RTD AUROSAR 4.4 Version 0.9.0 selected.png
  4. Install FreeMASTER Driver 3.0 for S32K3Offline Package Installation Setup FreeMASTER Driver 3.0 for S32K3.pngFreeMASTER Driver 3.0 for S32K3 selected RTD090.png

  5. Attach FreeMASTER_S32K3 to S32K344_UART_Printf_Sample_090_34

    The reason for choosing the S32K344_UART_Printf_Sample_090_34 project to demonstrate the combination of FreeMaster SDKs is that the project has already configured the LPUART of the S32K3X4EVB-Q257 development board.

    S32K3_EVB defined symbols.pngAttach FreeMASTER_S32K3.png
  6. Select LPUART peripheral as host communication

    Through the description in the Requirements and Release Description chapter of FreeMASTER Driver Release Notes(FMSTRS32K3RN), we can see that currently only UART interface is supported.

    The S32K3 FreeMASTER 3.0 version 1.0.0 only support NXP GCC 6.3 or 9.2 for ARM at the moment, but the latest S32K3 Real Time Drivers Version 1.0.0 is based on NXP GCC 10.2.0. This is the reason why RTD 0.9.0 is selected in this article. 

    Requirements and Release Description FMSTRS32K3RN.png

    The README.txt also shows that: Current package provides FreeMASTER Communication Driver support for S32K344 over LPUART module

    README include_freemaster.png 

    LPUART13 is selected in this project for S32K3X4EVB-Q257, so we need to define the base address for FreeMASTER:

    #define FMSTR_LPUART_BASE           0x404A0000

    define FMSTR_LPUART_BASE.pngModify the main function according to the README.txt:main.png
  7. Connect FreeMASTER3.1 to S32K3X4EVB-Q257 board

    Here we can see that the FreeMASTER3.1 is connected to S32K3X4EVB-Q257 board.

    connected.png

 

Attachments
No ratings
Version history
Last update:
‎10-25-2021 08:35 PM
Updated by: