To start working with the IO-Link Master, you need the software Code Composer Studio™(CCS).
Importing the project into your CCS workspace


To Debug, right-click on the project and select "Debug Project"
CCS automatically builds the project(if not done explicitly), connects to the Board,
transfers the compiled binary project data into the RAM and starts a debugging session.

When the transfer is complete the debugger halts at the main() function.

To run your code without the CCS debugger, you need to manually flash the compiled binary data
(including a compatible bootloader) into the devices QSPI attached flash memory.
(See Flash a Hello World example)
The example uses one LED on the base board to indicate that the software is running. This is indicated by a slow blinking sequence.
The IO-Link add-on boards have multiple LEDs to indicate the status of the communication ports. The launchpad add-on board has an additional blue LED (Pin2) which is used to indicate the state of the pin. This pin is HW controlled and not changeable by software.
The port-specific LEDs in the example are implemented as follows:
| Status | LED green | LED red |
|---|---|---|
| Inactive | Off | Off |
| Search for IO-Link device | slow blinking | Off |
| IO-Link normal operation | On | Off |
| Incompatible device | On | slow blinking |
| DI/DO Mode | On | Off |
| Overcurrent (LP/CQ) | N/A | fast blinking |
This example runs the Master stack functions in its own separate task. This task initializes
all needed interfaces and then executes the IOLM_exampleRun() function in an endless loop.
The IOLM_exampleRun() function is located in the ExampleSMI.c file,
where it is possible to add or modify code to fit the desired environment.
For details see Non-Volatile Memory (NVM).
To use a customized PRU firmware, simply reference the binaries in the iolmPruExampleConfig structure in main.c, as can be seen in the example below:

The IO-Link Master GUI can be used to connect to the IO-Link Master's
Standardized Master Interface (SMI) via USB , to set up configuration parameters,
read status information and communicate with attached IO-Link devices.
Now one can connect a micro USB cable to the UART USB port to XDS110 MAIN UART0 USB port (J20).
In the Std Port Config tab the configuration and status of the Master's ports can be read and changed.
You can retrieve the Master's current port configuration and port status by clicking the corresponding buttons.
The default setting sets all ports except the first one (port number: 1) to DEACTIVATED. Port 1 is by default set to IOL_AUTOSTART, which starts an auto-detect-sequence. For more details on port modes see the section IO-Link Specification v1.1.4.
After changing the Master's port configuration it will be saved in its internal non-volatile memory and remain even after restarting or turning it off.
To connect a device to a certain port, its mode has to be changed to IOL_AUTOSTART. In this example, the device is connected in Port 4.
In the On Request Data tab you can request Indexed Service Data Units (ISDUs) from the device or send ISDUs to the device.
For more information on ISDUs see the IO-Link Specification v1.1.4.
It is possible to import IO Device Description (IODD) files for ones connected devices in the Std Port Config tab. This makes it easier to read and set device parameters.
For more information on IODD files see the IO-Link Specification v1.1.4 and the IODDFinder.