This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Sample program (twothreads) won't work.


Check that your timer is running correctly. Run the kernel test
programs, eg clocktruth. The program needs a working clock and if its
not, you won't get out of the cyg_thread_delay calls in the thread.

     Andrew

On Wed, Sep 25, 2002 at 06:17:11PM +0900, ryosuke-tajima@mosk.tytlabs.co.jp wrote:
> Hi, all.
> 
> When I try the sample program in examples directory, 'twothreads'
> program doesn't work correctly. The output is below:
> 
> --
> 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-linux --target=sh-elf".
> The target is assumed to be big endian
> 0x80003afe in ?? ()
> Loading section .vectors, size 0x928 lma 0xc008000
> Loading section .text, size 0xa7e8 lma 0xc008928
> Loading section .rodata, size 0x514 lma 0xc013110
> Loading section .data, size 0xb20 lma 0xc013628
> Start address 0xc008000, load size 49476
> Transfer rate: 65968 bits/sec, 430 bytes/write.
> (gdb) c
> Continuing.
> Entering twothreads' cyg_user_start() function
> Beginning execution; thread data is 0
> Beginning execution; thread data is 1
> 
> --
> 
> and no following messages. The "hello" sample works fine. 
> 
> I found the similar question posted in this mailing list archives, but
> I can't find out the solution. 
> 
> I wanted to trace using gdb, but GDB ignored the break points which I
> set in twothreads.c.
> 
> I'm using SH7750 board(OYO105) which is slightly differnt from CQ7750,
> mainly in its memory maps. RedBoot communicating by serial cable and
> works fine. I can download program by sh-elf-gdb and minicom both.
> 
> I tried with new CVS repositry, and compiling with gcc-2.95.3 +
> newlib-1.10.0.
> 
> I only added option into configuration about baud rate.
> 
> cdl_option CYGNUM_HAL_SH_SH4_SCIF_BAUD_RATE {
>     user_value 115200
> };	   
> 
> Do I need some another option in .ecm file?
> 
> If you have any advice, please help me.
> 
> Regards,
> 
> 				Ryosuke Tajima	
> 				ryosuke-tajima@mosk.tytlabs.co.jp
> 				TOYOTA CENTRAL R&D LABS., INC.
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
> 

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]