TBLCF & 52233 & GDB connection fail

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TBLCF & 52233 & GDB connection fail

1,764 Views
DarekM
Contributor I

I have problem with load programs by TBLCF to MCF52233EVB (RAM & FLASH)

When I use CodeSourcery GDB  I getting error message:

 

>>m68k-elf-gdb M52235EVBUARTDebug.elf
GNU gdb (Sourcery G++ Lite 4.3-208) 6.8.50.20081022-cvs
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-mingw32 --target=m68k-elf".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>...
(gdb) target remote | m68k-elf-sprite -g tblcf: m52235evb
Remote debugging using | m68k-elf-sprite -g tblcf: m52235evb
m68k-elf-sprite: CodeSourcery ColdFire Debug Sprite (Sourcery G++ Lite 4.3-208)
m68k-elf-sprite: Doing I/O to stdin/stdout
m68k-elf-sprite: Memory [0x0,+0x40000) flash (cfm)
m68k-elf-sprite: Memory [0x20000000,+0x8000) ram
m68k-elf-sprite: Trying to load DLL 'libusb0.dll'
m68k-elf-sprite: libusb DLL version 0.1.12.1
m68k-elf-sprite: libusb driver version 0.1.12.1
m68k-elf-sprite: Found 1 TBLCF devices, connecting to #0
m68k-elf-sprite: error: Error claiming interface (-22, unknown reason)
m68k-elf-sprite: debug comm:input 15 bytes +$qSupported#37

m68k-elf-sprite: debug comm:Not in sync.  Ignoring '+'
m68k-elf-sprite: Got packet: 'qSupported'
m68k-elf-sprite: debug comm:Send ack
m68k-elf-sprite: Sent response: 'E.fatal.Error claiming interface (-22, unknown
reason)'
warning: Remote failure reply: E.fatal.Error claiming interface (-22, unknown re
ason)
m68k-elf-sprite: debug comm:input 1 bytes +

m68k-elf-sprite: debug comm:Got ack
Remote communication error: No error.
(gdb)

 

 When i use GDB Server (downloaded from ftp://ftp.rtems.com/pub/rtems/people/chrisj/bdm/m68k-bdm-1.4-pre3.exe) and GDB i getting error:

 

>>m68k-bdm-gdbserver.exe :7777 bus-0-\\.\libusb0-0003--0x0425-0x1001
m68k-bdm: detected MCF52223 (MCF52235)
m68k-bdm: architecture CF52223 connected to bus-0-\\.\libusb0-0003--0x0425-0x1001
m68k-bdm: Coldfire debug module version is 9 (52223/52235)
Process bus-0-\\.\libusb0-0003--0x0425-0x1001 created; pid = 0
gdbserver: Listening on port 7777
Remote debugging from host 127.0.0.1
m68k-bdm: error: No response to BDM request
m68k-bdm: error: No response to BDM request

 

 

>>m68k-elf-gdb M52235EVBUARTDebug.elf
GNU gdb (Sourcery G++ Lite 4.3-208) 6.8.50.20081022-cvs
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-mingw32 --target=m68k-elf".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>...
(gdb) target remote :7777
Remote debugging using :7777
0x20000004 in ?? ()
(gdb) load
Loading section .vectors, size 0x400 lma 0x20000500
Load failed
(gdb) set debug remote 1
(gdb) load
Loading section .vectors, size 0x400 lma 0x20000500
Sending packet: $X20000500,400: \000\177Ř \000\020Ş \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025( \000\025
( \000\025( \000\025( \000\025(#a2...Ack
Packet received: E01
Load failed
(gdb) c
Continuing.
Sending packet: $vCont?#49...Ack
Packet received: vCont;c;C;s;S
Packet vCont (verbose-resume) is supported
Sending packet: $vCont;c#a8...Ack
Packet received: S0a
Sending packet: $g#67...Ack
Packet received: cf20608910a010707e2a3905d4ef061c35f97bbce7f22bdcbd770f7fa798b24
eba6bfe5d6d6a399c57b3306f6b668e22c82351ed00000000f55f403c00000000000027060000000
80000000000000000458840844bf060a4000000000000012168feddee00000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000035f97bb
ce7f22bdcbd770f7f

Program received signal SIGBUS, Bus error.
0x00000008 in ?? ()
(gdb)

 

 The ELF file was compliled direct from Codewarrior 7.1.1 examples without modifications.

 

 

 

 

 Could You tell me what I doing wrong?

 

M52235EVBUARTDebug.zip

Message Edited by t.dowe on 2009-09-17 09:39 AM
Labels (1)
0 Kudos
1 Reply

387 Views
ChrisJohns
Contributor I

I cannot comment on the Codesourcery sprite thingy and I suggest you email one of there lists. They are an excellent company and should offer support on the lists.

 

For the GDB server from the BDM project which you pulled from the RTEMS servers there may be bugs. Please make sure you are using the latest code from git on the project page. There has been a few fixes that resolve a number of issues. The BDM project's GDB server should work with the Codesourcery one. We use the FSF sources but I am sure their's will track very closely to the FSF source or be the same. If you need a hand please email me directly on chrisj@rtems.org and we can sort out any specifics.

0 Kudos