I believe that the msp on the launchpad does not have UCA0 so you have to
write a timer UART. I think TI has an example somewhere. You should be able
to drop the code into putchar.
Jesse
On Fri, Nov 16, 2012 at 10:50 AM, Yama Ploskonka <yamap...@gmail.com> wrote:
> I must be missing something, probably an include
> IFG2 and both UCA0 are reported as undeclared.
> I added stdio.h, stdint.h and signal.h, and even dsiroky's onewire.h,
> with no success
>
> I will try a fresh install of the msp430 toolchain, maybe a newer
> version has the stuffs.
>
> Thanks!
>
> On 11/16/2012 01:24 PM, Robert Henig wrote:
> > You don't need to install the IAR or CCS. Just extract the sample
> programs from them.
> >
> > int putchar(int c) {
> >
> > while (!(IFG2&UCA0TXIFG));
> > UCA0TXBUF = c;
> > return 1;
> > }
> >
> > Bob.
> >
> >
> > On Nov 16, 2012, at 11:19 AM, Yama Ploskonka wrote:
> >
> >> Bob,
> >>
> >> I am afraid that the platform I work on does not give me room for IAR
> or CCS.
> >> I can ONLY depend on Terminal-like utilities, under Linux.
> >>
> >> How do I write putchar? The examples I see when googling putchar() seem
> to mean it is a built-in thing?
> >>
> >> I have found several examples of printf() for msp430-gcc, where the
> author wrote something like "To Be Developed"...
> >>
> >> Thank you!
> >>
> >> Yama
> >>
> >> On 11/16/2012 01:15 PM, Robert Henig wrote:
> >>> 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
> >>>>>> Mspgcc-users@lists.sourceforge.net
> >>>>>> 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
> >> Mspgcc-users@lists.sourceforge.net
> >> 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
> Mspgcc-users@lists.sourceforge.net
> 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
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users