DEVKIT-MPC5748G QUICK START GUIDE (QSG) Ultra-Reliable MCUs for Industrial and Automotive Applications www.nxp.com/DEVKIT-MPC5748G EXTERNAL USE Contents * * * Quick Start Package Overview Step-by-Step Installation Instructions Hardware: DEVKIT-MPC5748G Board - Features - Overview - Pinout, * Jumper and Peripherals Settings Software: - Software Development Tools - Pre-compiled Code Examples * * * * 1 Documentation MPC574xG/C/B/D Family : Phantom Feature Differences OpenSDA Recommendations EXTERNAL USE Quick Start Package Overview Board: DEVKIT-MPC5748G Low cost EVB with MPC5748G(176 LQFP-EP) Auto quality MCU on board Documents: Name Description Quick Start Guide(QSG) Detailed description on availability of Hardware, Software and Documents to quick start with MPC5748G project (this document) Software Integration Guide(SWIG) Detailed walk through on how to install and use S32 Design Studio IDE for Power Architecture Application Notes Detailed documents covering topics from `how to design hardware' to `how to write software' Fact Sheets, Reference Manuals and Data Sheets Detailed manuals for MPC5748G family of MCU and DEVKIT-MPC5748G board Downloads: 2 Name Description Integrated Development Environment (IDE) Eclipse based S32DS IDE with free GCC compiler and Debugger support DEVKIT-MPC5748G Quick Start Package All in one package: Software examples and supporting documents for getting started DEVKIT-MPC5748G Schematics PDF schematic files for the DEVKIT-MPC5748G board DEVKIT-MPC5748G PCB Design Package Gerber files and Bill of Material EXTERNAL USE Step-by-Step Installation Instructions In this quick start guide, you will learn how to set up the DEVKIT-MPC5748G board and run the default program. Install Software and Tools 1 Install S32 Design Studio IDE for Power Architecture. S32 Design Studio for Power See Software Installation Guide (SWIG) for detailed procedure Connect the USB Cable 2 Connect one end of the USB cable to the PC and the other end to the micro-B connector on the DEVKIT-MPC5748G board. Allow the PC to automatically configure the USB drivers. Observe the Default Program reaction 3 The pre-loaded example project utilizes the DEVKIT-MPC5748G user push button (SW2) and the user LEDs. Once the board is plugged in, LEDs will blink in default pattern. Press push button to switch between the two different patterns. Use Potentiometer to change blinking speed. (Clock is configured to PLL running at 160 MHz) Learn More About the DEVKIT-MPC5748G 3 1 J11 3 EXTERNAL USE Jumper Setting: 2-3: USB powered 5V Supply, through OpenSDA interface 4 Read release notes and documentation on the nxp.com/DEVKIT-MPC5748G nxp.com/MPC5748G DEVKIT-MPC5748G Board : Features * MPC5748G has 2 x 160 MHz Power Architecture(R) e200Z4 Dual issue cores and 1 x 80 MHz Power Architecture(R) e200Z2 Single issue core * MPC5748G qualified to AEC-Q100 Grade 1 and ambient temperature of 40 to +125 C * ArduinoTM UNO R3 footprint-compatible with expansion "shield" support * Integrated Open-standard Serial and Debug Adapter (OpenSDA) with support for several industry-standard debug interfaces as well as JTAG connector * Easy access to the MCU I/O header pins for prototyping * On-chip connectivity for Ethernet, FlexRay, USB, CAN, LIN, UART/SCI and SPI * Potentiometer for precise voltage and analog measurement * 8 user LED * 2 user push-button switches * Flexible power supply options * micro-B USB * 12V External power supply * Similar hardware across ARM(R), S12 and Power Architecture(R) architecture based MCUs * DEVKIT-COMM shield boards for extended 4 CAN and 6 LIN ports 4 EXTERNAL USE * * Box includes: - DEVKIT-MPC5748G Board - USB Cable Downloads includes: - Quick Start Package - S32 Design Studio IDE - Application notes DEVKIT-MPC5748G Board : Overview OpenSDA micro-USB The DEVKIT-MPC5748G is an ultra-low-cost development platform for MPC5748G Microcontrollers. Features include easy access to all MCU I/Os, a standard-based form factor compatible with the ArduinoTM pin layout, providing a broad range of expansion board options, and a USB serial port interface for connection to the IDE. The board has option to be powered via USB or an external power supply. JTAG NXP Microcontroller OpenSDA MCU MPC5748G (176 LQFP-EP) Reset Button OpenSDA MCU Boot Entry Button LIN Bus User Switch 2 FlexRay USB Ethernet Potentiometer CAN Bus User Switch 4 J13 12V External Power Supply JTAG MPC5748G 5 EXTERNAL USE J4 J2 J3 OpenSDA MCU J14 J12 User LEDs DEVKIT-MPC5748G Board : Pinout 1 of 3 J3 FUNCTION J3 PORT PIN PIN PORT SCL1 PI1 J3-19 J3-20 PG9 SDA1 PI0 J3-17 J3-18 PG8 NC J3-15 J3-16 PG7 GND J3-13 J3-14 PG6 SCLK_4 PF2 J3-11 J3-12 PI7 SIN_4 PF1 J3-09 J3-10 PI6 SOUT_4 PF0 J3-07 J3-08 PA15 SS_4 PF3 J3-05 J3-06 PA14 Timer PA2 J3-03 J3-04 PA13 PA1 J3-01 J3-02 PA12 FUNCTION J2 J2 FUNCTION PORT PIN PIN PORT PB15 J2-15 J2-16 PE13 Timer PB14 J2-13 J2-14 PF15 Timer PB13 J2-11 J2-12 PE11 PB12 J2-09 J2-10 PE10 PB11 J2-07 J2-08 PE9 PB10 J2-05 J2-06 PE8 LIN4TX(UART) PA5 J2-03 J2-04 PE7 LIN4RX(UART) PA6 J2-01 J2-02 PE6 Timer 6 EXTERNAL USE Arduino Compatibility The internal rows of the I/O headers on the DEVKIT-MPC5748G are arranged to fulfill ArduinoTM shields compatibility . FUNCTION DEVKIT-MPC5748G Board : Pinout 1 of 3 J13 FUNCTION PORT PF11 PF10 PF6 PF4 PF5 PF7 PF8 PF9 PIN J13-02 J13-04 J13-06 J13-08 J13-10 J13-12 J13-14 J13-16 PIN J13-01 J13-03 J13-05 J13-07 J13-9 J13-11 J13-13 J13-15 PORT VIN PER_HVA RESET 3V3_SR 5V0_SR GND GND VIN FUNCTION 12V MPC5748G Reset 3.3V 5V 12V J13 J14 FUNCTION J14 7 EXTERNAL USE Arduino Compatibility The internal rows of the I/O headers on the DEVKIT-MPC5748G are arranged to fulfill ArduinoTM shields compatibility . PORT PIN PIN PORT FUNCTION PB4 J14-02 J14-01 PG13 ADC1_S[1] PB5 J14-04 J14-03 PG12 ADC1_S[2] PB6 J14-06 J14-05 PI8 ADC0_S[16] PB7 J14-08 J14-07 PI11 ADC0_S[19] PD0 J14-10 J14-9 PI12 ADC0_S[20] PD1 J14-12 J14-11 PI13 ADC0_S[21] PD2 J14-14 J14-13 PI14 ADC0_S[22] PD3 J14-16 J14-15 PI15 ADC0_S[23] DEVKIT-MPC5748G Board : Pinout FUNCTION FUNCTION J4 J12 8 EXTERNAL USE Arduino Compatibility The internal rows of the I/O headers on the DEVKIT-MPC5748G are arranged to fulfill ArduinoTM shields compatibility . PORT PIN PF12 3 of 3 J4 PIN PORT J4-19 J4-20 PE5 PF13 J4-17 J4-18 PE4 PC6 J4-15 J4-16 PE0 PC7 J4-13 J4-14 PE1 PI2 J4-11 J4-12 GND PI3 J4-09 J4-10 PER_HVA PH3 J4-07 J4-08 PC11 PH4 J4-05 J4-06 PC10 PG3 J4-03 J4-04 PG5 PG2 J4-01 J4-02 PG4 PORT PIN PIN PORT PD12 J12-2 J12-1 PD15 PD10 J12-4 J12-3 PD14 PD9 J12-6 J12-5 PD13 PD8 J12-8 J12-7 PH8 PER_HVA J12-10 J12-9 PH7 GND J12-12 J12-11 PH6 PD7 J12-14 J12-13 PJ3 PD6 J12-16 J12-15 PJ2 PD5 J12-18 J12-17 PJ1 PD4 J12-20 J12-19 PJ0 J12 FUNCTION FUNCTION DEVKIT-MPC5748G Board : Jumper Settings There is only one jumper: J11 It is to select Power source: 1-2: Default External 12 V Supply 2-3: USB powered 5V Supply, through OpenSDA interface 3 1 J11 9 EXTERNAL USE Note: For high power/current consuming applications (like using external shield boards) use "External 12 V Supply" only DEVKIT-MPC5748G Board : Communication Interfaces LIN_0 DESCRIPTION NAME GND GND Connect to 12V VBAT Port PB2 & PB3 LIN PIN P3-01 P3-02 P3-03 P3-04 CAN_0 DESCRIPTION NAME CANH Port PB0 & PB1 CANL NC GND PIN P5-01 P5-02 P5-03 P5-04 LIN FlexRay EXTERNAL USE FlexRay_A DESCRIPTION NAME FRA-DATA-A FRA-DATA-B FlexRay_A DESCRIPTION PORT PC5 FR_A_TX FR_A_TX_EN PE2 PE3 FR_A_RX CAN Note: LIN Physical Interface require 12V supply on pin P3-03 10 1 of 2 PIN P2_1 P2_2 DEVKIT-MPC5748G Board : Communication Interfaces UART_2 - LinFlex_2 OpenSDA micro-USB DESCRIPTION PORT PC8 TX PC9 RX UART Ethernet 11 USB EXTERNAL USE 2 of 2 USB_1 DESCRIPTION ULPI1_D7 ULPI1_D6 ULPI1_D5 ULPI1_D4 ULPI1_D3 ULPI1_D2 ULPI1_D1 ULPI1_D0 ULPI1_STP ULPI1_NXT ULPI1_DIR ULPI1_CLK PORT PH12 PH11 PG11 PG10 PE15 PE14 PG15 PG14 PI4 PI5 PC3 PC2 ETHERNET_0 DESCRIPTION RMII_0_TXD[0] RMII_0_TXD[1] RMII_0_TX_EN RMII_0_RXD[0] RMII_0_RXD[1] RMII_0_RX_ER RMII_0_RX_DV RMII_0_MDC RMII_0_MDIO RMII_0_TX_CLK (Reference clock) PORT PH1 PH0 PH2 PA9 PA8 PA11 PF15 PG0 PF14 PG1 DEVKIT-MPC5748G Board : User Peripherals Reset Button User Switch 2 User LEDs Potentiometer User Switch 4 12 EXTERNAL USE DESCRIPTION Potentiometer (ADC0 CH9) User Switch 2 User Switch 4 User LEDs Reset Button PIN RV1/POT SW2 SW4 DS4 DS5 DS6 DS7 DS8 DS9 DS10 DS11 SW1 PORT PB4 PE12 PA3 PA10 PA7 PH13 PC4 PH5 PJ4 PA0 PA4 DEVKIT-MPC5748G Board : Programing Interface JTAG OpenSDA micro USB DESCRIPTION Support for USB Multilink Interface PIN P4 OpenSDA MCU OpenSDA JTAG OpenSDA MCU Boot Entry Button JTAG 13 EXTERNAL USE OpenSDA Interface DESCRIPTION OpenSDA MCU Boot Entry SW3 OpenSDA micro USB: On-board JTAG connection via open source J1 OSBDM circuit using the MC9S08JM60 Microcontroller OpenSDA JTAG: JTAG to update firmware in J6 OpenSDA MCU PIN Software Development Tools * IDE & Compilers - Free S32 Design Studio IDE for Power Architecture with GCC compiler - GHS MULTI Integrated Development Environment - Cosmic IDE - iSystems winIDEA IDE - SourceryTM CodeBench Development Tools * Debuggers - Free OpenSDA debugger on board and supported by S32DS IDE - P&E USB Multilink - iSystems iC6000 - Lauterbach TRACE32 JTAG Debugger 14 EXTERNAL USE Pre-Compiled Code Examples * * 15 Pre-compiled example projects are available in S32DS as well as on nxp.com/DEVKIT-MPC5748G for quick start Example projects also includes the projects from Application Note, AN4830: Qorivva Recipes for MPC574xG EXTERNAL USE List of code examples: 1. Hello 11. CAN+DMA 2. Hello+pll 12. LIN 3. Hello+pll+interrupts 13. UART 4. eDMA+ PBridge 14. SPI 5. Semaphores 15. SPI+DMA 6. Register Protection 16. I2C 7. Low Power: STOP mode 17. Ethernet 8. Analog-to-digital Converter 18. Body Cross Trigger Unit (BCTU) 9. Timed I/O (eMIOS) 19. 10. CAN System Memory Protection Unit (SMPU) 20. Flash Documentation General Documents * * * * * MPC5748G Microcontroller Data Sheet MPC5748G Microcontroller Reference Manual MPC5748G Microcontroller Fact Sheet DEVKIT-MPC5748G Board Fact Sheet Software Integration Guide (SWIG) Application Notes * * * * * 16 AN4830: Qorivva Recipes for MPC574xG AN5220: MPC5748G Hardware Design Guidelines AN5114: Migrating between MPC5748G and MPC5746C AN4868: EEPROM Emulation with NXP MPC55xx, MPC56xx, and MPC57xx Microcontrollers AN4805: A Practical Approach to Hardware Semaphores EXTERNAL USE MPC574xG/C/B/D Family : Phantom Feature Differences Package Flash/RAM 100MAPBGA 176LQFP-EP 256MAPBGA 324MAPBGA (11x11mm, 1mm) (24x24mm, 0.5mm) (17x17mm, 1mm) (19x19mm, 1mm) 6M/768k 6M/768k SPC5748G SPC5748C SPC5748G SPC5748C SPC5748G SPC5748C 4M/768k 4M/512k SPC5747G SPC5747C SPC5747G SPC5747C SPC5747G SPC5747C 3M/768k SPC5746G SPC5746G SPC5746G PPC5746C 3M/384k (512k optional) 3M/384k (512k optional) SPC5746C SPC5746B SPC5746C SPC5746B SPC5746C SPC5746B 2M/256k 2M/256k SPC5745C SPC5745B SPC5745C SPC5745B SPC5745C SPC5745B 1.5M/192k 1.5M/192k SPC5744C SPC5744B SPC5744C SPC5744B SPC5744C SPC5744B 17 EXTERNAL USE Color Coding: Triple Core, Ethernet, FlexRay, USB, SDHC, (optional HSM, 2nd Ethernet + switch) Dual Core, Ethernet, FlexRay (all: optional HSM, 5747C/5748C: 2nd Ethernet + switch) Single Core, FlexRay, Ethernet (optional HSM) Debug device for SPC5745B/C and SPC5746B/C - not for production OpenSDA * * * * 1 of 2 OpenSDA is an open-standard serial and debug adapter It bridges serial and debug communications between a USB host and an embedded target processor DEVKIT-MPC5748G comes with the OpenSDA Application preinstalled Follow these instructions to run the OpenSDA Bootloader and update or change the installed OpenSDA Application Enter OpenSDA Bootloader Mode Load an OpenSDA Application 1. Unplug the OpenSDA USB cable if attached 1. 2. Press and hold the Reset button (SW3) BOOTLOADER drive. A web browser will open the OpenSDA homepage 3. Plug in a USB cable between a USB host and the OpenSDA USB containing the name and version of the installed Application. This connector (labeled "SDA") information can also be read as text directly from SDA_INFO.HTML 4. Release the Reset button A removable drive should now be visible in the host file system with a volume label of BOOTLOADER. You are now in OpenSDA Bootloader mode. IMPORTANT NOTE: Follow the "Load an OpenSDA Application" instructions to update the application on your MC9S08JM60 to the latest version. It is likely that the version provided in this package is newer than what was preprogrammed on your MC9S08JM60. 18 EXTERNAL USE While in OpenSDA Bootloader mode, double-click SDA_INFO.HTML in the 2. Locate the OpenSDA Applications folder 3. Copy & paste or drag & drop the Application to the BOOTLOADER drive 4. Unplug the USB cable and plug it in again. The new OpenSDA Application should now be running and check the latest version by repeating Step-1 Use the same procedure to load other OpenSDA Applications. OpenSDA 2 of 2 Using the Virtual Serial Port 1. Determine the symbolic name assigned to the DEVKIT-MPC5748G virtual serial port. On Windows platform open Device Manager and look for the COM port named "OpenSDA-CDC Serial Port". 2. Open the serial terminal emulation program of your choice. Examples for Windows platform include Tera Term, PuTTY, or HyperTerminal. 3. Program one of the "code examples" using S32 Design Studio IDE. 4. Configure the terminal emulation program. Most embedded examples use 8 data bits, no parity bits, and one stop bit (8-N-1). Match the baud rate to the selected serial test application and open the port. 5. Press and release the Reset button (SW1) at anytime to restart the example application. Resetting the embedded application will not affect the connection of the virtual serial port to the terminal program. NOTE: Refer to the OpenSDA User's Guide for a description of a known Windows issue when disconnecting a virtual serial port while the COM port is in use. 19 EXTERNAL USE Recommendations * For high power/current consuming applications (like using external shield boards) use "External 12 V Supply" only. * External 12 V Supply Specifications * - Fully regulated Switching Power Supply - Input Voltage: 100-240V AC 50/60Hz - Output: 12V 1A/2A DC - Plug size: 5.5mm x 2.1 mm, Center Positive By default "New Project" in S32 Design Studio IDE makes application to run at 16 MHz Internal RC (IRC) oscillator. For faster performance, configure PLL to desired frequency and switch clock source to PLL before executing application code. * For faster debugging, debug from RAM, because this cuts down the lengthy Flash erase operation cycles. Follow the Software Integration Guide (SWIG) for details. * Keep S32 Design Studio IDE and OpenSDA firmware Up-to-date for best results. * Post Technical Questions on NXP community for MPC5xxx. * Useful Links: 20 - nxp.com/mpc5748g - nxp.com/devkit-mpc5748g - nxp.com/s32ds - nxp.com/community EXTERNAL USE