use makefile instead of cmdide.exe for project

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

use makefile instead of cmdide.exe for project

跳至解决方案
3,723 次查看
yyLeung
Contributor I
Hello,
If anyone can give an example of a makefile that can build a s19 file with Metrowerks CodeWarrior IDE version 5.6.1
 
The CPU we use is MC9S08GB32.
 
Thanks a lot.
yyLeung
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,179 次查看
CrasyCat
Specialist III
Oups Just noticed that the sample project is not delivered with V5.1 .
(Thanks CompilerGuru for notifying me) :smileywink:
 
Find attached a zip file containing that sample project.
 
CrasyCat

在原帖中查看解决方案

0 项奖励
回复
7 回复数
1,179 次查看
CrasyCat
Specialist III
Hello
 
If you are running CodeWarrior for HC08 V5.1, look at the example located in
{Install}\(CodeWarrior_Examples)\MakeFileSample.
 
This is a example of a project build with a make file. The make file there is pretty generic and the document TN250 - Automake_HC08.pdf in the same directory provides you guidance to adjust the make file to your own project.
 
I hope this helps.
 
CrasyCat
0 项奖励
回复
1,180 次查看
CrasyCat
Specialist III
Oups Just noticed that the sample project is not delivered with V5.1 .
(Thanks CompilerGuru for notifying me) :smileywink:
 
Find attached a zip file containing that sample project.
 
CrasyCat
0 项奖励
回复
1,179 次查看
Nge
Contributor I

Hello,

 

I have been trying to make the example work with CW6.3  with no luck... is there an updated version?

 

Thanks

0 项奖励
回复
1,179 次查看
CrasyCat
Specialist III

Hello

 

Which kind of message do you get?

I am able to build the delivered sample project with V6.2.

 

Just make sure to adjust the INSTALLPATH environment variable in build.bat

 

CrasyCat

0 项奖励
回复
1,179 次查看
Nge
Contributor I

 

Hi Cat,
Thanks for answering. I did adjust the INSTALLPATH environment variable in build.bat. 
The message I have been receiving is the following:
"Top: D:\MakeFileSample\default.mak
Reading make file 'D:\MakeFileSample\DEFAULT.MAK'
DEFAULT.MAK(186): WARNING M5012: Include file not found: MyProject.dep
D:\MakeFileSample\default.mak: INFORMATION M5027: Making target main.o
D:\MakeFileSample\default.mak: ERROR M5118: Could not create process: open file error
Maker: *** 1 error(s), 1 warning(s), 1 information message(s) ***
*** command line: '-ENV"GENPATH=.\Sources;C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.3\lib\hc08c\src;C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.3\lib\hc08c\lib" 
-ENV"OBJPATH=.\bin" -ENV"ABSPATH=.\bin" -ENV"TEXTPATH=.\bin" default.mak' ***
Maker: *** Error occurred while processing! ***"
Do you have any idea what could be the problem?
Thanks a lot

 

0 项奖励
回复
1,179 次查看
CrasyCat
Specialist III

Hello

 

Can you try to re-install codeWarrior in a directory without spaces in the full path name?

 

For instance install in C:\Freescale\CodeWarrior_Microcontrollers_V6.3

 

Otherwise you need to enclose all paths in double quotes.

 

CrasyCat

0 项奖励
回复
1,179 次查看
yyLeung
Contributor I
Thanks cat. I tried and success.
Thanks a lot.
0 项奖励
回复