[coldfire-gnu-discuss] Coldfire 52235evb debug problem

Nathan Braun braun at stzedn.de
Thu Jan 15 07:00:40 UTC 2009


Hi Roberto,

I use:

set $pc = _start
continue

@0x0000 there is the start address of the program and not the first
instruction on the ColdFire.

Please consider also the remarks in
http://www.codesourcery.com/archives/coldfire-gnu-discuss/msg00559.html
which addresses some issues when debugging from Flash. Maybe your
linker script links OK. The symbol _start must not point to 0x400
since the ColdFire expects memory access bit masks there. Otherwise
later the program will run into memory access exceptions.

Best regards
Nathan Braun

Roberto Abbiati schrieb:
> Hi,
> I'm using eclipse and Sourcery G++ Lite Edition with a coldfire EVM. I
> have used the FREERTOS code (Coldfire V2 RTOS and TCP/IP Demo).
> I can build the project and download the program in flash memory using
> freescale's "CF Flasher 3.1".
> Problems arise when I try to debug the code.
> To identify the problem, I have used the command prompt console and text
> commands. The steps are:
> 1/ m68k-elf-gdb RTOSDemo.elf
> RESPONSE:
> GNU gdb (Sourcery G++ Lite 4.3-54) 6.8.50.20080821-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/>...
>  
>  
>  
> 2/ (gdb) target remote | m68k-elf-sprite pe://USBMultilink m52235evb
> RESPONSE:
> Remote debugging using | m68k-elf-sprite pe://USBMultilink m52235evb
> m68k-elf-sprite: Opening P&E USBMultilink port 1 (USB1 : USB-ML-CF REF :
> Future
> MCF5223xPoE Badge (PE6011471))
> m68k-elf-sprite: Target reset
> 0x00000000 in __cs3_interrupt_vector_coldfire ()
>  
> 3/ (gdb) c
> Continuing.
> RESPONSE:
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x0000000a in __cs3_interrupt_vector_coldfire ()
>  
> If I try to continue, I always obtain this kind of response.
>  
> Instead, if I try the step command:
>  
> (gdb) step
> RESPONSE:
> Single stepping until exit from function __cs3_interrupt_vector_coldfire,
> which has no line number information.
> and the program waits forever, so I must close the command prompt shell.
>  
> Could anyone help me?
> Thanks
>  
> Roberto

-- 
Dipl. Ing. (FH) Nathan Braun
Tel: +49 7634 6949341
Fax: +49 7634 5049886
Mob: +49 178 7935705

Steinbeis-Transferzentrum Embedded Design und Networking
an der Berufsakademie Lörrach
Poststraße 35, 79423 Heitersheim
Leiter: Prof. Dr.-Ing. Axel Sikora
Fon: +49 -7634-6949-340
Fax: +49 -7634-5049-886
Mail: info at stzedn.de

Zentrale:
Steinbeis GmbH & Co. KG für Technologietransfer
Willi-Bleicher-Straße 19, 70174 Stuttgart
Registergericht Stuttgart HRA 12 480

Komplementär: Steinbeis-Verwaltung-GmbH, Registergericht Stuttgart
HRB 18715
Geschäftsführer: Prof. Dr. Heinz Trasch, Prof. Dr. Michael Auer

Der Inhalt dieser E-Mail einschließlich aller Anhänge ist
vertraulich und
ausschließlich für den bezeichneten Adressaten bestimmt. Wenn Sie
nicht der
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein
sollten, so
beachten Sie bitte, dass jede Form der Kenntnisnahme, Veröffentlichung,
Vervielfältigung oder Weitergabe des Inhalts dieser E-Mail
unzulässig ist.
Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in
Verbindung zu setzen, sowie die Originalnachricht zu löschen und
alle Kopien
hiervon zu vernichten.

This e-mail message including any attachments is for the sole use of the
intended recipient(s) and may contain privileged or confidential
information. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please immediately
contact the sender by reply e-mail and delete the original message and
destroy all copies thereof.



More information about the coldfire-gnu-discuss mailing list