The S32K148 evaluation board is the only member of its family able to use Ethernet and QuadSPI. However, these interfaces are mutually exclusive so only one of them can be used at a
time. In order to use either Ethernet or QuadSPI, you must follow a specific resistor configuration. The default configuration of the board is to be used for Ethernet communication.
Using Ethernet on the S32K148EVB
Different from the rest of the devices on the S32K1xx family, the S32K148 has the ENET module, which offers the possibility to use Ethernet communication protocol. This enables this
device for applications such as small Gateway (LIN-CAN-ETHERNET) or Audio Amplifier.
The software development kit (SDK) for the S32K1xx devices offers a middleware Ethernet stack (LwIP), that allows the user to develop applications faster.
There is no Ethernet PHY on the board. In order to use ENET, you must get
S32K148EVB-KIT, including both S32K148EVB-Q176 with ADTJA1101-RMII
Ethernet Adapter in order to use ENET, as there is no Ethernet PHY on the board.
The TCP/IP ENET example is available in the S32K1xx SDK only in version EAR 0.8.6 and higher.
In order to get the example working, you need:
- S32K148EVB-KIT = S32K148EVB + ADTJA1101-RMII
Media converter: automotive Ethernet to 10/100
- SDK version "S32K_SDK_EAR_0.8.6" or higher
Any program able to set up a TCP client, like
Before trying the example, change the IP of your computer to a static IP address. To do this, go to the network adapter settings of the computer, right click the local area network and
Select the option Internet Protocol Version 4 (TCP/IPv4) and click Properties.
The SDK example assigns an IP value of
192.168.0.200 to the S32K148.
The computer must have an IP in the same network. Fill out the values and click OK.
Once the PC setup is done, import the SDK example into the S32DS.
Go to File > Create new project from example option:
Compile the example and download it to the S32K148 EVB with the ADTJA1101-RMII connected.
The media converter should also be connected between the board and the computer:
Once you have everything connected, run the example. It should not have any issue. There are two ways to verify that the example is correctly running:
Ping the board. using the windows command of the windows console.
Use the command ping
192.168.0.200 and the board should answer:
Use the SocketTest program to echo the board at a TCP level.
Open the SocketTest (or the TCP client program you are using), using IP address:
192.168.0.200 and Port:
The connection should be established without any issue.
Once the computer is connected with the S32K148, you can send any message and the S32K148 will make an echo of anything you send.