Professional Documents
Culture Documents
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
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
*: 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
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
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
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
2 4
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
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
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”
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
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
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
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
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)
SW3 ON
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
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
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
PUBLIC 28
STEP 3: SELECT BOOT MODE OF RDB2
SW3 ON
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.