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]

Gdb 6.7, gcc 4.2.2, redboot on arm (gba), "target remote" doesn't work.


Hello.

I try to use redboot on a Game Boy Advance (arm). I use the latest release of ecos found on cvs with my own hal.

When i try to use gdb for running the twothreads example i have the following problem in gdb :

8<----------------------------------------------------------
# arm-thumb-elf-gdb twothreads
GNU gdb 6.7.1
Copyright (C) 2007 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-thumb-elf"...
(gdb) set remotebaud 57600
(gdb) set debug remote 1
(gdb) set debug serial 1
(gdb) target remote /dev/ttyUSB0
Remote debugging using /dev/ttyUSB0
Sending packet: $qSupported#37...[
r ÿ]putpkt: Junk: [+]
Ack
[\r][\n][R][e][d][B][o][o][t][(][t][m][)][ ][b][o][o][t][s][t][r][a][p][ ][a][n][d][ ][d][e][b][u][g][ ][e][n][v][i][r][o][n][m][e][n][t][ ][[][R][O][M][]][\r][\n][N][o][n][-][c][e][r][t][i][+][\r][\n][R][e][d][B][o][o][t][(][t][m][)][ ][b][o][o][t][s][t][r][a][p][ ][a][n][d][ ][d][e][b][u][g][ ][e][n][v][i][r][o][n][m][e][n][t][ ][[][R][O][M][]][\r][\n][N][o][n][-][c][e][r][t][i][f][i][e][d][ ][r][e][l][e][a][s][e][,][ ][v][e][r][s][i][o][n][ ][U][N][K][N][O][W][N][ ][-][ ][b][u][i][l][t][ ][2][1][:][2][7][:][3][4][,][ ][J][a][n][ ][1][2][ ][2][0][0][8][\r][\n][\r][\n][P][l][a][t][f][o][r][m][:][ ][G][B][A][ ][(][A][R][M][ ][7][T][D][M][I][)][ ][\r][\n][C][o][p][y][r][i][g][h][t][ ][(][C][)][ ][2][0][0][0][,][ ][2][0][0][1][,][ ][2][0][0][2][,][ ][2][0][0][3][,][ ][2][0][0][4][ ][R][e][d][ ][H][a][t][,][ ][I][n][c][.][\r][\n][C][o][p][y][r][i][g][h][t][ ][(][C][)][ ][2][0][0][3][,][ ][2][0][0][4][,][ ][2][0][0][5][,][ ][2][0][0][6][ ][e][C][o][s][C][e][n][t][r][i][c][ ][L][i][m][i][t][e][d][\r][\n][\r][\n][R][A][M][:][ ][0][x][0][2][0][0][0][0][0][0][-][0][x][0][2][0][4][0][0][0][0][,][ ][[][0][x][0][2][0][0][6][1][9][8][-][0][x][0][2][0][1][d][0][0][0][]][ ][a][v][a][i][l][a][b][l][e][\r][\n][F][L][A][S][H][:][ ][0][x][0][8][0][0][0][0][0][0][ ][-][ ][0][x][8][8][0][0][0][0][0][,][ ][3][2][ ][b][l][o][c][k][s][ ][o][f][ ][0][x][0][0][0][2][0][0][0][0][ ][b][y][t][e][s][ ][e][a][c][h][.][\r][\n][R][e][d][B][o][o][t][>][ ][q][S][u][p][<Timeout: 2 seconds>]Timed out.
[-][<Timeout: 2 seconds>]Timed out.
[-][<Timeout: 2 seconds>]Timed out.
Ignoring packet error, continuing...
Packet qSupported (supported-packets) is supported
warning: unrecognized item "timeout" in "qSupported" response
Sending packet: $Hc-1#09...[-]Nak
Sending packet: $Hc-1#09...Quit
8<----------------------------------------------------------


The toolchain is built on gcc 4.2.2 :

8<----------------------------------------------------------
# arm-thumb-elf-gcc -v
Using built-in specs.
Target: arm-thumb-elf
Configured with: /home/paul/Gba/sources/gcc-4.2.2/configure --prefix=/opt/gba/xtools --target=arm-thumb-elf --with-cpu=arm7tdmi --disable-shared --disable-threads --disable-nls --disable-__cxa_atexit --enable-multilib --enable-languages=c,c++ -v
Thread model: single
gcc version 4.2.2
8<----------------------------------------------------------

So i think, the problem is that gdb can't talk with redboot. Do you think it is a problem from the toolchain or from redboot or from my hal implementation ?

Thanks for your suggestions.

Paul.

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