NXP Semiconductors S32K142 Quick Start Manual

NXP Semiconductors S32K142 Quick Start Manual

Hide thumbs Also See for S32K142:

Advertisement

S32K142 EVB
QUICK START GUDE
REV3
APPLIES FOR: S32K142 EVB (SCH_29701 REV D/C)
EXTERNAL USE

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S32K142 and is the answer not in the manual?

Questions and answers

Summary of Contents for NXP Semiconductors S32K142

  • Page 1 S32K142 EVB QUICK START GUDE REV3 APPLIES FOR: S32K142 EVB (SCH_29701 REV D/C) EXTERNAL USE...
  • Page 2 Contents: Get to Know S32K142 EVB • Out of the Box Setup • Introduction to OpenSDA • Creating a new S32DS project for S32K142: • − Download − Create a project − Create a project from SDK example S32DS Debug basics •...
  • Page 3 Get to know S32K142-EVB CAN Communication Bus LIN Communication Bus OpenSDA USB SBC UJA1169 Reset Button External Power Supply (5-12V) OpenSDA MCU OpenSDA JTAG J2 Header J3 Header J14 SWD connector J1 Header J4 Header S32K142 MCU J6 Header J5 Header...
  • Page 4 Features: S32K142 EVB • Supports S32K142 and S32K144 100LQFP • Small form factor size supports up to 6” x 4” • Arduino™ UNO footprint-compatible with expansion “shield” support • Integrated open-standard serial and debug adapter (OpenSDA) with support for several industry-standard debug interfaces •...
  • Page 5 Header/Pinout Mapping for S32K142 PORT FUNCTION PORT FUNCTION PORT FUNCTION PORT FUNCTION J2-19 PTE10/PTA3 D15/I2C_SDA J2-20 GPIO J3-02 PTB6* GPIO J3-01 J2-17 PTE11/PTA2 D14/I2C_CLK J2-18 GPIO J3-04 PTB7* GPIO J3-03 IOREF J2-15 ANALOGUE REF J2-16 PTA14 GPIO J3-06 PTE0 GPIO...
  • Page 6: Jumper Settings

    Reset signal to OpenSDA, use to enter into OpenSDA Bootloader mode Reset signal direct to the MCU, use to reset 2-3 (Default) S32K142. J107 S32K142 powered by 12V power source. 2-3 (Default) S32K142 powered by USB micro connector. 2-3 (Default) MCU voltage 5v MCU voltage 3.3v...
  • Page 7: Hmi Mapping

    HMI mapping Component S32K142 Red LED PTD15 (FTM0 CH0) Blue LED PTD0(FTM0 CH2) Green LED PTD16(FTM0 CH1) Potentiometer PTC14 (ADC0_SE12) PTC12 PTC13 OpenSDA UART TX PTC7(LPUART1_TX) OpenSDA UART RX PTC6(LPUART1_RX) CAN TX PTE5(CAN0_TX) CAN RX PTE4 (CAN0_RX) LIN TX PTC3(LPUART0_TX)
  • Page 8 S32K142 EVB RevC. LIN Phy errata. Errata: the LIN phy on S32K142EVB is connected to S32K142’s pins 32/31 which don’t support • LPUART. Workaround: Connect MCU’s pin 29 to LIN Phy’s LIN_TX trace and MCU’s pin 30 to LIN Phy’s •...
  • Page 9 S32K142 EVB OUT OF THE BOX EXTERNAL USE...
  • Page 10 Step 1: Power up the Board – EVB Power Supplies The S32K142-EVB evaluation board powers from a USB • or external 12V power supply. By default USB power is enabled with J107 (check slide 5) Connect the USB cable to a PC using supplied USB •...
  • Page 11 Step 1: Power up the Board – Is it powered on correctly? When powered through USB, LEDs D2 and D3 should light green • Once the board is recognized, it should appear as a mass storage • device in your PC with the name EVB-S32K142. EXTERNAL USE...
  • Page 12 Step 1: Power up the Board – Is it powered on correctly? Board is preloaded with a software, in • which the red, blue and green leds will toggle at different rates. EXTERNAL USE...
  • Page 13: Introduction To Opensda

    INTRODUCTION TO OPENSDA EXTERNAL USE...
  • Page 14 OpenSDA software includes a flash-resident USB mass-storage device (MSD) bootloader and a collection of OpenSDA Applications. S32K142 EVB comes with the MSD Flash Programmer OpenSDA Application preinstalled. Follow these instructions to run the OpenSDA Bootloader and update or change the installed OpenSDA Application.
  • Page 15 The MSD Flash Programmer is a composite USB application that provides a virtual serial port and an easy and convenient way to program applications into the S32K142 MCU. It emulates a FAT file system, appearing as a removable drive in the host file system with a volume label of EVB-S32K142.
  • Page 16: Installing S32Ds

    INSTALLING S32DS EXTERNAL USE...
  • Page 17: Download S32Ds

    Download S32DS Download S32DS from: S32DS for ARM EXTERNAL USE...
  • Page 18: Create A New Project In S32 Design Studio

    CREATE A NEW PROJECT IN S32 DESIGN STUDIO EXTERNAL USE...
  • Page 19: Create New Project: First Time - Select A Workspace

    Create New Project: First Time – Select a Workspace Start program: Click on “S32 Design Studio for ARM v2.0” icon • Select workspace: • − Choose default (see below example) or specify new one − Suggestion: Uncheck the box “Use this as the default and do not ask again” −...
  • Page 20: Create New Project: Top Menu Selection

    Create New Project: Top Menu Selection File – New –Project • EXTERNAL USE...
  • Page 21: Create New Project: S32Ds Project

    Create New Project: S32DS Project Project Name: • − Example: FirstProject Project Type: • − Select from inside executable or library folder Next • EXTERNAL USE...
  • Page 22 Create New Project: S32DS Project Select Debugger Support and Library Support • Click Finish • EXTERNAL USE...
  • Page 23: Opensda Configuration

    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 • EXTERNAL USE...
  • Page 24 OpenSDA Configuration Select the Debug configuration under GDB PEMicro Interface Debugging • Click on Debugger tab • EXTERNAL USE...
  • Page 25 OpenSDA Configuration Select OpenSDA as the interface, if your board is plugged should appear in the • Port field. Click Apply and debug to finish. • EXTERNAL USE...
  • Page 26 CREATE AN EXAMPLE FROM SDK EXTERNAL USE...
  • Page 27 Creating example from SDK The S32 Design Studio IDE already includes the Software Development Kit for • quickly develop applications on S32K1xx devices. To create a project using an example go to File – New –Project • EXTERNAL USE...
  • Page 28 Creating example from SDK Go to the S32K14x EAR SDK v0.8.6 Example Projects section and select the • example that wants to be used. In this example the hello_world is selected • EXTERNAL USE...
  • Page 29 Creating example from SDK A new project would be created in the workspace. Then click on generate code icon and then on • debug, as indicated. If run correctly, the LED should start blinking red and green. • EXTERNAL USE...
  • Page 30 Creating example from SDK The complete documentation of the SDK can be found in: • C:\NXP\S32DS_ARM_v2018.R1\S32DS\S32SDK_S32K14x_EAR_0.8. 6\doc\Start_here.html For more information about the use of the SDK go click on the following • link for an SDK tranining (add hyperlink once if is online) EXTERNAL USE...
  • Page 31: Debug Basics

    DEBUG BASICS EXTERNAL USE...
  • Page 32: Debug Basics: Starting The Debugger

    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 33: Debug Basics: Step, Run, Suspend, Resume

    Debug Basics: Step, Run, Suspend, Resume Step Into (F5) • Step Over (F6) • Step Return (F7) • • Suspend • Resume (F8) • EXTERNAL USE...
  • Page 34 Debug Basics: View & Alter Variables View variables in “Variables” tab. • Click on a value to allow typing in a different value. • EXTERNAL USE...
  • Page 35 Debug Basics: View & Alter Registers View CPU registers in the “Registers” tab • Click on a value to allow typing in a different value • View peripheral registers in the EmbSys Registers tab • EXTERNAL USE...
  • Page 36 Debug Basics: View & Alter Memory Add Memory Monitor • Select Base Address • to Start at : 40000000 View Memory • EXTERNAL USE...
  • Page 37: Debug Basics: Breakpoints

    Debug Basics: Breakpoints Add Breakpoint: Point and Click light blue dot represents debugger breakpoint • EXTERNAL USE...
  • Page 38 Debug Basics: Reset & Terminate Debug Session Reset program counter • Terminate Ctl+F2() • EXTERNAL USE...
  • Page 39 CREATE A P&E DEBUG CONFIGURATION (OPTIONAL) EXTERNAL USE...
  • Page 40 New P&E debug configuration Click in debug configurations • EXTERNAL USE...
  • Page 41 New P&E debug configuration Create a new P&E launch configuration • Click on the debugger tab. Click to create a new P&E launch EXTERNAL USE...
  • Page 42 New P&E debug configuration • Select the device Select device • Click Apply and debug your application EXTERNAL USE...
  • Page 43: Useful Links

    USEFUL LINKS EXTERNAL USE...
  • Page 44 Useful Links • Cookbook application note. This application note contains a bunch of simple examples of how to use different peripherals. • S32K1xx community. Visit this site for request support on the S32K1xx products, you can also look for threads that may contain the answer that you are looking for.

Table of Contents