[ Date Prev][ Date Next][ Thread Prev][ Thread Next][ Date Index][ Thread Index]
Re: [coldfire-gnu-discuss] zero divide trap when running Debug Sprite Example "Fibo"
- To: Christof Frey <Christof.Frey@xxxxxxxxxx>
- Subject: Re: [coldfire-gnu-discuss] zero divide trap when running Debug Sprite Example "Fibo"
- From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
- Date: Thu, 24 Jul 2008 09:30:37 -0700
Christof Frey wrote:
The problem is in the linker script for MCF5235 provided by the toolchain.
- When linking with the script "m5275evb-ram-hosted.ld" the application runs as expected.
- when using "m5235evb-ram-hosted.ld" it fails as per subject (zero divide trap)
That's interesting. I see two differences: the length of the ipsbar
memory region, and the startup code used. Would you be willing to try
editing the M5235 linker script to see which of these is the problem?
In particular, if you change:
PROVIDE(__cs3_reset_m5235evb = _start);
__cs3_reset = __cs3_reset_m5235evb;
to use m52755 does that help?
What about if you change:
ipsbar (rw) : ORIGIN = 0x40000000, LENGTH = 2M
to:
ipsbar (rw) : ORIGIN = 0x40000000, LENGTH = 0x200000
Finally, what about adding:
LONG (0)
right before:
__cs3_regions_end = .;
Thanks,
--
Mark Mitchell
CodeSourcery
mark@xxxxxxxxxxxxxxxx
(650) 331-3385 x713
|