So after a few days and many frustrating hours of reading, hacking and playing around, I managed to get two way serial communications working. I am using the USB connection through the FTDI USB-UART converter.
Initially I tried to use the examples but for some reason they just didn't work as they were supposed to. I wanted to then put back the demo application that the C2000 LaunchPad ships with because I knew that that worked with Putty. It took me ages to find the source code which was very frustrating. If you are interested, it is located in TI Resource Explorer -> controlSUITE -> English -> Development Tools -> C2000 LaunchPad -> LAUNCHXL-F28027 -> C2000 LaunchPad Demo.
Once I programmed my LaunchPad with the demo program and confirmed that everything works, I worked my way through it making changes. After a few attempts and many changes, I got it working so that the program can print a string to the terminal, and can also echo back and characters that are sent to the LaunchPad from the terminal.
First impressions of the C2000 LaunchPad:
- My first impression of using the Piccolo was one of frustration. The examples are not as clear as the MSP430 LaunchPad and the projects are much more tricky to create. I still have yet to create a project from scratch. So far I have just copied and pasted projects and then added my own code.
- The LED's are also wired in such a way that you have to drive the cathode low to turn the LED on. Therefore in code, setting the pin high turns the LED off and setting the pin low turns the LED on. Not a big deal once you know about this, but took me a while to figure out why my LED's were not behaving themselves as I expected them to.
- Battling to find the demo source code was also a challenge, but once I got it, it was very well commented and quite self explanatory.
Overall my first impressions are a bit mixed, but the more I explore, the more I am understanding how things are laid out. This is making it clearer.
My next step for my project is to get the SPI working, which I will start tackling tomorrow.
If you want to get a copy of my code, you can download it here.
I hope this helped clear the way for you.
Greg