Other Parts Discussed in Thread: CCSTUDIO
I'm new to programming MSP430s and am working with the Launchpad and the latest CcStudio. As I test basic ideas for my new program, I'd like to be able to write diagnostic text output to a console (e.g., values read from an AD pin), and I'm doing this on a Mac. It appears that the Launchpad is associated with four local devices that show up in /dev: cu.usbmodem2101 , cu.usbmodem2103 , tty.usbmodem2101 , tty.usbmodem2103 . I believe one of these (probably with the tty prefix, maybe 2013?) is the appropriate device for two-way serial communication via the UART backchannel, but beyond that, I'm stumped.
My questions:
- What software interface do I need on my Mac to view serial output? Can this all be done inside CcStudio, or do I need an external terminal app?
- How do I select the correct device from the four given, and how do I ensure that communication protocols match (baud rate, etc.)?
- Finally, in the MSP430 program itself, is 'standard out' already associated with the UART backchannel by default, or do I need to write to a particular stream?
I have in fact succeeded in writing text to the console inside CcStudio with one simple 'hello world' program using a `printf()` statement, but similar code doesn't seem to work in every program, based on my limited experience so far. Also, the program doesn't free-run but seems to hit a hardware breakpoint with every call to printf, if I'm interpreting things correctly.
Apologies for the newbie questions, but my previous experience is entirely with Arduinos.