Applications that show the user how to initialize the peripherals for the basic use cases
S32 SDK examples structure:
Examples are available for:
There are makefile projects in all compilers supported. In order to used them:
The makefiles generate binary files for both RAM and FLASH configurations.
From IAR Workbench for ARM use File > Open > Workspace and browse to the desired project. After the project was opened you can see the files in "Workspace Files". Finally, the project can be executed from Project > Download and Debug. Make sure that the debug probe you are using is selected and configured in Project options > Debugger > Driver.
From S32 Design Studio (See Release notes for the S32 Design Studio version), go to File -> New -> New Project from Example and select the example you wish to import. This will copy the example project into workspace. Next steps:
This section explains how to upload and debug the binary files generated after build. This assumes that you have a debug probe(see release notes for supported debug probes) and a debug software installed on the machine.
Generic steps:
Loading with Segger JLink:
The following table is a small list of commands used in GNU ARM GDB with JLinkGDBServer to connect and run the application:
Command | Description |
---|---|
target remote:PortNumber | Connect to the remote target at a specified port. Please replace PortNumber with the port configured in the GDB server. |
monitor reset | Reset the target MCU |
monitor halt | Halt the target MCU |
file ApplicationName.elf | Load the file and symbols. Please change ApplicationName with your application name |
load | Download the executable to the target MCU |
continue | Begin executing the application |
Loading with PEmicro OpenSDA/MultiLink:
The following table is a small list of commands used in GNU ARM GDB with PEmicro GDB server to connect and run the application:
Command | Description |
---|---|
target remote:PortNumber | Connect to the remote target at a specified port. Please replace PortNumber with the port configured in the GDB server. |
monitor reset | Reset the target MCU |
file ApplicationName.elf | Load the file and symbols. Please change ApplicationName with your application name |
load | Download the executable to the target MCU |
continue | Begin executing the application |
To run the examples that use LPUART to help you visualize data you must download a terminal emulator (eg. Putty, Termite, TeraTerm) and configure it.
Unless otherwise noted the standard communication parameters are:
1) Download Termite from their site
2) Run the installer. Wait for the installation to be completed
3) Go to Start -> All Programs -> Termite and launch the program. The window from Fig.1 will appear ...
4) Click on Settings
5) As seen in Fig.2, configure the following communication parameters:
6) Click OK. Now the terminal should be configured