This is the mail archive of the ecos-discuss@sourceware.org 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: Gdb 6.7, gcc 4.2.2, redboot on arm (gba), "target remote" doesn't work.


On Sun, Jan 13, 2008 at 08:14:56PM +0200, Sergei Gavrikov wrote:
> I don't vote for old toolcahin (and GCC-3.4.6 and GCC-4.2.2 beat the old
> GCC-3.2.1), but I vote for a smooth GNU debugging :-) We have a right to
> expect from new toolchain (GDB) no timeouts, no resets, no fails even if
> we run a batch
> 
>     $ find install/tests -type f -exec arm-elf-gdb -batch \{} \;

Just a remark. To run the batch I use next `.gdbinit' file

cat <<EOF > .gdbinit
set logging on
target remote /dev/ttyUSB0
load
b cyg_start
b cyg_test_exit
b cyg_assert_fail
c
c
set \$pc=warm_reset
detach
EOF

and build eCos tests as

ecosconfig new <target>
cat <<EOF | ecosconfig import /dev/stdin
cdl_option CYGPKG_INFRA_DEBUG {user_value 1};
cdl_option CYGDBG_USE_TRACING {user_value 1};
EOF
ecosconfig tree
make -s tests

and all GDB-6.X output you find in gdb.txt log file.

> This quite works for my ARM7TDMI-S targets with GDB 5.3/6.5/6.7.1.
> 
> But I found that with the Linux USB-to-serial driver need to drop
> /dev/ttyUSB0 once before a first GDB connection
> 
>     $ stty ispeed 38400 ospeed 38400 icanon -F /dev/ttyUSB0
>     $ cat /dev/ttyUSB0
> 
> Push a RST button and you have to see RedBoot's banner on your concole,
> then press C-C to break a read the /dev/ttyUSB0 and run a GDB session.
> 
> Sergei
> 
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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


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