grahamlab <[email protected]> writes: > I decided to try and get the serial tests working but have run into some > problems - here is what I do > > In a cmd window I type the command 'ser_filter -t 9000 /dev/ttyS0 38400' > this gives the following output - [b7cc18c0 Tu 07:33:38] > ConnectSocketToSerial : socket 3 <--> /dev/ttyS0 [b7cc18c0 Tu 07:33:38] > Applysettings baud=38400 bParity=0 stopbits=1 databits=8 [b7cc18c0 Tu > 07:33:38] Changing configuration... > [b7cc18c0 Tu 07:33:38] Done. > [b7cc18c0 Tu 07:33:38] ConnectSocketToSerial: waiting for connection... > > In another cmd window I type the command arm-eabi-gdb -x gdb.init > ../../DevBoard_install/tests/io/serial/v3_0/tests/serial3 > At the gdb prompt I type the following commands set remotebaud 38400 set > remote memory-write-packet-size 64 target remote localhost:9000 > > The ser_filter program shows that a connection has been made - [b7cc18c0 Tu > 07:43:12] Connection accepted from localhost - socket 5 [b7cc18c0 Tu > 07:43:12] ConnectSocketToSerial: connected > > At the gdb prompt I type 'c' but nothing further happens. > > What am I doing wrong?
OK, I've just tried this all out myself. Admittedly using a STM3210C rather than an E board, but there should be no differences at this level. I used the serial4 test built for RAM startup and I was running from a SuSE 11.0 host system. Appended are the trace from ser_filter and my entire GDB session. As you can see, it all seems to be working for me. Take a look at these and see if there is anything I'm doing that you are not, or vice versa. Note that the set remotebaud and set remote memory-write-packet-size may not have much effect, I would leave them out. $ ser_filter -t 1234 /dev/ttyUSB0 38400 [f7e2f6c0 Tu 11:04:39] ConnectSocketToSerial : socket 3 <--> /dev/ttyUSB0 [f7e2f6c0 Tu 11:04:39] Applysettings baud=38400 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:04:39] Changing configuration... [f7e2f6c0 Tu 11:04:39] Done. [f7e2f6c0 Tu 11:04:39] ConnectSocketToSerial: waiting for connection... [f7e2f6c0 Tu 11:04:48] Connection accepted from localhost - socket 5 [f7e2f6c0 Tu 11:04:48] ConnectSocketToSerial: connected [f7e2f6c0 Tu 11:05:22] Applysettings baud=38400 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:22] Changing configuration... [f7e2f6c0 Tu 11:05:22] Done. [f7e2f6c0 Tu 11:05:23] Applysettings baud=9600 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:23] Changing configuration... [f7e2f6c0 Tu 11:05:23] Done. [f7e2f6c0 Tu 11:05:23] Applysettings baud=38400 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:23] Changing configuration... [f7e2f6c0 Tu 11:05:23] Done. [f7e2f6c0 Tu 11:05:23] Applysettings baud=9600 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:23] Changing configuration... [f7e2f6c0 Tu 11:05:23] Done. [f7e2f6c0 Tu 11:05:25] Applysettings baud=14400 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:25] Applysettings baud=9600 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:25] Changing configuration... [f7e2f6c0 Tu 11:05:25] Done. [f7e2f6c0 Tu 11:05:26] Applysettings baud=19200 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:26] Changing configuration... [f7e2f6c0 Tu 11:05:26] Done. [f7e2f6c0 Tu 11:05:26] Applysettings baud=9600 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:26] Changing configuration... [f7e2f6c0 Tu 11:05:26] Done. [f7e2f6c0 Tu 11:05:26] Applysettings baud=19200 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:26] Changing configuration... [f7e2f6c0 Tu 11:05:26] Done. [f7e2f6c0 Tu 11:05:28] Applysettings baud=19200 bParity=1 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:28] Changing configuration... [f7e2f6c0 Tu 11:05:28] Done. [f7e2f6c0 Tu 11:05:28] Applysettings baud=19200 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:28] Changing configuration... [f7e2f6c0 Tu 11:05:28] Done. [f7e2f6c0 Tu 11:05:28] Applysettings baud=19200 bParity=1 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:28] Changing configuration... [f7e2f6c0 Tu 11:05:28] Done. [f7e2f6c0 Tu 11:05:29] Applysettings baud=19200 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:29] Changing configuration... [f7e2f6c0 Tu 11:05:29] Done. [f7e2f6c0 Tu 11:05:30] Applysettings baud=19200 bParity=1 stopbits=2 databits=8 [f7e2f6c0 Tu 11:05:30] Changing configuration... [f7e2f6c0 Tu 11:05:30] Done. [f7e2f6c0 Tu 11:05:30] Applysettings baud=19200 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:30] Changing configuration... [f7e2f6c0 Tu 11:05:30] Done. [f7e2f6c0 Tu 11:05:30] Applysettings baud=19200 bParity=1 stopbits=2 databits=8 [f7e2f6c0 Tu 11:05:30] Changing configuration... [f7e2f6c0 Tu 11:05:30] Done. [f7e2f6c0 Tu 11:05:31] Applysettings baud=19200 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:31] Changing configuration... [f7e2f6c0 Tu 11:05:31] Done. [f7e2f6c0 Tu 11:05:32] Applysettings baud=19200 bParity=0 stopbits=2 databits=8 [f7e2f6c0 Tu 11:05:32] Changing configuration... [f7e2f6c0 Tu 11:05:32] Done. [f7e2f6c0 Tu 11:05:32] Applysettings baud=19200 bParity=0 stopbits=1 databits=8 [f7e2f6c0 Tu 11:05:32] Changing configuration... [f7e2f6c0 Tu 11:05:32] Done. [f7e2f6c0 Tu 11:05:32] Applysettings baud=19200 bParity=0 stopbits=2 databits=8 [f7e2f6c0 Tu 11:05:32] Changing configuration... [f7e2f6c0 Tu 11:05:32] Done. GNU gdb (eCosCentric GNU tools 4.3.2a) 6.8.50.20080706 Copyright (C) 2008 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=arm-eabi". For bug reporting instructions, please see: <http://bugzilla.ecoscentric.com/>... Redefine command "bdm"? (y or n) [answered Y; input not from terminal] (gdb) target remote localhost:1234 Remote debugging using localhost:1234 0x800242e: bx lr 0x0800242e in ?? () (gdb) break cyg_test_exit Breakpoint 1 at 0x20003f34: file /home/nickg/local/ecos/ecoscentric_common/ecos/packages/infra/current/src/tcdiag.cxx, line 309. (gdb) load Loading section .rom_vectors, size 0x8 lma 0x20001000 Loading section .text, size 0x577c lma 0x20001008 Loading section .rodata, size 0x8ac lma 0x20006788 Loading section .data, size 0x2f0 lma 0x20007038 Start address 0x20001009, load size 25376 Transfer rate: 2 KB/sec, 295 bytes/write. (gdb) c Continuing. INFO: <code from 0x20001008 -> 0x20006784, CRC b869> INFO:<Serial device /dev/ser1> [f] Dispatching command PING. [f] Command PING completed. INFO:<CONFIG:15:8:1:0:0!> [f] Dispatching command CONFIG. [f] Parsed Config baud=9600, bParity=0, stopbits=0, databits=8 [f] Parsed Config xonxoff_rx=0,tx=0, rtscts_rx=0,tx=0, dsrdtr_rx=0,tx=0 [f] Config change succeeded. [f] Command CONFIG completed. INFO:<BINARY:128:1!> [f] Dispatching command BINARY. [f] Finished write, waiting for target echo. [f] Command BINARY completed. PASS:<Binary test completed> INFO:<BINARY:256:0!> [f] Dispatching command BINARY. [f] Command BINARY completed. PASS:<Binary test completed> INFO:<CONFIG:16:8:1:0:0!> [f] Dispatching command CONFIG. [f] Parsed Config baud=14400, bParity=0, stopbits=0, databits=8 [f] Parsed Config xonxoff_rx=0,tx=0, rtscts_rx=0,tx=0, dsrdtr_rx=0,tx=0 [f] Command CONFIG completed. INFO:<CONFIG:16:8:1:0:0!- skipped by host!> Host didn't accept config (45, 52). INFO:<CONFIG:17:8:1:0:0!> [f] Dispatching command CONFIG. [f] Parsed Config baud=19200, bParity=0, stopbits=0, databits=8 [f] Parsed Config xonxoff_rx=0,tx=0, rtscts_rx=0,tx=0, dsrdtr_rx=0,tx=0 [f] Config change succeeded. [f] Command CONFIG completed. INFO:<BINARY:128:1!> [f] Dispatching command BINARY. [f] Finished write, waiting for target echo. [f] Command BINARY completed. PASS:<Binary test completed> INFO:<BINARY:256:0!> [f] Dispatching command BINARY. [f] Command BINARY completed. PASS:<Binary test completed> INFO:<CONFIG:17:8:1:1:0!> [f] Dispatching command CONFIG. [f] Parsed Config baud=19200, bParity=1, stopbits=0, databits=8 [f] Parsed Config xonxoff_rx=0,tx=0, rtscts_rx=0,tx=0, dsrdtr_rx=0,tx=0 [f] Config change succeeded. [f] Command CONFIG completed. INFO:<CONFIG:17:8:3:1:0!> [f] Dispatching command CONFIG. [f] Parsed Config baud=19200, bParity=1, stopbits=2, databits=8 [f] Parsed Config xonxoff_rx=0,tx=0, rtscts_rx=0,tx=0, dsrdtr_rx=0,tx=0 [f] Config change succeeded. [f] Command CONFIG completed. INFO:<CONFIG:17:8:3:0:0!> [f] Dispatching command CONFIG. [f] Parsed Config baud=19200, bParity=0, stopbits=2, databits=8 [f] Parsed Config xonxoff_rx=0,tx=0, rtscts_rx=0,tx=0, dsrdtr_rx=0,tx=0 [f] Config change succeeded. [f] Command CONFIG completed. INFO:<BINARY:128:1!> [f] Dispatching command BINARY. [f] Finished write, waiting for target echo. [f] Command BINARY completed. PASS:<Binary test completed> INFO:<BINARY:256:0!> [f] Dispatching command BINARY. [f] Command BINARY completed. PASS:<Binary test completed> PASS:<serial4 test OK> EXIT:<done> [Switching to Thread 2] 0x20003f34 <cyg_test_exit>: ldr.w lr, [pc, #72] ; 0x20003f80 <cyg_test_exit+76> Current language: auto; currently c++ Breakpoint 1, cyg_test_exit () at /home/nickg/local/ecos/ecoscentric_common/ecos/packages/infra/current/src/tcdiag.cxx:309 (gdb) -- Nick Garnett eCos Kernel Architect eCosCentric Limited http://www.eCosCentric.com The eCos experts Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No: 4422071 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
