Page 2 of 2

Re: Compiling the example microcontroller firmware

Posted: Thu 22. Dec 2011, 09:11
by S.Michaelsen
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

Re: Compiling the example microcontroller firmware

Posted: Sun 8. Apr 2012, 20:20
by jwphrijk
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.

Re: Compiling the example microcontroller firmware

Posted: Tue 28. Aug 2012, 15:08
by rm567
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.

Re: Compiling the example microcontroller firmware

Posted: Thu 30. Aug 2012, 09:08
by S.Michaelsen
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

Re: Compiling the example microcontroller firmware

Posted: Tue 25. Oct 2016, 16:36
by JPS7495
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

Re: Compiling the example microcontroller firmware

Posted: Wed 26. Oct 2016, 08:38
by S.Michaelsen
Hi,

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

BR,
Stephan

Re: Compiling the example microcontroller firmware

Posted: Wed 26. Oct 2016, 09:00
by JPS7495
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

Re: Compiling the example microcontroller firmware

Posted: Wed 26. Oct 2016, 09:49
by S.Michaelsen
Make sure that include path is specified in Makefile and all needed header files are included. Note that names are case sensitive!

BR,
Stephan