RE: [coldfire-gnu-discuss] Problem with GDB - M52233DEMO - newbie

drakula drakulaj at seznam.cz
Thu May 17 21:23:59 UTC 2007


It works. Thank you.

Final command is:
target remote | m68k-elf-sprite pe://USBMultilink m52235evb 

Its bit long for typing every time, when i entered to GDB... but working . Im really very happy.

Jirka


PS: I usualy prefer my own prinf function, which is designed exactely for specific processor.


> ------------ Původní zpráva ------------
> Od: Seymour David-ra2693 <David.Seymour at freescale.com>
> Předmět: RE: [coldfire-gnu-discuss] Problem with GDB - M52233DEMO - newbie
> Datum: 17.5.2007 22:34:38
> ----------------------------------------
> Hi Jirka,
> You are missing one parameter to the "target remote" line.  Try:
> Target remote | m68k-elf-sprite pe://USBMultilink m52235evb
> 
> The m52235evb is pointing to the
> ~freescale-coldfire-4.1/m68k-elf-/lib/boards directory which has the
> *.xml files for the various evb's.
> Regards, 
> David 
> PS
> My helloworld will not compile into the 32K space the sram has :-(
> Printf's are a bit big.
> 
> David E Seymour
> -----Original Message-----
> From: drakula [mailto:drakulaj at seznam.cz] 
> Sent: Thursday, May 17, 2007 2:37 PM
> To: coldfire-gnu-discuss at codesourcery.com
> Subject: [coldfire-gnu-discuss] Problem with GDB - M52233DEMO - newbie
> 
> Hi,
> Im newbie in programming with your toolchain. I tried to load my Hello
> World to my processor via GDB and i got this error:
> 
> D:\robot\test>m68k-elf-gdb hello
> GNU gdb (Sourcery G++ Lite 4.1-32) 6.6.50.20061124-cvs
> Copyright (C) 2006 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-mingw32 --target=m68k-elf".
> For bug reporting instructions, please see:
> <URL:https://support.codesourcery.com/GNUToolchain/>.
> ..
> (no debugging symbols found)
> (gdb) target remote | m68k-elf-sprite pe://USBMultilink/PE6013619
> Remote debugging using | m68k-elf-sprite pe://USBMultilink/PE6013619
> m68k-elf-sprite:Opening P&E USBMultilink port 1 (USB1 : USB-ML-CF REF :
> Embedded
>  ColdFire Debug (PE6013619))
> m68k-elf-sprite:Missing config file; this may not work
> m68k-elf-sprite:Target reset
> 0x00000000 in ?? ()
> 
> It needs some Config file? Im not sure if its ok, that Im using
> -mcpu=52235 instead  52233. 
> 
> If I tried load it shows me:
> 
> (gdb) load
> Loading section .text, size 0x3058 lma 0x20000000
> m68k-elf-sprite:Memory write verification failed; config file error?
> Loading section .data, size 0x814 lma 0x20003058
> Start address 0x20000400, load size 14444
> Transfer rate: 115552 bits/sec, 4814 bytes/write.
> 
> 
> Compiling command is: 
> 
> m68k-elf-gcc -mcpu=52235 -o hello -T m52235evb-ram-hosted.ld hello.c
> 
> 
> Thanks Jirka 
> 
> 
> 



More information about the coldfire-gnu-discuss mailing list