zero divide trap when running Debug Sprite Example "Fibo"
Christof Frey
Christof.Frey at varian.com
Thu Jul 3 06:56:00 UTC 2008
Hi,
when running the example on page 51 of the Getting Started guide on a BCC5235 Coldfire board I am getting a zero divide trap.
Is this related to the library used ? (note: the board has still the Freescale dBug monitor application in flash - is there an interference ?)
Compile command used is: m68k-elf-gcc -mcpu=5235 -Tm5235evb-ram-hosted.ld fib.c -o fib -g
C:\Projects\fibo>m68k-elf-gdb fib
GNU gdb (Sourcery G++ Lite 4.2-125) 6.7.50.20080107-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 pe://ParallelPortCable m5235evb
Remote debugging using |m68k-elf-sprite pe://ParallelPortCable m5235evb
m68k-elf-sprite: Opening P&E ParallelPortCable port 1 (LPT1 : Parallel Port 1 (A
ddress $0378))
m68k-elf-sprite: Target reset
0x00000000 in __cs3_interrupt_vector_coldfire ()
(gdb) load
Loading section .text, size 0xdf4 lma 0x0
Loading section .eh_frame, size 0x4 lma 0xdf4
Loading section .rodata, size 0x68 lma 0xdf8
Loading section .data, size 0x400 lma 0xe60
Start address 0xcc4, load size 4704
Transfer rate: 4 KB/sec, 1176 bytes/write.
(gdb) break main
Breakpoint 1 at 0x608: file fib.c, line 16.
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000d3a in __cs3_isr_divide_by_zero ()
(gdb)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080702/158585d5/attachment.html>
More information about the coldfire-gnu-discuss
mailing list