Compiling the example microcontroller firmware

Platform for Telematic Applications
S.Michaelsen
Hardware Development
Hardware Development
Posts: 87
Joined: Fri 10. Sep 2010, 13:11

Re: Compiling the example microcontroller firmware

Post by S.Michaelsen » Thu 22. Dec 2011, 09:11

Hello JWPHRIJK,

the error log you posted does not match to the makefile from the .zip archive Mr. Hessemer attached to his last post (Projekt Version 1.6.2). Could you please confirm that the Makefile is the right one and all header files are located in the right directory. Are you able to compile the project as it is in the .zip file?


Regards,

Stephan Michaelsen

jwphrijk
Posts: 15
Joined: Wed 21. Dec 2011, 22:19

Re: Compiling the example microcontroller firmware

Post by jwphrijk » Sun 8. Apr 2012, 20:20

Hi Stephan,

Yes you're right my mistake. I'm not familiar with the make file concept.
the zip file compiles allright.

Thanks for your help.

rm567
Posts: 1
Joined: Tue 28. Aug 2012, 14:49

Re: Compiling the example microcontroller firmware

Post by rm567 » Tue 28. Aug 2012, 15:08

Hello,

I'm experiencing a similar problem to the previous posts (although I'm not associated with the previous company)... it appears that I also need the 4.13 version of the Kiel compiler.


So I followed Fabian's guide and downloaded the Makefile. However I seem to be having trouble working through the instructions...

Firstly, I unzip the Makefile to the desktop and start up the command prompt.

(Type as follows)

cd C:\Documents and Settings\localadmin\Desktop\MakefileProject

C:\Documents and Settings\localadmin\Desktop\MakefileProject> make clean
process_begin: CreateProcess((null), echo, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [begin] Error 2

C:\Documents and Settings\localadmin\Desktop\MakefileProject> make all
process_begin: CreateProcess((null), echo, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [begin] Error 2


I seem to get these errors every time. Therefore I cannot 'find the firmware file Start.bin in the subdirectory .out' as stated in the manual.


I hope someone can help me out with this problem.


Regards,

Richard.

S.Michaelsen
Hardware Development
Hardware Development
Posts: 87
Joined: Fri 10. Sep 2010, 13:11

Re: Compiling the example microcontroller firmware

Post by S.Michaelsen » Thu 30. Aug 2012, 09:08

Hello Richard,

which operating system do you use? Is it Windows 7? In this case please try to move the project to another folder (like C:\MakefileProject for example) to make sure that this is not a problem concerning the user rights.


Best Regards,

Stephan Michaelsen

JPS7495
Posts: 9
Joined: Fri 18. Dec 2015, 10:38

Re: Compiling the example microcontroller firmware

Post by JPS7495 » Tue 25. Oct 2016, 16:36

Hello,
I have the same problem under Windows 7 enterprise, I've moved the directory with no success.
What can I do?
Here what I have on screen :
Creating bin file firmware.bin
cp firmware.hex temp.hex
hex2bin.exe -s 0000 temp.hex
process_begin : CreateProcess(NULL, hex2bin.exe -s 0000 temp.hex, ...) failed
make (e=2) : can't find file

regards

S.Michaelsen
Hardware Development
Hardware Development
Posts: 87
Joined: Fri 10. Sep 2010, 13:11

Re: Compiling the example microcontroller firmware

Post by S.Michaelsen » Wed 26. Oct 2016, 08:38

Hi,

which directories have you tried?
Does the file firmware.hex or temp.hex exist in your directory?

BR,
Stephan

JPS7495
Posts: 9
Joined: Fri 18. Dec 2015, 10:38

Re: Compiling the example microcontroller firmware

Post by JPS7495 » Wed 26. Oct 2016, 09:00

Now it works.
The only problem I have is to link functions we have in sms.c.
I create an header file sms.h with function declaration.
I include sms.h in main.c but when I compile compiler says that reference to sms_task is undefined.
I check in makefile but I didn't see anything.
Could you help me please?

Thanks
Regards

S.Michaelsen
Hardware Development
Hardware Development
Posts: 87
Joined: Fri 10. Sep 2010, 13:11

Re: Compiling the example microcontroller firmware

Post by S.Michaelsen » Wed 26. Oct 2016, 09:49

Make sure that include path is specified in Makefile and all needed header files are included. Note that names are case sensitive!

BR,
Stephan

Post Reply