1
Out of the Box2
Get Software3
Plug It In4
Build, Run5
DebugSign in to save your progress. Don't have an account? Create one.
Applies for the S32K144EVB evaluation board (REV B
)
Something went wrong! Please try again.
Something went wrong! Please try again.
Component | S32K144 |
---|---|
Red LED | PTD15 (FTM0 CH0) |
Blue LED | PTD0 (FTM0 CH2) |
Green LED | PTD16 (FTM0 CH1) |
Potentiometer | PTC14 (ADC0_SE12) |
SW2 | PTC12 |
SW3 | 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 | PTD7 (LPUART2_TX) |
LIN Rx | PTD6 (LPUART2_RX) |
SBC_SCK | PTB14 (LPSPI1_SCK) |
SBC_MISO | PTB15 (LPSPI1_SIN) |
SBC_MOSI | PTB16 (LPSPI1_SOUT) |
SBC_CS | PTB17 (LPSPI1_PCS3) |
Something went wrong! Please try again.
S32K144EVB performs better when using S32 Design Studio for Arm v1.3.
Note: Check the S32 Design Studio page for the latest version.
DOWNLOAD S32 Design Studio IDESomething went wrong! Please try again.
S32K144EVB evaluation board performs better when using the FreeMASTER tool for run-time debugging. You can also download and install the FreeMASTER Communication Driver (source code already included in the example project).
Note: Check the FreeMASTER page for the latest version.
DOWNLOAD FreeMASTER ToolSomething went wrong! Please try again.
Jumper | Setting | Description |
---|---|---|
J104 |
1-2 | Reset signal to OpenSDA, use to enter into OpenSDA Bootloader mode. |
2-3 (Default) | Reset signal direct to the MCU, use to reset S32K144. | |
J107 |
1-2 | S32K144 powered by 12 V power source. |
2-3 (Default) | S32K144 powered by USB micro connector. | |
J109/J108 |
1-2 (Default) | Removes CAN termination resistor. |
Watch the video or use the step-by-step guide, below.
Something went wrong! Please try again.
The S32K144EVB evaluation board powers from a USB or external 12 V power supply. By default USB power is enabled with J107
jumper (2-3 closed).
Connect the USB cable to a PC using a USB cable and connect other end of USB cable (microUSB) to mini-B port on to J7
on your S32K144EVB.
Allow the PC to automatically configure the USB drivers if needed. Debug is done using OpenSDA through J7
.
Note: 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-S32K144.
The S32K144EVB evaluation board is preloaded with a software in which red, blue and green LEDS will toggle at different rates:
Something went wrong! Please try again.
Let’s take it for a test drive.
Figure 2. Configure the communication port through OpenSDA with a 115200 b/s speed rate
Manually = Project → Options → Comm
Automatically = Tools → Connection Wizard
Learn more about OpenSDA at Projects and Tutorials.
Something went wrong! Please try again.
Something went wrong! Please try again.
Watch the video to create a new project and load a code example to blink an LDE. The video also covers hoe to build and debug your project. You can also use the step-by-step guide.
Launch the S32 Design Studio for Arm and select a default Workspace or specify a new one, then click OK.
Note: Uncheck the box Use this as default and do not ask again.
To create a new project, select File → New → Project
Choose a project name and then select a project type, then click Next.
Note: You can select the project type in the executable or library folder.
Select Debugger and Library, then click Finish.
Something went wrong! Please try again.
Select OpenSDA to debug with it.
Select your project, and click on Debug Configuration.
Select the debug configuration under GDB PEMicro Interface Debugging, click the Debugger tab.
In Interface, select OpenSDA. If your board is plugged in, it should appear in Port. To finish, click Apply then Debug.
Something went wrong! Please try again.
Step, Run, Suspend, Resume
Step Into (F5)
Step Over (F6)
Step Return (F7)
Run
Suspend
Resume (F8)
Click the Variables tab. To enter different values, click in the Value field.
To see CPU registers, click the Registers tab. To enter different values, click in the Value field.
View peripheral registers in the EmbSys Registers tab:
Select Add Memory Monitor and then select the base address to: 40000000
To add break points, point and click in the desired location.
Note: The blue dot indicates the debugger breakpoint.
To reset the program counter, select Terminate (Ctrl+F2).
Something went wrong! Please try again.
Click the Variables tab. To enter different values, click in the Value field.
Something went wrong! Please try again.
To see CPU registers, click the Registers tab. To enter different values, click in the Value field.
View peripheral registers in the EmbSys Registers tab:
Something went wrong! Please try again.
Select Add Memory Monitor and then select the base address to: 40000000
Something went wrong! Please try again.
Something went wrong! Please try again.
To add break points, point and click in the desired location.
Note: The blue dot indicates the debugger breakpoint.
Something went wrong! Please try again.
To reset the program counter, select Terminate (Ctrl+F2).
Something went wrong! Please try again.
Debug configuration is only required once. Subsequent starting of debugger does not require those steps.
There are three options to start debugging:
Note: This method currently selects the desktop target (project.elf
) and gives an error. Do not use until this is changed.
…_debug.elf
target
Note: This is the recommended option.
Learn more about debugging basics at Projects and Tutorials.
Something went wrong! Please try again.
Create a new P&E launch configuration:
Click to create a new P&E launch and then click Debugger.
Something went wrong! Please try again.
To display the main project panel, go to: Project → View → Project Tree
To display real-time oscilloscope graph examples, select Potentiometer or Touch Sense Electrodes:
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.
The S32K144EVB 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.
Enter OpenSDA Bootloader Mode | Load an OpenSDA Application |
---|---|
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. Note: Follow the “Load an OpenSDA Application” instructions to update the MSD Flash Programmer on your S32K144EVB to the latest version. |
You are now running the latest version of the MSD Flash Programmer. Use this same procedure to load other OpenSDA Applications. |
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 KEA MCU. It emulates a FAT16 file system, appearing as a removable drive in the host file system with a volume label of EVB-S32K144. Raw binary and Motorola S-record files that are copied to the drive are programmed directly into the flash of the KEA and executed automatically. The virtual serial port enumerates as a standard serial port device that can be opened with standard serial terminal applications.
Using the MSD Flash Programmer | Using the Virtual Serial Port |
---|---|
The new application should now be running on the S32K144EVB. Starting with v1.03 of the MSD Flash Programmer, you can program repeatedly without the need to unplug and reattach the USB cable before reprogramming. Drag one of the |
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 |
Watch the video to create a new project and load a code example to make a blinking LED. The video also covers how to build and debug your project. You can also use the step-by-step guide.
Connect with other engineers and get expert advice on designing with the S32K144EVB on one of our community sites.
Get to Know Your Evaluation Board
Understanding the Header/Pinout
Understanding the HMI Mapping
Communicate with Run-Time Debugger
FreeMASTER JumpStart Project Loaded
Import and Debug the Project to IDE
Set Up Debug Configuration