You can find code samples in either the IAR Workbench download or the CCS
download from here:
http://www.ti.com/lsds/ti/microcontroller/16-bit_msp430/8-bit_value_line.page?DCMP=D_MCU_MSP430_MSP430&CMP=KNC-GoogleTI&247SEM
You need to write the putchar() function yourself for printf() to work.
Bob.
On Nov 16, 2012, at 11:02 AM, Yama Ploskonka wrote:
> Hi Bob,
>
> my apologies. Part of my problem is that I don not know WHAT to ask, and
> there are so many possibilities, while the ones I tested do not seem to work.
> TI has code for their tools. I need to manage just from ZLinux Terminal, with
> mspdebug and msp430-gcc
>
> not meaning to have someone do my work for me, would you be so kind to point
> me to a specific example/URL where I could find such echo program, that would
> run from Terminal, with mspdebug and msp430-gcc?
> I have been looking for days now...
>
> I am using the USB cord. Is that relevant to what you say about "level
> shifter"? sorry, noob here.
>
> as to putchar(), I get
> undefined reference to 'putchar'
> when I run msp430-gcc. Maybe I am missing some include?
> sorry again, and thanks!
>
> On 11/16/2012 12:34 AM, Robert Henig wrote:
>> Hi Yama,
>>
>> I'm not sure what you're asking for here. You should be able to find sample
>> UART code on the TI site. There are samples in the Launchpad download
>> package. The code is a simple echo program that echos characters received
>> back to the terminal. Get that working before you play with printf(). If
>> you're using a Launchpad and hooking the rx and tx to a serial port on a
>> computer you'll need to use a level shifter on the signals. Search for
>> 'rs232 level shifter' on the web.
>>
>> To get printf() to work you need to provide a putchar() function.
>>
>> Bob.
>>
>>
>> On Nov 15, 2012, at 9:18 AM, Yama Ploskonka wrote:
>>
>>> Hi,
>>>
>>> Please help me figure out UART using a Launchpad, and Linux!
>>>
>>> It might be something obvious that I am missing somehow, after several
>>> days hunting.
>>>
>>> the goal: transfer data (text) to an MSP430 on the Launchpad, which then
>>> is used there as input for some further processing
>>> AND
>>> get feedback from the MSP430 that gets displayed in the host computer -
>>> ideally in such a form that can be used as input for something running
>>> there.
>>>
>>> printf() seems to be a major issue in the middle of all this.
>>>
>>> I routinely manage things with msp230-gcc, mspdebug, from Terminal.
>>>
>>> Thank you!
>>>
>>> Yama the Perpetual Noob (and oh so appreciative to y'all)
>>>
>>> ------------------------------------------------------------------------------
>>> Monitor your physical, virtual and cloud infrastructure from a single
>>> web console. Get in-depth insight into apps, servers, databases, vmware,
>>> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
>>> Pricing starts from $795 for 25 servers or applications!
>>> http://p.sf.net/sfu/zoho_dev2dev_nov
>>> _______________________________________________
>>> Mspgcc-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users