[coldfire-gnu-discuss] zero divide trap when running Debug Sprite Example "Fibo"
Mark Mitchell
mark at codesourcery.com
Thu Jul 24 16:30:37 UTC 2008
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 at codesourcery.com
(650) 331-3385 x713
More information about the coldfire-gnu-discuss
mailing list