お客様の素早い設計とより早い製品化を実現する、技術情報と専門知識をご紹介します。
1
Out of the Box2
Get Software3
Plug It In4
Build and Loadサインイン 進行状況を保存するには アカウントをお持ちでない方 アカウントを作成する。
Something went wrong! Please try again.
Connector | Description |
---|---|
MATEnet Part No. 9-2305390-9 |
5-port 100BASE-T1 Ethernet connector. The RDB uses 4 ports as 100BASE-T1 Ethernet port |
Part No. 2311621-1 | DoIP Port, 100BASE-TX with 4 PINs used for TX/RX |
Part No. 2311622-1 |
8 x CAN/CAN FD channels: CAN0-CAN7 8 x 2 PINs |
Part No. 2329531-1 |
Used for power supply, LIN, UART, ADC, PWM, IO etc. 10 x 2 PINs |
Something went wrong! Please try again.
You will use the example projects from this reference design.
Something went wrong! Please try again.
MPC5748G-GW-RDBperforms better when using S32 Design Studio for Power Architecture®.
Note: Check the S32 Design Studio page for the latest version.
Something went wrong! Please try again.
MPC5748G-GW-RDBperforms better when using S32 Software Development Kit for Power Architecture.
Note: Check the S32 Design Studio page for the latest version.
Something went wrong! Please try again.
To set up your reference design board, watch the video or use the step-by-step guide, below.
Let’s take it for a test drive.
Jumper | Setting | Description |
---|---|---|
J3 | Leave open. | Power SBC configuration. |
J4 | 1-2 | Put the jumper on to enable SBC to reset MPC5748G. Refer to the schematics for more details. |
J5 | 1-2 |
Put the jumper on to set SBC into DEBUG mode. In this mode, SBC will work as a common power supplier. Check Power Management Integrated Circuits and System Basis Chips for more details. |
J12 | 1-2 | Put the jumper on to enable User Switch to reset MPC5748G |
J13 | Leave open. | This jumper can enable User Switch to reset S32K. Keep it open and do not use this Jumper. |
Something went wrong! Please try again.
Connect the MPC5748G-GW-CBL to the MPC5748G-GW-RDB.
Also connect your debugger (such as PE Multilink) to the JTAG port onboard and the computer.
Note: Keep J4
, J5
onboard jumpers and Remove
J3
J12
, J13
jumpers.
Connect power supply wires to the DC power supplier. Set the voltage at 12 V, current limit > 600 mA.
Note: Check the MPC5748G-GW-RDB schematic and cables schematic for details.
Something went wrong! Please try again.
Watch the video to create a new project in S32 Design Studio IDE and load a code example
or, use the step-by-step guide, below.
Launch the S32 Design for Power Architecture and select a default workspace or specify a new one. Then click OK.
Note: Uncheck the box “Use this as the default and do not ask again.”
Create a new project by selecting File > New > Project.
Choose a project name and then select a project type, then click Next. We recommend using Elf S32DS Project
for this one.
Select cores and parameter, then click Finish.
Make selections in FLASH and RAM Size, Language, Library and Debugger.
We recommend using defaults settings for now.
Three projects will be created for three different cores of MPC5748G.
Something went wrong! Please try again.
Follow one of these paths to build a new project:
The following message displays on the console once you have successfully built a project:
Something went wrong! Please try again.
Connect the PE micro debugger to both the board and PC.
Open the Debug Configuration options at the top menu.
Select Project to debug.
Select the Interface: USB Multilink, USB Multilink FX…
Select the Port: USB1-Multilink Universal Rev C…
and then Click Debug to start.
Something went wrong! Please try again.
Follow one of these paths to configure a project to debug from RAM:
Note: Follow the 4.2 Build a new project in IDE steps.
Finally, select the RAM-related session while debugging.
Note: Follow the 4.3 Debug a project in IDE steps.
Something went wrong! Please try again.
Launch S32 Design Studio for Power Architecture and open a new file:
The selected project will be copied to the active workspace.
Something went wrong! Please try again.
Select the project and click on Finish to import into the workspace.
Something went wrong! Please try again.
Download the latest version of our S32 Design Studio IDE for Power Architecture.
Go to the download folder. Run the installation file, the Preparing to install dialogue box will appear
When the installer wizard window is displayed, click Next
Selecting the S32 Design Studio only installs this software. To install more software, select Additionally install option.
We recommend you to entirely read the License Agreement
Once done, select the radio button accepting the agreement terms and click Next to continue
Choose either the default or new installation location, then click Next.
Note: Use a path without spaces for the installation location
Select a path to generate a shortcut of your choice and click Next.
Verify all settings in the Pre-installation Summary tab
If everything is accurate, click Install.
At some point during the installation, you will be prompted for the software activation code
To get your activation code, go to the Product Download page and select the License Keys tab.
Copy and paste the software activation code into the activation window, then select Online.
During installation, you need to download the P&E device drivers. Read the license agreement and click I agree.
Then select the destination folder and click Install. When the installation is complete, click Close.
You will see an Install Complete - Congratulations message in the installer wizard window once the S32 Design Studio for Power Architecture installation is complete.
Get the SDK RTM 1.0.0 update from the S32DS IDE for Power Architecture page.
Note: Skip this step if you already have our SDK RTM 1.0.0.
1. Launch S32DS and go to Help > Install New Software.
2. Click Add… in the Install wizard window to find the SDK which has been downloaded.
3. Click Local to add repositories in the Add Repository window. Then click OK.
4. Check the S32 Design Studio for Power Updates and then click Next.
5. Read all the license terms and click Finish.
We recommend you to entirely read the License Terms and click Finish to continue.
The SDK (RTM) installation will immediately start.
6. In Do you trust these certificates? check the checkbox and click OK.
Success
Once the installation is complete, restart your S32DS IDE.
Step, Run, Suspend, Resume and Terminate
Step Into (F5)
Step Over (F6)
Run
Suspend
Resume (F8)
Terminate (Ctrl + F2)
To View Variables:
Open the Variables tab.
Click on a value to allow typing in a different value.
To View and Alter Registers:
To see CPU registers, select the Registers tab.
Click on a value to allow typing in a different value.
To view peripheral registers in the EmbSysReg tab.
To View and Add Memory:
To add memory monitor, click the + icon and select Base Address (EXAMPLE: 0x0000fff8)
This allows you to view memory.
To Add Breakpoints:
Select and double click.
Note: The light blue dot shows the debugger breakpoint.
Go to File > New > New S32DS Project from Example to create a new S32 Design Studio project.
Then select the flexcan_mpc5748g
file from the MPC57xxRTM SDK v1.0.0 Example Projects folder.
The flexcan_mpc5748g
example project is suited to DEVKIT.
2.1 To modify the peripheral power supply: enable the peripheral power supply
Open pin_mux
component in Component Inspector to configure pin routing:
SIUL2 tab > GPIO 60
and GPIO 61
and then select the pin (one option) +
direction output.
2.2 To modify the CAN Phy enablement: configure the CAN4~7 Phy (TJA1043T) GPIO
2.3 To modify the CAN ports, go to Routing (collapsed) in in pin_mux
component, then select CAN.
Configure the ports according to the schematic.
2.4 To modify the CAN configuration:
Under the Components Library tab view, double-click flexcan
component to add it the project.
There is no need to change default configuration for CAN: standard CAN (no FD), minimum payload, 500 kbps
Once all CAN configurations are complete, click Generate code.
Open the main.c
file in text editor view.
Note: Refer to the can_mpc5748g
sample project to modify the main.c file. You can also replace it
directly.
The sending and receiving function of this project is realized separately, which needs to be controlled by macros.
Peripheral Power Supply:
CAN4~CAN7'S Phy (TJA1043T) Enable:
Sending data via CAN:
Note: Connect the CAN port that needs testing. Otherwise, it will wait for sending to complete.
Receiving data via CAN:
Note: Unlike CAN sending, you can test receiving on any port.
Make sure that there are no compilation errors, then click build project.
Select the correct debug configuration and interface to debug the application.
TEST: Sending data via CAN
CAN_SEND
, commented out CAN_RECEIVE
PEAK
(the test tools we use) through the wire.TEST: Receiving data via CAN
CAN_RECEIVE
, commented out CAN_SEND
CAN FD is configured similarly to CAN.
Check the Projects and Tutorials > Hands-on – CAN to learn how to modify the CAN configurations and the application code of
main.c
To change default configuration for CAN FD:
standard CAN_FD, maxmum payload
, Arbitration Phase
: 500 kbps,
Data Phase
: 2000 kbps
Sending data via CAN:
Receiving data via CAN:
TEST: Sending data via CAN FD
CAN_SEND
, commented out CAN_RECEIVE
PEAK
(the test tools we use) through the wireTEST: Receiving data via CAN
CAN_RECEIVE
, commented out CAN_SEND
Go to File > New > New S32DS Project from Example to create a new S32 Design Studio project.
Then select the lwip_mpc5748g
file from the MPC57xxRTM SDK v1.0.0 Example Projects folder.
The flexcan_mpc5748g
example project is suited to DEVKIT.
2.1 To modify and enable the peripheral power supply:
Open pin_mux
component in Component Inspector to configure pin routing:
SIUL2 tab > GPIO 60
and GPIO 61
and then select the pin (one option) +
direction output.
Add spi_pal
component in the Components Library tab, then double click the component to add it the project.
For the SPI configuration port, go to, Routing (Collapsed) in pin_mux
component, then select SPI.
Configure the ports according to the schematic.
SPI component configuration:
The tool for configuring SWITCH data structure is: sja1105_tools
Check the sample demo (the ENET0_MPC5748G
project) and copy the SwitchConfigure.c
file to
your project without any modification.
Note: Contact FAE to get the latest version of the sja1105_tools.
Go to Routing (Collapsed) in pin_mux
component, then select ENET.
Configure the ports according to the schematic.
ENET0: lwip middleware configuration
Peripheral power supply: [Project Name] > Source > main.c
To Modify the configuration of SPI to adaptation SJA1105 go to: [Project Name] > SDK > platform > pal > spi > src >
spi_pal.c
The default configuration of SPI`s CS pin cannot be maintained until the delivery is completed when the send function ( SPI_MasterTransferBlocking() ) is called.
In order to match the SWITCH, configure the dspiConfig.continuousPCS = true
Note: If you have a patch after updating the SDK, ignore this modification.
To add the initialization of the SWITCH, go to: [Project Name] > SDK > middleware > tcpip > tcpip_stack > demo > test.c
.
Add client application for lwip_tcp.
Check the sample demo (the ENET0_MPC5748G
project) and copy the tcpiptest.c
file to your
project without any modification.
Add client application call function under [Project Name] > SDK > middleware > tcpip > tcpip_stack > demo > test.c
Click the build project button, but make sure that there are no compilation errors.
Select the correct debug configuration and interface to debug the application.
TEST: Ping the board from PC:
TEST: LWIP_tcp Client:
ENET1 is configured similarly to ENET0.
Unlike the previous section, the Phy (DP83848) for MCA1 is directly connected.
Check the Projects and Tutorials > Hands-on – ENET0+SPI.
Resources:
To enable and modify the peripheral power supply:
Open pin_mux
component in Component Inspector to configure pin routing:
SIUL2 tab > GPIO 60
and GPIO 61
and then select the pin (one option) +
direction output.
Initialize the DoIP-Reset pin - Initialize to high level:
Enable the DoIP Phy`s power.
Go to Routing (Collapsed) in pin_mux
component, then select ENET.
Configure the ports according to the schematic:
ENET1: lwip middleware configuration:
For the peripheral power supply, go to: [Project Name] > Source > main.c
To fix a problem in the SDK, go to: [Project Name] > SDK > middleware > tcpip > tcpip_stack > ports > netif > enetif >
enetif.h
The SDK only implements the configuration for MAC0, and the code shown needs to be added to support MAC1.
Note: If you have a patch after updating the SDK, ignore this modification.
If there is an issue with the code generated for the ENET1 GPIO configuration:
Check the sample demo (the project of ENET1_MPC5748G
project) and copy the
Enet1IOConfigure.c
file to your project without any modification.
To add the client application for lwip_tcp.
Check the sample demo (the project of ENET0_MPC5748G
project) and copy the
tcpiptest.c
file to your project without any modification.
Add client application call function under [Project Name] > SDK > middleware > tcpip > tcpip_stack > demo > test.c
.
Click the build project button, but make sure there are no compilation errors.
Select the correct debug configuration and interface to debug the application.
Test: Ping the board from PC:
Test: LWIP_tcp Client:
Go to File > New > New S32DS Project from Example to create a new S32 Design Studio project.
Then select the uart_pal_mpc5748g
file from the MPC57xxRTM SDK v1.0.0 Example Projects folder.
To enable and modify the peripheral power supply:
Open pin_mux
component in Component Inspector to configure pin routing:
SIUL2 tab > GPIO 60
and GPIO 61
and then select the pin (one option) +
direction output.
Configure the UART port:
Configure UART properties:
Port printf library functions:
Check the UART_MPC5748G
project and copy the printf.c file to your project without any modification.
Click the build project button, but make sure there are no compilation errors.
Select the correct debug configuration and interface to debug the application.
Test: UART send and receive.
Resources: on-board user LIN ports (hardwired to GPIOs)
Go to File > New > New S32DS Project from Example to create a new S32 Design Studio project.
Then select the LIN_5748g
file from the MPC57xxRTM SDK v1.0.0 Example Projects folder.
Note: This demo is only available for the SDK version RTM2.0.0.
Make sure that your SDK has been upgraded to RTM2.0.0.
Import the example code within the SDK from File > New > New S32DS Project from Example.
Select the sdhc_fatfs_mpc5748g
file from the MPC57xxRTM SDK v2.0.0 Example Projects.
To modify the peripheral power supply, first enable it.
Open pin_mux
component in Component Inspector to configure pin routing:
SIUL2 tab > GPIO 60
and GPIO 61
and then select the pin (one option) +
direction output.
To configure the UART port:
To configure the uSDHC:
To fix a problem in the SDK, go to: [Project Name] > SDK > middleware > sdhc > sd > sd.c
Connect with other engineers and get expert advice on designing with the MPC5748G on one of our community sites.
Download the MPC5748G-GW-RDB Reference Design – Software Package
Get Your Integrated Development Environment (IDE)
Get Your Software Development Kit (SDK)
Create a New Project in IDE
Build a New Project in IDE
Debug a Project in IDE
Debug a Project from RAM
Make Projects from Built-In Examples
Import Projects into IDE