How do you get an ez430 going under Linux?

View: New views
5 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: How do you get an ez430 going under Linux?

by Steve Underwood :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Oleg Verych (Gmane) wrote:

> 25-09-2007, Grant Edwards:
>  
>> On 2007-09-25, David Pettit <davidp@...> wrote:
>>    
>>>> I also CCed patches here, hoping that there will be some testing and feed
>>>> back, but... So, if TI EZ430 USB tool is used by more people, i can start
>>>> effort again.
>>>>        
>>> I think your efforts would be appreciated.  I now have three neatly stacked
>>> in my desk drawer at work (vendor reps love to give gifts).  If I can use
>>> them with Linux, I will take them home with me.  
>>>      
>
>  
>> The stock driver in the 2.6.22 kernel works fine along with the
>> udev rule that sets the configurationValue to 2.
>>    
>
> To use this thing was possible right after driver was written (~2.6.11)
> of course. Question is "how to use".
>
> Because they accepted just one very tiny patch to add device ID, now udev
> rules are a bit smaller.
>  
It won't work without that patch, because there is bug in accepting IDs
from the command line. We fixed the command line for our own use. The
driver maintainers added the ID for the FET tool to the driver. I don't
know if they also fixed the command line.

Steve


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Re: How do you get an ez430 going under Linux?

by Oleg Verych (Gmane) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

27-09-2007, Steve Underwood:
[]
>> Because they accepted just one very tiny patch to add device ID, now udev
>> rules are a bit smaller.
>>  
> It won't work without that patch, because there is bug in accepting IDs
> from the command line. We fixed the command line for our own use. The
> driver maintainers added the ID for the FET tool to the driver. I don't
> know if they also fixed the command line.

This is minor stuff anyway. If driver author is so busy, that cannot
support driver, he is holding all improvements back, then ID patch is the
only (very very accessible, and for PCI the only) way to get at least
something to mainline. (I just remembered, that you, Steve, have NAK on
that patch :)
_____


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Parent Message unknown Re: How do you get an ez430 going under Linux?

by Phil Lewis-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Using kernel 2.6.22 i get the following on the terminal that is running
msp430-gdbproxy:
 
root@ubu-desktop:/media/sda2/opt/cdk4msp/bin# ./msp430-gdbproxy --debug msp430
--spy-bi-wire /dev/ttyUSB0

Remote proxy for GDB, v0.7.1, Copyright (C) 1999 Quality Quorum Inc.
MSP430 adaption Copyright (C) 2002 Chris Liechti and Steve Underwood

GDBproxy comes with ABSOLUTELY NO WARRANTY; for details
use `--warranty' option. This is Open Source software. You are
welcome to redistribute it under certain conditions. Use the
'--copying' option for details.

debug:     msp430: msp430_open()
debug: MSP430_Initialize()
debug: MSP430_Configure()
debug: MSP430_VCC(3000)
debug: MSP430_Identify()
info:      msp430: Target device is a 'MSP430F20x3' (type 52)
debug: MSP430_Configure()
notice:    msp430-gdbproxy: waiting on TCP port 2000
notice:    msp430-gdbproxy: connected
debug:     msp430: msp430_connect()
debug: MSP430_Registers(READ)
debug:     msp430-gdbproxy: Control-C received
 
 
I get the following on the terminal that is running msp430-gdb:
 
root@ubu-desktop:/media/sda2/opt/cdk4msp/bin# ./msp430-gdb
GNU gdb 5.1.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-mandrake-linux-gnu --target=msp430".
(gdb) target msp430 localhost:2000
Timeout reading from remote system.
(gdb)

 
Help me please.  What should I do next?
 
 
 
                                                                               
             

You should never wear your best trousers when you go out to fight for freedom and truth.


       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search
that gives answers, not web links.
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

A bit more about software (Re: How do you get an ez430 going under Linux?)

by Oleg Verych (Gmane) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

26-09-2007, Oleg Verych (Gmane):
[]
> Aaarrhh. Software and softhardware sucks, didn't you know ?:)

I've checked KickStart, when i came to "wake up, Neo" thing, after
nearly three years of only-in-Linux life. What i've found, was this
stupid LED demo. Stupid, because PR says "the world's lowest power
MCU", hardware is good indeed; yet, what we see?

0.8 mA in the official MSP430 VirtuaLab.

____
//  MSP430x2xx Demo - Software Toggle P1.0
//[...]
//
//  A. Dannenberg
//  Texas Instruments, Inc
//  January 2006
//  Built with IAR Embedded Workbench Version: 3.40A

#include "msp430.h"

int main(void)
{
  WDTCTL = WDTPW + WDTHOLD;             // Stop watchdog timer
  P1DIR |= 0x01;                        // Set P1.0 to output direction

  for (;;)
  {
    volatile unsigned int i;            // volatile to prevent optimization

    P1OUT ^= 0x01;                      // Toggle P1.0 using exclusive-OR

    i = 10000;                          // SW Delay
    do i--;
    while (i != 0);
  }
}
----

The most simply example, but huge fuck up. Don't their programmers think,
before producing such things?

* 0.2 mA (4 times lower)
* encourages to study hardware first (and then C tricks, like `volatile')
* just simple (because we need the blinking, no matter how)

____
#include "msp430.h"

int main(void)
{
        P1DIR |= 0x01;      // Set P1.0 to output direction
        P1OUT ^= 0x01;      // Toggle P1.0 using exclusive-OR
        do LPM2; while (1); // SAVE POWER!
}
----

Check it out. Site and login http://www.designmsp430.com/ olecom@6HcHd9
Or with devices, if available.

I've sent a support request to fix that. Somebody answered something,
without any *discussion*. Somehow it was confirmed to be fixed. But i've
just downloaded "28 Sep 2007 zip", all is the same.

==
== Concerning closed source part of the communication protocol ==
==

Robert Kavaler had posted a code last year, covered by GPL with
permission (and no what so ever support requests from user disclaimer)
from TI:

http://article.gmane.org/gmane.comp.hardware.texas-instruments.msp430.gcc.user/5463

I thought, it will be good start for open source replacement. But have
anybody from active developers actually saw and tried that?

Content isn't available any more, but i have a copy, if somebody is
interested. I used this tool to check device connection, when i was
developing patches for the driver.

Worked with EZ430 USB stick just fine (i used only `dumpDevices'
option, though).
--
-o--=O`C
 #oo'L O
<___=E M


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Re: A bit more about software (Re: How do you get an ez430 going under Linux?)

by old_cow_yellow :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you use the world's lowest power MCU to jump start a car, how much current would that take? A LED is not a car. But ...

Oleg Verych <!gmane?olecom.ENOMSG@...> wrote:
26-09-2007, Oleg Verych (Gmane):
[]
> Aaarrhh. Software and softhardware sucks, didn't you know ?:)

I've checked KickStart, when i came to "wake up, Neo" thing, after
nearly three years of only-in-Linux life. What i've found, was this
stupid LED demo. Stupid, because PR says "the world's lowest power
MCU", hardware is good indeed; yet, what we see?

0.8 mA in the official MSP430 VirtuaLab.

____
// MSP430x2xx Demo - Software Toggle P1.0
//[...]
//
// A. Dannenberg
// Texas Instruments, Inc
// January 2006
// Built with IAR Embedded Workbench Version: 3.40A

#include "msp430.h"

int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P1DIR |= 0x01; // Set P1.0 to output direction

for (;;)
{
volatile unsigned int i; // volatile to prevent optimization

P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR

i = 10000; // SW Delay
do i--;
while (i != 0);
}
}
----

The most simply example, but huge fuck up. Don't their programmers think,
before producing such things?

* 0.2 mA (4 times lower)
* encourages to study hardware first (and then C tricks, like `volatile')
* just simple (because we need the blinking, no matter how)

____
#include "msp430.h"

int main(void)
{
P1DIR |= 0x01; // Set P1.0 to output direction
P1OUT ^= 0x01; // Toggle P1.0 using exclusive-OR
do LPM2; while (1); // SAVE POWER!
}
----

Check it out. Site and login http://www.designmsp430.com/ olecom@6HcHd9
Or with devices, if available.

I've sent a support request to fix that. Somebody answered something,
without any *discussion*. Somehow it was confirmed to be fixed. But i've
just downloaded "28 Sep 2007 zip", all is the same.

==
== Concerning closed source part of the communication protocol ==
==

Robert Kavaler had posted a code last year, covered by GPL with
permission (and no what so ever support requests from user disclaimer)
from TI:

http://article.gmane.org/gmane.comp.hardware.texas-instruments.msp430.gcc.user/5463

I thought, it will be good start for open source replacement. But have
anybody from active developers actually saw and tried that?

Content isn't available any more, but i have a copy, if somebody is
interested. I used this tool to check device connection, when i was
developing patches for the driver.

Worked with EZ430 USB stick just fine (i used only `dumpDevices'
option, though).
--
-o--=O`C
#oo'L O
<___=E M


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users



Lichen Wang

Darwin was wrong. Monkeys might have evolved. Human did not.


Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@...
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
< Prev | 1 - 2 | Next >