Home/Support/Support Forum/How to create a executable for my device
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to create a executable for my device

0 votes
Hi,
after a long time my program is now ready to upload it to the first devices.
But I have some problems to do this.
If I "upload" the Program directly over Eclipse, it works just fine and if I execute it in the /tmp folder it also works.
Only if I upload it manually via FTP I get the Error

"Segmentation fault"

If I dowload the working file and reupload it to the same device I get also "Segmentation fault".

If I use gdb, I get following (not working program):

root@ccimx6ulstarter:/tmp# gdb myApp
"/run/media/mmcblk1p1/update/MyApp": not in executable format: File format not recognized

But if I determine the file type I get on both the same:

root@ccimx6ulstarter:/tmp# file myApp
myApp: ELF 32-bit LSB executable, ARM, EABI5 version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, stripped


Hope anyone can help me
asked Oct 23, 2018 in Embedded Devices by dbau New to the Community (10 points)
edited Oct 23, 2018 by dbau

Please log in or register to answer this question.

1 Answer

+1 vote
 
Best answer
are you transferring over ftp? if so are you using bin command prior to transfer?
answered Oct 23, 2018 by LeonidM Veteran of the Digi Community (2,821 points)
selected Oct 24, 2018 by dbau
Yes, I upload the file via FTP (FileZilla).

I tried it today with the console and "bareFTP", with both it works just fine.

So it seems to have something to do with FileZilla!?
Do you now if there are any settings I need to/ can make?
Hmmm. Ok, it looks like FileZilla will not save the Transfertype the first time.
I have to set it a second time to binary, now it works also with FileZilla.
Thanks! :)
...