Access Error When Running Factorical Sample on M52235EVB with CodeSourcery G++ Version 4.2-59-m68k-elf

Daniel McLean daniel.mclean at optusnet.com.au
Wed Apr 9 01:04:25 UTC 2008


Hi,

 

I can successfully run and debug all the samples from ROM (or RAM if they
fit) except for the factorial.c example.

 

This occurs on both the Dev Kit (M52235EVB) and a custom board I have here
(both using the PE Micro pod).

 

Below is a stack trace from the debugger:

 

sample [C/C++ Local Application]          

            Sourcery G++ Debug Sprite for ColdFire ELF (9/04/08 10:58)
(Suspended)          

                        Thread [0] (Suspended: Signal 'SIGTRAP' received.
Description: Trace/breakpoint trap.)   

                                    6 __cs3_isr_access_error()  0x000094d2 

                                    5 <symbol is not available> 0x44082700 

                                    4 _localeconv_r()  0x00005174   

                                    3 vfprintf()  0x0000257c 

                                    2 printf()  0x000005a6    

                                    1 main() at C:\Documents and
Settings\maczor\workspace\sample\factorial.c:15 0x0000051c        

            m68k-elf-gdb (9/04/08 10:58)      

            C:\Documents and Settings\maczor\workspace\sample\Debug\sample
(9/04/08 10:58)     

 

I can reproduce this problem by changing the printf line in the helloworld.c
file printf("Hello World! %d", 25);

 

Any ideas on what is causing this?  I'm going to try the 4.2-111 version to
see if there is any difference.

 

Thanks

Daniel 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20080409/de80b399/attachment.html>


More information about the coldfire-gnu-discuss mailing list