You are on page 1of 32

S32G-VNP-RDB2

SOFTWARE ENABLEMENT GUIDE

PUBLIC
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER W ORLD ARE TRADEMARKS OF NXP B.V.
ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RES PECTIVE OW NERS. © 2021 NXP B.V.
CONTENTS SOFTWARE ENABLEMENT GUIDE

• Prerequisites: Get S32G Software

• Install Software Development Tool

• Light Up RGB LED Based On Real Time Drivers

• Run Linux BSP On Cortex-A53 Core

PUBLIC 1
PRE: Get S32G Software

PUBLIC
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER W ORLD ARE TRADEMARKS OF NXP B.V.
ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RES PECTIVE OW NERS. © 2021 NXP B.V. 2 PUBLIC 2
P R E R E Q U I S I T E S : G E T S 3 2 G S O F T WA R E

• Please go to: S32G Processors for Vehicle


Networking and use your NXP account to Please firstly download the below software for enablement
sign in.
Production Install Packages
S32 Design Studio for S32 SW32G2_S32DS_3.4.0_D2012.zip
Platform S32DS.3.4_b201217_win32.x86_64.exe
S32G2 - Real Time Drivers S32_RTD_4.4_1.0.0_HF01_D2102_DS_Updatesite.zip
binaries_auto_linux_bsp28.0_s32g274_pfe.tgz
S32G2 - Linux BSP*
S32G274_LinuxBSP28.0.0_User_Manual.pdf

*: User can download the BSP28 or the newer Linux BSP version

PUBLIC 3
Install Software Development Tool

PUBLIC
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER W ORLD ARE TRADEMARKS OF NXP B.V.
ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RES PECTIVE OW NERS. © 2021 NXP B.V. 4 PUBLIC 4
S T E P 1 : I N S TA L L S 3 2 D E S I G N S T U D I O 3 . 4

• Download installation package for your machine • Click .exe file to start installation

1 3

• Click “Next” to step by step install. Input the Activation


code got in step3 when necessary and click on “Online”

• Click on "License Keys” to get Activation Code

4
2

PUBLIC 5
S T E P 2 : I N S TA L L D E V E L O P M E N T PAC K A G E S F O R S 3 2 G 2

• Download S32G2 development packages • Add update package of S32DS


a. Click on “Add” button ”
b. Click on “Archive” button in Add Site dialog
1 c. Select SW32G2_S32DS_3.4.0_D2012.zip file and click on “open”
d. Click on “Add” button in Add Site dialog

b
• Open S32DS 3.4 and select a directory as
workspace and click “Install New Software …” option d
on help menu
3

PUBLIC 6
S T E P 2 : I N S TA L L U P D AT E W I T H S U P P O R T F O R S 3 2 G 2
• Select the two package and click on ”Next>” button • Click on ”Next>” button

PUBLIC 7
S T E P 3 : I N S TA L L S 3 2 G 2 R E AL - T I M E D R I V E R S
• Add update package of S32DS
• Click on “S32G2 Real Time Drivers 4.4 Version 1.0.0 HF01” a. Click on “Add…”
b. Click on “Archive” button in Add Repository dialog
1 c. Select S32_RTD_4.4_1.0.0_HF01_D2102_DS_Updatesite.zip file
and click on “open”
• Download S32_RTD_4.4_1.0.0_HF01_D2102_DS_Updatesite.zip
package d. Click on ”ok” to go back “Available Software” dialog

a
2

b
• Open S32DS 3.4 and select a directory as d
workspace and click “Install New Software …” option
on help menu 4

c
PUBLIC 8
S T E P 3 : I N S TA L L S 3 2 G 2 R E AL - T I M E D R I V E R S
• Check the “RTD S32CC” box and click on “Next” to • Click on ”Next>” button
install step by step

PUBLIC 9
Light Up RGB LED Based On Real Time Drivers

PUBLIC
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER W ORLD ARE TRADEMARKS OF NXP B.V.
ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RES PECTIVE OW NERS. © 2021 NXP B.V. 10 PUBLIC 10
L I G H T U P R G B L E D : H AR D WA R E R E S O U R C E S

• Resources to be used: on-board RGB LED

• An RGB LED is a combination of three LED in


one package: 1x Blue LED, 1x Red LED and 1x
U128 Green LED.
• Because the LEDs are very close to each other,
our eyes see the result of the combination of
colors, rather than the three colors individually.

PUBLIC 11
L I G H T U P R G B L E D : C R E AT E P R O J E C T

• Create a new S32DS Application Project • Select required core and SDKs
a. Check only Cortex-M7_0 core
1 b. Check ‘RTD_CD01…’ as SDKs and click on “ok”
c. Click on “Finish” to complete configuration
• Input project name and select S32G274A_REV2_Cortex-
M7 as Processors, then click on “Next”
3

2 a

PUBLIC 12
L I G H T U P R G B L E D : P I N S C O N F I G U R AT I O N

• Select the created project and open pins tool • Configure the corresponding gpio pins according to
page 12.
a. Click on “SIU2_0”
b. Check gpio, 6 box
c. Click on “Output” and ok to complete one pin configuration
d. Follow b and c to configure gpio 7, 95, then click on “Done”

a b
• Select peripheral Signals page and find out
SIUL2_0 box
3
c

PUBLIC 13
L I G H T U P R G B L E D : AD D G P I O D R I V E R S

• Select the created project and open peripherals tool • Add gpio dio driver
a. Click on “+” option
b. Select “Siul2_Dio” and click on “ok”

a b
1

3
• Select Components to find out Drivers option

PUBLIC 14
LIGHT UP RGB LED: CHECK CONFIGURATION AND UPDATE CODE
• open pins tool to check configuration • Check the “Pins” and “Peripherals” box and click on
“ok” to start update code, uncheck the other boxes

• open Peripherals tool to check configuration

2 4

• Click on “Update Code”

PUBLIC 15
L I G H T U P R G B L E D : AP P L I C AT I O N C O D E

• Initialize clocks
• Add header files of project configuration and module
drivers in main.c file
1

PUBLIC 16
L I G H T U P R G B L E D : AP P L I C AT I O N C O D E

• Initialize pins • Add the implementation of lighting up LED

3
4

PUBLIC 17
L I G H T U P R G B L E D : B U I L D P R O J E C T AN D G E N E R AT E . B I N F I L E

• Open and modify the link file according to the noted • Open the properties of project
information which is from reference manual of S32G

3
1

• Check the “Create flash image” box and click on “OK”

• Select and build project, .elf file will be generated

PUBLIC 18
L I G H T U P R G B L E D : B U I L D P R O J E C T AN D G E N E R AT E . B I N F I L E
• Re-open the properties of project, select “Raw • The .bin file has been generated
binary” as output file format and click on “OK”

• Re-build the project

6 PUBLIC 19
L I G H T U P R G B L E D : M AK E I M A G E B Y I V T T O O L

• Select the created project and open IVT tool • Set Self-Test DCD, DCD and HSE to be reserved

3
• Select M7_0 as Boot Target and select
SD/MMC/eMMC as Boot device type

PUBLIC 20
L I G H T U P R G B L E D : M AK E I M A G E B Y I V T T O O L

• Configure Application Boot Image according to .ld file and .map file Click browse to select .bin files generated from
Page 20

Set the backup to be reserved

PUBLIC 21
L I G H T U P R G B L E D : M AK E I M A G E B Y I V T T O O L

• Export and save image as any name • Click on “Align” to resolve error

10

• Click on “Export Blob Image” to generate and save


final image as any name

11
9
8 12

PUBLIC 22
L I G H T U P R G B L E D : D O W N L O A D I M A G E I N T O S D C AR D

1. Install and Run Cygwin as administrator. 4. Erase the sub-partition info on the SD card
dd if=/dev/zero of=/dev/sdb bs=512 count=1 && sync

2. Before inserting SD card into the slot, run “cat


/proc/partitions” cmd and note the current devices.

5. Run “cd path of bin file” cmd to find out image generated
in page 26, download image into the SD card
dd if=RGB_LED_M7_0_SD.bin of=/dev/sdb bs=1M count=4 && sync

3. After inserting SD card into the slot, run “cat


/proc/partitions” cmd again and find out the SD card
descriptor
Note:
If the following prompt appears, please follow the steps below

①Take out the SD card and insert it again


②Execute dd if=/dev/zero of=/dev/sdb bs=512 count=1 && sync
③Take out the SD card and insert it again
④Burn the image to the SD card

PUBLIC 23
L I G H T U P R G B L E D : S E T R D B 2 AN D R U N AP P L I C AT I O N

• Set SW3, 4, 9,10 to select SD card boot mode and • Power on RDB2, the RGB LED (U128) will be lighted
set SW11 into “ON” to connect RGB LED with in white color
S32G pin(Refer to Quick Start Guide to find out
the corresponding switch)

Part Reference Number Setting

SW3 ON

SW4 7-ON, Other-OFF

SW9 1-OFF, 2-OFF


(U128)
SW10 1-ON, 2-OFF

SW11 ON

PUBLIC 24
RUN Linux BSP On Cortex-A53 Cores

PUBLIC
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER W ORLD ARE TRADEMARKS OF NXP B.V.
ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RES PECTIVE OW NERS. © 2021 NXP B.V. 25 PUBLIC 25
S T E P 1 : D O W N L O A D L I N U X B S P F R O M S O F T WA R E C E N T E R

• Download the file which included PFE

Note: If need more information for building BSP, refer to S32G274_Linux_BSP_28.0.0_User_Manual.pdf

PUBLIC 26
S T E P 1 : D O W N L O A D L I N U X B S P F R O M S O F T WA R E C E N T R E

• Unzip and untar the download file by 7-zip • Find the .sdcard file in the s32g274ardb2 folder

Note: The .sdcard file can be loaded into SD or eMMC. Refer


to next step to know loading image

PUBLIC 27
S T E P 2 : D O W N L O A D B S P I M A G E I N T O S D C AR D

1. Install and Run Cygwin as administrator 5. Burn all contents of the BSP image but the first four
mega bytes into the SD card
2. Before inserting SD card into the slot, run “cat dd if=fsl-image-auto-s32g274ardb2.sdcard of=/dev/sdb bs=1M skip=4
/proc/partitions” cmd and note the current seek=4 && sync
devices.

6. Burn the first four mega bytes of the BSP image into the
SD card
3. After inserting SD card into the slot, run cat dd if=fsl-image-auto-s32g274ardb2.sdcard of=/dev/sdb bs=1M count=4
/proc/partitions again and find out the SD card && sync
descriptor

Note:
If the following prompt appears, please follow the steps below

4. Erase the sub-partition info on the SD card


dd if=/dev/zero of=/dev/sdb bs=512 count=1 && sync ①Take out the SD card and insert it again
②Execute dd if=/dev/zero of=/dev/sdb bs=512 count=1 && sync
③Take out the SD card and insert it again
④Burn the image to the SD card

PUBLIC 28
STEP 3: SELECT BOOT MODE OF RDB2

• Set RDB2 to SD card boot mode

Part Reference Number Setting

SW3 ON

SW4 7-ON, Other-OFF

SW9 1-OFF, 2-OFF

SW10 1-ON, 2-OFF

PUBLIC 29
STEP 4: RUN LINUX BSP

• Connect UART cable to UART0. Then • Power up the S32G-VNP-RDB2 and view print
open serial terminal and configure message in serial terminal
COM port

PUBLIC 30
NXP, THE NXP LOGO AND NXP SECURE CONNECTIONS FOR A SMARTER WORLD ARE TRADEMARKS OF NXP B.V. ALL OTHER PRODUCT OR SERVICE NAMES ARE THE PROPERTY OF THEIR RESPECTIVE OWNERS. © 2021 NXP B.V.

You might also like