NXP Semiconductors S32K116 EVB Скачать руководство пользователя страница 20

EXTERNAL USE

19

Introduction to 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. OpenSDA software includes a flash-resident USB mass-storage device (MSD) bootloader and a 
collection of OpenSDA Applications. S32K116 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.

IMPORTANT NOTE:  

Follow the “Load an OpenSDA 

Application” instructions to update the MSD Flash 
Programmer on your S32K116 EVB  to the latest 
version. 

Enter OpenSDA Bootloader Mode

1. Unplug the USB cable if attached

2. Set J104 on position 1-2.

3. Press and hold the Reset button (SW5)

4. Plug in a USB cable (not included) between a 

USB host and the OpenSDA USB connector 
(labeled “SDA”)

5. 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.

Load an OpenSDA Application

1. While in OpenSDA Bootloader mode, double-click 

SDA_INFO.HTML 

in the 

BOOTLOADER

drive. A web 

browser will open the OpenSDA homepage containing the 
name and version of the installed Application. This 
information can also be read as text directly from 

SDA_INFO.HTML

2. Locate the 

OpenSDA Applications 

3. Copy & paste or drag & drop the MSD Flash Programmer 

Application 

to the BOOTLOADER drive 

4. Unplug the USB cable and plug it in again. The new 

OpenSDA Application should now be running and a 

S32K116 EVB 

drive should be visible in the host file system

You are now running the latest version of the MSD Flash 
Programmer. Use this same procedure to load other OpenSDA 
Applications.

Содержание S32K116 EVB

Страница 1: ...EXTERNAL USE APPLIES FOR S32K116 EVB SCH_30003 REV B QUICK START GUIDE S32K116 EVB...

Страница 2: ...Get to Know S32K116 EVB Out of the Box Setup Introduction to OpenSDA Creating a new S32DS project for S32K116 Download Create a project Create a project from SDK example S32DS Debug basics Create a P...

Страница 3: ...ly 5 12V CAN Communication Bus RGB LED S32K116 MCU LIN Communication Bus OpenSDA USB Reset Button OpenSDA MCU OpenSDA JTAG Potentiometer User Buttons J2 Header J1 Header J3 Header J4 Header SBC UJA116...

Страница 4: ...debug adapter OpenSDA with support for several industry standard debug interfaces Easy access to the MCU I O header pins for prototyping On chip connectivity for CAN LIN UART SCI SBC UJA1169 and LIN p...

Страница 5: ...PTC7 GPIO J4 03 PTC8 GPIO J4 06 PTC8 GPIO J4 05 PTC1 ADC0_SE9 J4 08 PTC9 GPIO J4 07 PTC14 ADC0_SE12 J4 10 PTD5 GPIO J4 09 PTC15 ADC0_SE13 J4 12 PTD15 GPIO J4 11 PTC16 ADC0_SE14 J4 14 PTD16 GPIO J4 13...

Страница 6: ...er into OpenSDA Bootloader mode Reset signal direct to the MCU use to reset S32K116 J107 1 2 Default 2 3 S32K116 powered by 12V power source S32K116 powered by USB micro connector J10 2 3 Default 1 2...

Страница 7: ...5 FTM0 CH0 Potentiometer PTA7 ADC0_SE3 SW2 PTD3 SW3 PTD5 OpenSDA UART TX PTB1 LPUART0_TX OpenSDA UART RX PTB0 LPUART0_RX CAN TX PTE5 CAN0_TX CAN RX PTE4 CAN0_RX LIN TX PTC7 LPUART1_TX LIN RX PTC6 LPUA...

Страница 8: ...EXTERNAL USE 7 S32K116 EVB OUT OF THE BOX...

Страница 9: ...ternal 12V power supply By default 12V power is enabled with J107 check slide 5 Connect the USB cable to a PC using supplied USB cable Connect other end of USB cable microUSB to mini B port on S32K116...

Страница 10: ...ep 2 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...

Страница 11: ...EXTERNAL USE 10 Step 3 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...

Страница 12: ...EXTERNAL USE 11 S32K116 JUMPSTART EXPERIENCE BASED ON THE FREEMASTER TOOL...

Страница 13: ...EXTERNAL USE 12 Install the FreeMASTER tool Download and install the FreeMASTER PC application www nxp com FreeMASTER Open the FreeMASTER application on your PC You should see Welcome page...

Страница 14: ...t the USB cable to a PC and connect micro USB connector of the USB cable to micro B port J7 on the S32K116EVB Allow the PC to automatically configure the USB drivers if needed When EVB is powered from...

Страница 15: ...serial connection in the FreeMASTER tool Setup communication manualy Go to Project Options Comm OR Setup communication automatically Go to Tools Connection Wizard Setup communication port to OpenSDA a...

Страница 16: ...EXTERNAL USE 15 The FreeMASTER JumpStart project is loaded...

Страница 17: ...ource files Pins of the J2 and J1 connectors are configured as outputs By single click on each pin you can change their logical level to log0 or log1 User can connect e g LED diodes to these ouput pin...

Страница 18: ...oscilloscope feature examples Display main project panel View Project Tree Display real time oscilloscope graph examples such as Potentiometer or Touch Sense Electrodes Analog values from potentiomet...

Страница 19: ...EXTERNAL USE 18 INTRODUCTION TO OPENSDA...

Страница 20: ...et button SW5 4 Plug in a USB cable not included between a USB host and the OpenSDA USB connector labeled SDA 5 Release the Reset button A removable drive should now be visible in the host file system...

Страница 21: ...drop one of the srec files to the S32K116EVB drive The new application should now be running on the S32K116 EVB Starting with v1 03 of the MSD Flash Programmer you can program repeatedly without the n...

Страница 22: ...EXTERNAL USE 21 INSTALLING S32DS...

Страница 23: ...EXTERNAL USE 22 Download S32DS Download S32DS from S32DS for ARM...

Страница 24: ...EXTERNAL USE 23 CREATE A NEW PROJECT IN S32 DESIGN STUDIO...

Страница 25: ...rst 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 d...

Страница 26: ...EXTERNAL USE 25 Create New Project Top Menu Selection File New Project...

Страница 27: ...EXTERNAL USE 26 Create New Project S32DS Project Project Name Example FirstProject Project Type Select from inside executable or library folder Next...

Страница 28: ...EXTERNAL USE 27 Create New Project S32DS Project Select Debugger Support and Library Support Click Finish...

Страница 29: ...EXTERNAL USE 28 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...

Страница 30: ...EXTERNAL USE 29 OpenSDA Configuration Select the Debug configuration under GDB PEMicro Interface Debugging Click on Debugger tab...

Страница 31: ...EXTERNAL USE 30 OpenSDA Configuration Select OpenSDA as the interface if your board is plugged should appear in the Port field Click Apply and debug to finish...

Страница 32: ...EXTERNAL USE 31 DEBUG BASICS...

Страница 33: ...ps Three options to start debugger If the Debug Configuration has not been closed click on Debug button on bottom right Select Run Debug or hit F11 Note This method currently selects the desktop targe...

Страница 34: ...EXTERNAL USE 33 Debug Basics Step Run Suspend Resume Step Into F5 Step Over F6 Step Return F7 Run Suspend Resume F8...

Страница 35: ...EXTERNAL USE 34 Debug Basics View Alter Variables View variables in Variables tab Click on a value to allow typing in a different value...

Страница 36: ...EXTERNAL USE 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...

Страница 37: ...EXTERNAL USE 36 Debug Basics View Alter Memory Add Memory Monitor Select Base Address to Start at 0x20000000 View Memory...

Страница 38: ...EXTERNAL USE 37 Debug Basics Breakpoints Add Breakpoint Point and Click light blue dot represents debugger breakpoint...

Страница 39: ...EXTERNAL USE 38 Debug Basics Reset Terminate Debug Session Reset program counter Terminate Ctl F2...

Страница 40: ...EXTERNAL USE 39 CREATE A P E DEBUG CONFIGURATION OPTIONAL...

Страница 41: ...EXTERNAL USE 40 New P E debug configuration Click in debug configurations...

Страница 42: ...EXTERNAL USE 41 New P E debug configuration Create a new P E launch configuration Click to create a new P E launch Click on the debugger tab...

Страница 43: ...EXTERNAL USE 42 New P E debug configuration Select the device Click Apply and debug your application Select device...

Страница 44: ...EXTERNAL USE 43 USEFUL LINKS...

Страница 45: ...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 thread...

Отзывы: