Cant build MQX3.6 example in CW10.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cant build MQX3.6 example in CW10.

Jump to solution
2,240 Views
StRob
Contributor III

Error:

make: *** No rule to make target `P:/demo/telnet_to_serial/lw_telnet.c', needed by `Source/lw_telnet.d'. telnet2ser_twrmcf51cn 

Warnings:

Invalid project path: Include path not found (P:\demo\telnet_to_serial). telnet2ser_twrmcf51cn  
Invalid project path: Include path not found (P:\lib\twrmcf51cn.cw10). telnet2ser_twrmcf51cn 
Invalid project path: Include path not found (P:\lib\twrmcf51cn.cw10\mqx). telnet2ser_twrmcf51cn

Invalid project path: Include path not found (P:\lib\twrmcf51cn.cw10\rtcs). telnet2ser_twrmcf51cn  

 

The examplefolder is: C:\Program Files\Freescale\Freescale MQX 3.6\demo\telnet_to_serial\cw10\telnet2ser_twrmcf51cn but there are no subdirectories in there. No lib folder.

 

Is this a CW10 problem that I willget rid of if I use an older CW? Where du I change the path?

Labels (1)
0 Kudos
1 Solution
646 Views
juanee
Contributor III

I was able to figure it out.

To keep the explanation simple... Since my projects are located a C:\CW, one must change the value of MQX_PATH (located in C/C++ Build > Build Variables) with a value of:

 

C:\Program Files\Freescale\Freescale MQX 3.6

(The old value was ${ProjDirPath}\..\..\..\..\..\..\.. )

 

Also, change the value of MQX_PATH (located at C/C++ General > Linked Resources) with:

 

C:\Program Files\Freescale\Freescale MQX 3.6

(The old value was and empty string, no value).

 

Please see attached images.

Juan.

 

View solution in original post

0 Kudos
9 Replies
646 Views
CrasyCat
Specialist III

Hello

 

Did you try to do a Clean Project before attempting to build the project?

 

CrasyCat

0 Kudos
647 Views
StRob
Contributor III

Hmm.. I think so.. I have tried many examples and labs, both from MQX and CF10 and I can't remember wich I tried it on. Now I´ve uninstalld CW10 and installed CW6.3. I have tried the video tutorial from the help menu (the blinking LED) and it works like a charm!

Can I have both CW10 and CW6.3 installed at the same time?

0 Kudos
647 Views
CrasyCat
Specialist III
Yes. I get that working on my system without any problem. CrasyCat
0 Kudos
647 Views
StRob
Contributor III

I reinstalled CW10 and MQX 3.6.2 and i import existing project, telnet security for MCF51CN128. Again i got the error message: 

"Error:

make: *** No rule to make target" followed by a faulty file path.

I changed the MQX_PATH under properties/Linked Resources and now I get other errors and warnings about "include path's" se picture.

Where do I change the include path? And why are they wrong from the beginning?

0 Kudos
647 Views
CrasyCat
Specialist III

Hello

 

In order to adjust the include paths process as follows:

  - In the "CodeWarrior Projects" view click right in your project name

  - In the drop down menu select "Properties"

  - Go to "C/C++ Build" > Settings Page

  - Switch to :ColdFire Compiler: > "Input" panel

  - You can adjust the User and system paths there.

 

Include paths might be wrong if you imported the project on a different Host and they are defined using an absolute path or invalid recursive paths.

 

CrasyCat

0 Kudos
647 Views
StRob
Contributor III

I don't see were the path for "secwebserver_twrmcf51cn_mcf51cn128_Int_Flash" is described.

I attach a print screen.

0 Kudos
647 Views
juanee
Contributor III

Hello, I am having the same problem too.  I have tried various examples also.

 

Here is a screen shot after importing the hvac example for twrmcf52259.  Notice that it seems the {MQX_PATH} is being ignored.  Is this a bug?

 

I also tried this on another computer, same problems.

 

 

Codewarrior 10 Special Edition

Windows XP Pro

MQX 3.6.2

PEMicro USB ColdFire Multilink.

Custom Target based on Coldfire MCF52259.

0 Kudos
647 Views
juanee
Contributor III

I was able to figure it out.

To keep the explanation simple... Since my projects are located a C:\CW, one must change the value of MQX_PATH (located in C/C++ Build > Build Variables) with a value of:

 

C:\Program Files\Freescale\Freescale MQX 3.6

(The old value was ${ProjDirPath}\..\..\..\..\..\..\.. )

 

Also, change the value of MQX_PATH (located at C/C++ General > Linked Resources) with:

 

C:\Program Files\Freescale\Freescale MQX 3.6

(The old value was and empty string, no value).

 

Please see attached images.

Juan.

 

0 Kudos
647 Views
juanee
Contributor III

Also, one small correction.  Make sure [ All configurations ] is selected for Build > Build Variables.  See attached.

Juan

 

0 Kudos