This repository includes a sample project on how to run RTI Connext DDS Micro on TMS570LC43x.
This sample project shows that it is possible to run RTI Connext DDS Micro on TMS570LC43x and it can be used as example by developers who wish to add DDS communications to their microcontroller based applications.
This demo application creates two FREERTOS tasks, one is the publisher and the other the subscriber. Only one participant is created, which is shared by both the publisher and subscriber.
Communication between publisher and subscriber is done via the Micro INTRA Transport.
The data definition includes only one long
number. Once per second the publisher task
increases a counter, copies it to a field in a DDS sample, writes the sample and prints a
message in the serial port. When a sample is received, the subscriber prints in the serial port
a message including the number in the sample.
This demo application has been tested on LAUNCHXL2-570LC43. The Hercules™ TMS570LC43x LaunchPad™ Development Kit is a low-cost evaluation platform based on the highest performance Hercules MCU TMS570LC4357.
Code generated by HALCoGen (including FREERTOS source code) cannot be added to this public reposity as HALCoGen license forbids it.
Send an email to [email protected] to know how to generate those files and what changes are needed.
- Import the demo project into Code Composer Studio (we have used version 6.1.1.00022)
- Switch to “CCS Debug” perspective.
- On the menu, click Window > Show View > Target Configurations.
- Right-click in file TMS570LC43xx.ccxml and select “Launch Selected Configuration” on the context menu.
- On the menu, select Run > Connect Target.
- On the menu, click Run > Load > Load Program and select the included file DDS_TMS570LC43_demo.out.
- On the menu, click Run > Resume to run the program.
The configuration needed for the serial port in order to see the output from the demo is the following:
- Baud rate: 9600.
- Data bits: 8.
- Stop bits: 2.
- Parity: None.
- Flow Control: None.