Segmentation fault with Mini2440

alef
Hello,

I would like to use home-made programs on my Mini2440, so I first
installed the cross-compile toolchain provided by FriendlyArm
(arm-gcc-4.3.2). 

I simply compiled a simple program with this command :
./arm-none-linux-gnueabi-gcc ./test.c -o test

But when I run it on my Mini2440, I get a segmentation fault !
I don't understand why ...

I tried agin with these flags : 
-msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t

No seg fault occurs but I've got a different error....

Do you think I do the right things ?

Thanks !

themadmax
Try file command on host machine for verify binary type.
If you use FTP to send file to your board force binray transfer

alef
Thanks ! It works!

David
I have also met this problem but unfortunately I cannot understand the
answer. :-s

How can I do that you are suggested above? 

Thank you, David