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]

testing serial2 on EB40


I tried the serial2 test file on the ARM-EB40 board. Download and so on
works well but where are the messages which should be send?
The ecos is in the default package config. (nothing changed) I just only
want to know if this works.

Thanks in advance
Patrick Otto
Student employee at IMST (www.imst.com)
gdb) lo
Loading section .rom_vectors, size 0x40 lma 0x2020000
Loading section .text, size 0x7294 lma 0x2020040
Loading section .rodata, size 0x748 lma 0x20272d4
Loading section .data, size 0x530 lma 0x2027a1c
Start address 0x2020040, load size 32588
Transfer rate: 28967 bits/sec, 296 bytes/write.

(gdb) set debug remote 1
(gdb) cont
Continuing.

Sending packet: $Hc0#db...Ack
Packet received: OK
Sending packet: $c#63...Ack
Packet received:
O494E464F3A3C57726974696E6720612072617720737472696E6720746F20746865207365726
9616C206465766963652E2E2E3E0A
INFO:<Writing a raw string to the serial device...>
Packet received:
O494E464F3A3C57726974696E6720612047444220656E636F64656420737472696E6720746F2
07468652073657269616C206465766963652E2E2E3E0A
INFO:<Writing a GDB encoded string to the serial device...>
Packet received: O504153533A3C73657269616C322074657374204F4B3E0A
PASS:<serial2 test OK>
Packet received: O455849543A3C646F6E653E0A
EXIT:<done>
remote_stop called

from serial2
	66	    char test_msg1[]="This is a test message!\n";
-	67	    char
test_msg2[]="$O5468697320697320612074657374206d657373616765210d0a#12";
 	68	    int msglen;
 	69	    cyg_io_handle_t ser_handle;
 	70
-	71	    test_open_ser(&ser_handle);
 	72
-	73	    CYG_TEST_INFO("Writing a raw string to the serial device...");
-	74	    msglen = strlen(&test_msg1[0]);
-	75	    Tcyg_io_write(ser_handle, &test_msg1[0], &msglen); // here it
should be send
 	76
-	77	    CYG_TEST_INFO("Writing a GDB encoded string to the serial
device...");
-	78	    msglen = strlen(&test_msg2[0]);
-	79	    Tcyg_io_write(ser_handle, &test_msg2[0], &msglen);
 	80
-	81	    CYG_TEST_PASS_FINISH("serial2 test OK");




-- 
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]