Launchpad UART using Linux tools?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Launchpad UART using Linux tools?

Yama Ploskonka-2
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Robert Henig
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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Crazy Casta
Yama,

To clarify a bit what Bob said: download
http://www.ti.com/litv/zip/slac485aand look at the UART 9600 baud
example. Everything will be sent over the
"Application UART" so don't worry about the level shifter business.

Alex

On Thu, Nov 15, 2012 at 11:34 PM, Robert Henig <[hidden email]>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
> > [hidden email]
> > 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Don Bindner
There are some UART experiments here too:
http://dbindner.freeshell.org/msp430/#_a_uart_receiver

I haven't updated the page in a while, but I used Linux for my platform.
 All my UART code was bit-banged as I recall.

Don

On Fri, Nov 16, 2012 at 4:35 AM, Alex Orange <[hidden email]> wrote:

> Yama,
>
> To clarify a bit what Bob said: download
> http://www.ti.com/litv/zip/slac485aand look at the UART 9600 baud
> example. Everything will be sent over the
> "Application UART" so don't worry about the level shifter business.
>
> Alex
>
> On Thu, Nov 15, 2012 at 11:34 PM, Robert Henig <[hidden email]
> >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
> > > [hidden email]
> > > 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
> > [hidden email]
> > 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Robert Henig
In reply to this post by Crazy Casta
Hi Alex,

I'm interested in this "Application UART" but the link you provided is not valid. I'm curious if different MSPs need the level shifter and others don't. Which MSP are you using? I'm using the MSP430G2553.

Thanks,
Bob.


On Nov 16, 2012, at 2:35 AM, Alex Orange wrote:

> Yama,
>
> To clarify a bit what Bob said: download
> http://www.ti.com/litv/zip/slac485aand look at the UART 9600 baud
> example. Everything will be sent over the
> "Application UART" so don't worry about the level shifter business.
>
> Alex
>
> On Thu, Nov 15, 2012 at 11:34 PM, Robert Henig <[hidden email]>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
>>> [hidden email]
>>> 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
>> [hidden email]
>> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Robert Henig
In reply to this post by Robert Henig
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
>>> [hidden email]
>>> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Yama Ploskonka-2
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
>>>> [hidden email]
>>>> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Robert Henig
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
>>>>> [hidden email]
>>>>> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Yama Ploskonka-2
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
>>>>>> [hidden email]
>>>>>> 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
>> [hidden email]
>> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Jesse Frey
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 <[hidden email]> 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
> >>>>>> [hidden email]
> >>>>>> 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
> >> [hidden email]
> >> 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
> [hidden email]
> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
Reply | Threaded
Open this post in threaded view
|

Re: Launchpad UART using Linux tools?

Adam Ford-2
Here is a link that someone wrote for I/O for Launch Pad.

http://e2e.ti.com/support/microcontrollers/msp43016-bit_ultra-low_power_mcus/f/166/t/73346.aspx


I don't know if that helps, since I don't have a Launchpad, but the concept is that you'll want to find some code written for it for CCS, IAR, or whatever compile is out there.  Then take that code and modify it for gcc.

adam

-----Original Message-----
From: Jesse Frey [mailto:[hidden email]]
Sent: Friday, November 16, 2012 1:57 PM
To: Yama Ploskonka
Cc: [hidden email]
Subject: Re: [Mspgcc-users] Launchpad UART using Linux tools?

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 <[hidden email]> 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_li
> ne.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
> >>>>>> [hidden email]
> >>>>>> 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
> >> [hidden email]
> >> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>

This email, including any attachments and files transmitted with it, are for the sole use of the intended recipient(s) to whom this email is addressed, and may contain confidential and/or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please be advised that you have received this email in error, and please contact the sender by reply email and destroy all copies (including all electronic and hard copies) of the original message. Thank you.
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users