Hi all,

Later I changed the gcc option in .platform file. My hardware started
working with msp430-gcc-4.5.3. previously it didint. soon after posting in
support forums it got rectified. But I dont know how it happened.

On Wed, Feb 29, 2012 at 3:12 PM, dwaraka nath <[email protected]>wrote:

> Hi,
>
> I tried to compile TinyOS-2.1.1 with msp430-gcc-4.4.5. After programming,
> the device started working. Previously msp430-gcc-4.5.3 did made my
> hardware to work.
>
> I dont understand the reason. Did anybody experience this problem??
>
> On Thu, Feb 23, 2012 at 12:28 PM, dwaraka nath 
> <[email protected]>wrote:
>
>> Hi,
>>
>> I tried  previously in Cygwin with TinyOS-2.0.2 and was successful in
>> building a new platform with MSP430F2618+cc2520. I used msp430-gcc-4.4.5
>> which has support for msp430x26x series of processors.
>>
>> Now I have shifted to Linux for Blip 2.0 support in TinyOS-2.1.1. in
>> Linux(Ubuntu-11.04). Now I have msp430-gcc-4.5.3. I tried to compile the
>> application code (like Blink, Basestation, RadioCountToLeds etc..) in
>> Ubuntu-11.04 and I'm able to compile in PC.
>>
>> Also I'm able to port the code on to the Hardware Platform.
>>
>> *dwaraka@ubuntu:/opt/tinyosX/apps/Blink$ make mymote install*
>> *mkdir -p build/mymote*
>> *    compiling BlinkAppC to a mymote binary*
>> *ncc -o build/mymote/main.exe  -Os -fnesc-separator=__ -Wall -Wshadow
>> -Wnesc-all -target=mymote -fnesc-cfile=build/mymote/app.c -board=
>> -DDEFINED_TOS_AM_GROUP=0x22 -DIDENT_APPNAME=\"BlinkAppC\"
>> -DIDENT_USERNAME=\"dwaraka\" -DIDENT_HOSTNAME=\"ubuntu\"
>> -DIDENT_USERHASH=0xb9dea24aL -DIDENT_TIMESTAMP=0x4f44d6f9L
>> -DIDENT_UIDHASH=0x372758f1L  BlinkAppC.nc -lm *
>> *    compiled BlinkAppC to build/mymote/main.exe*
>> *            2176 bytes in ROM*
>> *              56 bytes in RAM*
>> *msp430-objcopy --output-target=ihex build/mymote/main.exe
>> build/mymote/main.ihex*
>> *    writing TOS image*
>> *cp build/mymote/main.ihex build/mymote/main.ihex.out*
>> *    found mote on /dev/ttyUSB0 (using bsl,auto)*
>> *    installing mymote binary using bsl*
>> *tos-bsl --telosb -c /dev/ttyUSB0 -r -e -I -p build/mymote/main.ihex.out*
>> *MSP430 Bootstrap Loader Version: 1.39-goodfet-8*
>> *Mass Erase...*
>> *Transmit default password ...*
>> *Invoking BSL...*
>> *Transmit default password ...*
>> *Current bootstrap loader version: 2.13 (Device ID: f26f)*
>> *Changing baudrate to 38400 ...*
>> *Program ...*
>> *2240 bytes programmed.*
>> *Reset device ...*
>> *rm -f build/mymote/main.exe.out build/mymote/main.ihex.out *
>> *dwaraka@ubuntu:/opt/tinyosX/apps/Blink$ *
>>
>>
>> The problem is that the code which was compiled in not working on the
>> Hardware.
>>
>>  I tried to debug using mspdebug and msp430-gdb with MSP430FET-UIF and
>> the result is as follows.
>>
>> *dwaraka@ubuntu:/opt/tinyosX/apps/Blink/build/telosb$ cd ../mymote/*
>> *dwaraka@ubuntu:/opt/tinyosX/apps/Blink/build/mymote$ mspdebug -jd
>> /dev/ttyUSB1 uif "prog main.exe"*
>> *MSPDebug version 0.18 - debugging tool for MSP430 MCUs*
>> *Copyright (C) 2009-2011 Daniel Beer <[email protected]>*
>> *This is free software; see the source for copying conditions.  There is
>> NO*
>> *warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> PURPOSE.*
>> *
>> *
>> *Trying to open UIF on /dev/ttyUSB1...*
>> *Initializing FET...*
>> *FET protocol version is 20402000*
>> *Configured for JTAG (2)*
>> *Set Vcc: 3000 mV*
>> *Device ID: 0xf26f*
>> *Device: MSP430F2616*
>> *Code memory starts at 0x2100*
>> *Number of breakpoints: 8*
>> *fet: FET returned NAK*
>> *fet: warning: message 0x30 failed*
>> *Erasing...*
>> *Programming...*
>> *Writing 2174 bytes to 3100 [section: .text]...*
>> *Writing    2 bytes to 397e [section: .data]...*
>> *Writing   64 bytes to ffc0 [section: .vectors]...*
>> *dwaraka@ubuntu:/opt/tinyosX/apps/Blink/build/mymote$ mspdebug -jd
>> /dev/ttyUSB1 uif "gdb"*
>> *MSPDebug version 0.18 - debugging tool for MSP430 MCUs*
>> *Copyright (C) 2009-2011 Daniel Beer <[email protected]>*
>> *This is free software; see the source for copying conditions.  There is
>> NO*
>> *warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
>> PURPOSE.*
>> *
>> *
>> *Trying to open UIF on /dev/ttyUSB1...*
>> *Initializing FET...*
>> *FET protocol version is 20402000*
>> *Configured for JTAG (2)*
>> *Set Vcc: 3000 mV*
>> *fet: FET returned error code 4 (Could not find device (or device not
>> supported))*
>> *fet: command C_IDENT1 failed*
>> *fet: identify failed*
>> *Trying again...*
>> *Initializing FET...*
>> *FET protocol version is 20402000*
>> *Configured for JTAG (2)*
>> *Sending reset...*
>> *Set Vcc: 3000 mV*
>> *Device ID: 0xf26f*
>> *Device: MSP430F2616          =========================> [ my hardware
>> is detecting as 2616 instead of 2618]*
>> *Code memory starts at 0x2100*
>> *Number of breakpoints: 8*
>> *fet: FET returned NAK*
>> *fet: warning: message 0x30 failed*
>> *Bound to port 2000. Now waiting for connection...*
>> *Client connected from 127.0.0.1:34933*
>> *Clearing all breakpoints...*
>> *Reading    2 bytes from 0x3100*
>> *Writing 2174 bytes to 0x3100*
>> *Writing    2 bytes to 0x397e*
>> *Writing   64 bytes to 0xffc0*
>> *Reading    2 bytes from 0x3100*
>> *Reading    2 bytes from 0x30fe*
>> *Running*
>> *Interrupted by gdb*
>> *Reading    2 bytes from 0x0408*
>> *Reading    2 bytes from 0x30fe*
>> *Running*
>> *Interrupted by gdb*
>> *Reading    2 bytes from 0x008c*
>> *Reading    2 bytes from 0x30fe*
>> *Running*
>> *Interrupted by gdb*
>> *Reading    2 bytes from 0x02fc*
>> *Reading    2 bytes from 0x30fe*
>> *Running*
>> *Interrupted by gdb*
>> *Reading    2 bytes from 0x312c*
>> *Reading    2 bytes from 0x312c*
>> *Reading    2 bytes from 0x3124*
>> *Reading    2 bytes from 0x3124*
>> *Reading    2 bytes from 0x3124*
>> *Reading    2 bytes from 0x3100*
>> *Running*
>> *
>> *
>> *
>> *
>> *
>> ////////////////////////////////////////////////////////////////////////////
>> *
>> *msp430-gdb*
>> *
>> ////////////////////////////////////////////////////////////////////////////
>> *
>> *
>> *
>> *
>> *
>> *dwaraka@ubuntu:/opt/tinyosX/apps/Blink/build/mymote$ msp430-gdb main.exe
>> *
>> *GNU gdb (GDB) 7.2*
>> *Copyright (C) 2010 Free Software Foundation, Inc.*
>> *License GPLv3+: GNU GPL version 3 or later <
>> http://gnu.org/licenses/gpl.html>*
>> *This is free software: you are free to change and redistribute it.*
>> *There is NO WARRANTY, to the extent permitted by law.  Type "show
>> copying"*
>> *and "show warranty" for details.*
>> *This GDB was configured as "--host=i686-pc-linux-gnu --target=msp430".*
>> *For bug reporting instructions, please see:*
>> *<http://www.gnu.org/software/gdb/bugs/>...*
>> *Reading symbols from
>> /opt/tinyosX/apps/Blink/build/mymote/main.exe...done.*
>> *(gdb) target remote localhost:2000*
>> *Remote debugging using localhost:2000*
>> *_reset_vector__ () at ../../gcc/config/msp430/crt0.S:118*
>> *118 ../../gcc/config/msp430/crt0.S: No such file or directory.*
>> * in ../../gcc/config/msp430/crt0.S*
>> *(gdb) load main.exe*
>> *Loading section .text, size 0x87e lma 0x3100*
>> *Loading section .data, size 0x2 lma 0x397e*
>> *Loading section .vectors, size 0x40 lma 0xffc0*
>> *Start address 0x3100, load size 2240*
>> *Transfer rate: 2 KB/sec, 746 bytes/write.*
>> *(gdb) c*
>> *Continuing.*
>> *^C*
>> *Program received signal SIGTRAP, Trace/breakpoint trap.*
>> *0x00000408 in ?? ()*
>> *(gdb) c*
>> *Continuing.*
>> *^C*
>> *Program received signal SIGTRAP, Trace/breakpoint trap.*
>> *0x0000008c in ?? ()*
>> *(gdb) n*
>> *Cannot find bounds of current function*
>> *(gdb) n*
>> *Cannot find bounds of current function*
>> *(gdb) n*
>> *Cannot find bounds of current function*
>> *(gdb) c*
>> *Continuing.*
>> *^C*
>> *Program received signal SIGTRAP, Trace/breakpoint trap.*
>> *0x000002fc in ?? ()*
>> *(gdb) *
>> *Continuing.*
>> *^C*
>> *Program received signal SIGTRAP, Trace/breakpoint trap.*
>> *__do_clear_bss () at ../../gcc/config/msp430/crt0.S:190*
>> *190 ../../gcc/config/msp430/crt0.S: No such file or directory.*
>> * in ../../gcc/config/msp430/crt0.S*
>> *(gdb) c*
>> *Continuing.*
>> *^C*
>> *Program received signal SIGTRAP, Trace/breakpoint trap.*
>> *0x00003136 in __do_clear_bss () at ../../gcc/config/msp430/crt0.S:192*
>> *192 in ../../gcc/config/msp430/crt0.S*
>> *(gdb) c*
>> *Continuing.*
>> *^C*
>> *Program received signal SIGTRAP, Trace/breakpoint trap.*
>> *0x00000450 in ?? ()*
>> *(gdb) n*
>> *Cannot find bounds of current function*
>> *(gdb) b __nesc_atomic_t __nesc_atomic_start*
>> *Function "__nesc_atomic_t" not defined.*
>> *Make breakpoint pending on future shared library load? (y or [n]) y*
>> *Breakpoint 1 (__nesc_atomic_t __nesc_atomic_start) pending.*
>> *(gdb) c*
>> *Continuing.*
>> *^C*
>> *Program received signal SIGTRAP, Trace/breakpoint trap.*
>> *0x00003136 in __do_clear_bss () at ../../gcc/config/msp430/crt0.S:192*
>> *192 in ../../gcc/config/msp430/crt0.S*
>> *(gdb) n*
>> *190 in ../../gcc/config/msp430/crt0.S*
>> *(gdb) n*
>> *191 in ../../gcc/config/msp430/crt0.S*
>> *(gdb) n*
>> *192 in ../../gcc/config/msp430/crt0.S*
>> *(gdb) n*
>> *190 in ../../gcc/config/msp430/crt0.S*
>>
>>
>> I couldnt understand where it is going wrong. I checked each and platform
>> specific file.
>> The changes I made are pushed into git repo .
>>
>> Can any body help???????
>>
>>
>> --
>> Tulasi Dwarakanath.V
>>
>
>
>
> --
> Tulasi Dwarakanath.V
>



-- 
Tulasi Dwarakanath.V
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to