This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

getting an illegal instruction error and exiting while running on beagle board

Note: This was originally posted on 16th January 2013 at http://forums.arm.com

Hi ..
           I am getting an illegal instruction error and exiting while running on beagle board , code i have cross compiled on linux machine,  the error is coming at different places for multiple runs,   code has no assembly,    the same code is successfully running on  beagle board when compiled with Code Worrier and executing with TRACE 32 tool,
            How to solve this issue any idea...?


Thanks in advance,
mahesh
Parents
  • Note: This was originally posted on 18th January 2013 at http://forums.arm.com


    First guess would either incorrect compiler flags, or something like having the FPU disabled.  You haven't given much to go on.

    Have you looked at the instruction(s) that triggered the error?



    Hi,

            Thanks for the reply,   I have given the compiler options  
        CC =  arm-unknown-linux-gnueabi-gcc -mfloat-abi=softfp  
    CFLAGS = -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -O3

           I do not have clear idea when to use softfp or soft or hard ....

    I do not have native compiler installed on my beagle board (rev  C), so i am using the cross_compiler tool chain , I am getting run time error as "Illegal instruction" nothing more than that,  Is there any other way of knowing more about the error...?
Reply
  • Note: This was originally posted on 18th January 2013 at http://forums.arm.com


    First guess would either incorrect compiler flags, or something like having the FPU disabled.  You haven't given much to go on.

    Have you looked at the instruction(s) that triggered the error?



    Hi,

            Thanks for the reply,   I have given the compiler options  
        CC =  arm-unknown-linux-gnueabi-gcc -mfloat-abi=softfp  
    CFLAGS = -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -O3

           I do not have clear idea when to use softfp or soft or hard ....

    I do not have native compiler installed on my beagle board (rev  C), so i am using the cross_compiler tool chain , I am getting run time error as "Illegal instruction" nothing more than that,  Is there any other way of knowing more about the error...?
Children
No data