Compiling the example microcontroller firmware
-
- Hardware Development
- Posts: 87
- Joined: Fri 10. Sep 2010, 13:11
Re: Compiling the example microcontroller firmware
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
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
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.
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
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.
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.
-
- Hardware Development
- Posts: 87
- Joined: Fri 10. Sep 2010, 13:11
Re: Compiling the example microcontroller firmware
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
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
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
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
-
- Hardware Development
- Posts: 87
- Joined: Fri 10. Sep 2010, 13:11
Re: Compiling the example microcontroller firmware
Hi,
which directories have you tried?
Does the file firmware.hex or temp.hex exist in your directory?
BR,
Stephan
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
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
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
-
- Hardware Development
- Posts: 87
- Joined: Fri 10. Sep 2010, 13:11
Re: Compiling the example microcontroller firmware
Make sure that include path is specified in Makefile and all needed header files are included. Note that names are case sensitive!
BR,
Stephan
BR,
Stephan