Summary of Contents for NXP Semiconductors S32K148
Page 1
S32K148 Telematics Box Reference Design Board CONTENTS: Get to know the S32K148 T-BOX Reference Design Board (RDB) S32K148 T-BOX RDB out-of-the-box setup Creating a new S32DS project for the S32K1xx MCU S32DS debugging basics Create a P&E debug configuration...
Page 2
23-pin ECU connector and also expends 1 CAN and 2 LIN bus Select TJA1044 with SO-8 and TJA1043 S32K148 T-BOX_GP-ECU RDB WITH ALL MODULES PLUGIN with HVSON14 package to compatible with Stinger Use a 23-pin ECU connector to route...
Page 3
Standby mode - Data sheet (REV 6) Audio Codec: SGTL5000 S32K148-T-BOX RBD SOFTWARE PACKAGE SGTL5000, Low Power Stereo Codec with The S32K148 T-BOX_GP-ECU RDB SW Headphone Amp - Data Sheet (REV 6.0) package is based on S32K SDK and 3-axi Accelerator: MMA8452Q is developed to accelerate customer’s...
Page 4
PINOUT MAPPING OF ARDUINO™ UNO HEADER PORT PORT PORT J17-28 PTE15 J17-29 PTB12 J17-30 PTD31 J17-25 PTE16 J17-26 PTB13 J17-27 PTD26 J17-22 VREFH J17-23 PTE11 J17-24 PTD25 J17-19 J17-20 PTE10 J17-21 PTC26 J17-16 PTB2 J17-17 PTB11 J17-18 PTC25 J17-13 PTB3 J17-14 PTB17 J17-15 PTC24...
Page 7
CANL0 pink CAN bus 0 differential signal- below photo. black 1.25 Signal ground It is not included in S32K148 T-BOX 100M-base TX1 automotive ENET_TRX_P green ethernet differential signal+, RDB, please contact NXP sales for purchase: 100M-base TX1 automotive...
Page 8
It’s connected between VDD and VDD_MCU, and is designed for 1-2 (Default) S32K148 MCU low-power static current measurement, for this case, R77 needs to be unmounted. The jumper connection schematic is as below, details can be found in the board schematic;...
Page 9
USING ETHERNET AND QSPI IMPORTANT OBSERVATION S32K148 shared PIN Configuration resistor Description The S32K148 is the only member of the PTD7 R161 (Default) ENET: MII_RMII_TXD1 family able to use ethernet and QuadSPI. R162 QuadSPI: QSPI_A_IO1 However, these interfaces are mutually...
Page 10
Out-of-the-Box Setup POWER UP THE BOARD AND S32K148 T-BOX RDB SETUP CONNECTION DEBUGGER CONNECTION The S32K148 T-BOX RDB powers from external +12V power supply via the USB Cable to PC 23-pin ECU connector with the wiring DC - 12 V harness.
Page 11
Use the BSP test project STEP 1: DOWNLOAD & INSTALL S32DS FOR ARM V2018.R1 AND S32K SDK RTM 2.0.0 Download S32DS for ARM v2018.R1 from the following link: http://www.nxp.com/S32DS – The download will require a NXP account login, user can register the account with any e-mail, and after download, you can install S32DS IDE with a 32-bit active code received by the e-mail when download ...
Page 12
STEP 2: IMPORT AND COMPILE THE BSP TEST PROJECT (2) Select archive file > Browse, browse and choose S32K148_Based_T_BOX_BSP_TestPrj_SDK_RTM2_0.zip, select the project > Finish: After importing the project, clean it at first: select the project in Project Explorer, then right-click, choose Clean Project:...
Page 13
STEP 2: IMPORT AND COMPILE THE BSP TEST PROJECT (3) Select the project in Project Explorer, then right-click, choose Build Project: The compile result is as below if no errors are found:...
Page 14
STEP 3: DOWNLOAD AND DEBUG THE BSP TEST PROJECT Select the project in Project Explorer, then right-click, choose Debug As > Debug Configuration: In the Debug Configuration window, select the GDB PEMicro Interface Debugging > S32K148_Based_T_BOX_BSP_TestPrj_ SDK_RTM2_0_Debug>Debugger>under Interface select right debugger, and ensure Port has the right part number, then in Additional Options, check Emergency Kinetis Device Recovery by Full Chip Erase and Use SWD protocol (if not check this option, it will use JTAG debug protocol), at last, click Debug to launch the debug(it will download the compile result—elf file in to the target MCU at first):...
Page 15
STEP 4: CONNECT THE UART CONSOLE FOR TEST RESULT OUTPUT DISPLAY The BSP test project use S32K148 LPUART2 to output the test result; Use a USB-to-UART adapter to connect the board with PC via J25-6(TXD), J25-7(RXD) and J25-12(GND): * For more details on the test results description and demo projects, please refer to the Software User Guide.
Page 16
– LIN stack based Single board LIN master and slave communication demo project – I S audio codec—SGTL500 demo project – T-BOX reference design project * For more details, please refer to the S32K148 T-BOX_GP-ECU RDB SW user guide and download the SW package...
Page 17
Create a New Project in S32 Design Studio CREATE NEW PROJECT: FIRST TIME – SELECT A WORKSPACE Start program: Click on “S32 Design Studio for ARM v1.0” icon Select workspace: – Choose default (see below example) or specify new one –...
Page 18
CREATE NEW PROJECT: S32DS PROJECT Project Name: – Example: FirstProject Project Type: – Select from inside executable or library folder Next Select Debugger Support and Library Support Click Finish...
Page 19
OPENSDA CONFIGURATION To Debug your project with OpenSDA, it is necessary to select the OpenSDA in the Debug Configuration. Select your project, and click on debug configuration Select the Debug configuration under GDB PEMicro Interface Debugging Click on Debugger tab ...
Page 20
Debug Basics DEBUG BASICS: STARTING THE DEBUGGER Debug configuration is only required once. Subsequent starting of debugger does not require those steps. Three options to start debugger: – If the “Debug Configuration” has not been closed, click on “Debug” button on bottom right –...
Page 21
DEBUG BASICS: VIEW & ALTER VARIABLES View variables in “Variables” tab. Click on a value to allow typing in a different value. DEBUG BASICS: VIEW AND ALTER REGISTERS View CPU registers in the “Registers” tab Click on a value to allow typing in a different value ...
Page 22
DEBUG BASICS: BREAKPOINTS Add Breakpoint: Point and Click Light blue dot represents debugger breakpoint DEBUG BASICS: RESET & TERMINATE DEBUG SESSION Reset program counter Terminate Ctl+F2()
Page 23
Create a P&E Debug Configuration (Optional) NEW P&E DEBUG CONFIGURATION Click in debug configurations Create a new P&E launch configuration Select S32K144 device Click Apply and debug your application...
Need help?
Do you have a question about the S32K148 and is the answer not in the manual?
Questions and answers