[ECOS] GDB stubs

Carlos Sobrinho duckman@epilog.ath.cx
Tue Apr 12 00:57:00 GMT 2005


Hi there. I'm having a problem with the gdb stubs. Could it have something to 
do with the gdb being 5.3 ?

I can't get a good compiled/linked library to work with my current gdb and the 
aeb-1 (ARM7 with a sharp cpu with 256KB of flash and RAM)

After I do:
----------------------------------------------------------------------------
* "ecosconfig new aeb stubs"
----------------------------------------------------------------------------
changed the startup to "ROM"
* cdl_component CYG_HAL_STARTUP {
    user_value ROM
};
----------------------------------------------------------------------------
* changed the include gdb stubs so that the script generates a good uuencoded 
version to send
cdl_option CYGBLD_BUILD_GDB_STUBS {
    user_value 1
};
----------------------------------------------------------------------------
* and after a make I get a 'good' uuencoded image
ecos > ls -la install/bin/
total 180K
drwxr-sr-x  2 duckman root   72 2005-04-10 05:07 ./
drwxr-sr-x  5 duckman root   40 2005-04-10 04:33 ../
-rwxr-xr-x  1 duckman root  32K 2005-04-10 04:33 gdb_module.bin*
-rwxr-xr-x  1 duckman root 101K 2005-04-10 04:33 gdb_module.img*
-rw-r--r--  1 duckman root  44K 2005-04-10 04:33 gdb_module.img.UU
----------------------------------------------------------------------------


After I send it to ecos, the module appears in the boot:
----------------------------------------------------------------------------
ARM Evaluation Board Boot Monitor 0.01 (19 APR 1998)
Press ENTER within 2 seconds to stop autoboot
Boot: flashload 4018000
Ready to download. Use 'transmit' option on terminal emulator to download 
file.
Boot: rommodules
Header   Base     Limit
04000004 04000000 040034a8 BootStrap    1.00 (14 Aug 1998)
0401f920 04018000 0401fe1c eCos         1.3   (Apr 10 2005) GDB stubs
Boot: plugin ecos
Boot: modules
Header   Base     Limit    Data
04000004 04000000 040034a8 00000000 BootStrap   1.00 (14 Aug 1998)
0401f920 04018000 0401fe1c 00000000 eCos        1.3  (Apr 10 2005) GDB stus
Boot:
----------------------------------------------------------------------------


After I plugin the module and try to run it simply does not work.
Even after I changed the serial speed from 38400 to 115200 I always get this 
string in the buffer:
----------------------------------------------------------------------------
$T050°:04920104;0:60830100;#°3
----------------------------------------------------------------------------



This is the normal string from the old gdb.
----------------------------------------------------------------------------
$T05thread:00000000;0f:10870104;0d:908e0000;#95
----------------------------------------------------------------------------



This seems like a good gdb string but gdb simply doesn't like it
----------------------------------------------------------------------------
[Epilog 3] ~ > arm-elf-gdb
GNU gdb 5.3
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=i686-pc-linux-gnu --target=arm-elf".
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
----------------------------------------------------------------------------
arm-elf-gcc -v
Reading specs from /home/ecos/tools-3.2.1/lib/gcc-lib/arm-elf/3.2.1/specs
Configured with: /tmp/src/gcc/gcc-3.2.1/configure --target=arm-elf 
--prefix=/home/ecos/tools-3.2.1 --enable-languages=c,c++ --with-gnu-as 
--with-gnu-ld --with-newlib --quiet 
--with-gxx-include-dir=/home/ecos/tools-3.2.1/arm-elf/include -v
Thread model: single
gcc version 3.2.1
----------------------------------------------------------------------------
GNU assembler version 2.15 (arm-elf) using BFD version 2.15
----------------------------------------------------------------------------


And for 115200 and lower speeds also no luck.


The main reason for this change was to change the speed of the serial port 
from 38400 to 115200 because the download time was getting big.

The image this is located in the 'images' dir:
----------------------------------------------------------------------------
[Epilog 6] ~ > v ~ecos/ecos/images/arm/aeb/
total 268K
drwxr-xr-x  2 duckman src  48 2004-03-27 01:29 CVS/
-rwxr-xr-x  1 duckman src 94K 2003-04-18 21:43 gdb_module.img*
-rw-r--r--  1 duckman src 35K 2004-03-27 01:29 gdb_module.img.UU
-rwxr-xr-x  1 duckman src 94K 2003-09-07 06:13 gdb_module-revC.img*
-rw-r--r--  1 duckman src 35K 2002-05-20 23:19 gdb_module-revC.img.UU
----------------------------------------------------------------------------

Works well except the speed factor already mentionated.

Also I already have some drivers for maxim ADC, LCD and I2C and others
What do I need to get this included? The SPI/I2C by software and the graphical 
routines for the LCD is done. Its a simple nokia display using SPI kind of 
connection.

With best regards, 
Carlos Sobrinho

PS: I have attached my export and ecos.ecc file
-- 
#############################################################################
# I am deeply CONCERNED and I want something GOOD for BREAKFAST!            #
#############################################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecos.ecc.gz
Type: application/x-gzip
Size: 27502 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050412/b4982f95/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: export.ecc.gz
Type: application/x-gzip
Size: 565 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/ecos-discuss/attachments/20050412/b4982f95/attachment-0001.bin>
-------------- next part --------------
-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


More information about the Ecos-discuss mailing list