CodeWarrior 4 MPC55xx, v2.7 runs VERY slow

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

CodeWarrior 4 MPC55xx, v2.7 runs VERY slow

944 Views
admin
Specialist II

I am targeting an MPC5675K MCU.  Starting the debugger takes over 4.5 minutes ( I timed it).  However, when I disconnect my LAN cable, starting the debugger takes about 30 seconds.  I am running my project from my local HDD and recently installed v2.7.  I noticed the same problem w/ v2.8 earlier. 

 

The same version of CW on another PC in our office runs normally when connected to the LAN.  Why is my PC so slow when connected to the LAN,  why is CW trying to use the network to compile and load a project? 

Labels (1)
0 Kudos
9 Replies

495 Views
CrasyCat
Specialist III

Hello

 

Can you check if the environment variable LM_LICENSE_FILE defined on your PC?

How is it initialized?

 

CrasyCat

0 Kudos

495 Views
admin
Specialist II
0 Kudos

495 Views
CrasyCat
Specialist III

So CodeWarrior is searching first for the license file on the network.

 

This is the reason for the slowness on your PC.

 

You have two solution here:

  1- If you do not need the licenses on the curl-? server, delete definition for variable LM_LICENSE_FILE

   2-If you still need those licenses, place the path to the CodeWarrior first license file at the beginning of the

       LM_LICENSE_FILE environment variable.

       If CodeWarrior is installed in C:\Program Files\Freescale\CodeWarrior_MPC65xx, change LM_LICENSE_FILE to

        "C:\Program Files\Freescale\CodeWarrior_MPC65xx\license.dat";5280@curl-h; 5280@curl-d;5280@skate-c;5280@run-a;5280@curl-x;5280@curl-b

 

There might be a third solution but I did not try it by myself so I cannot guarantee it fixes the performance issue.

Define an environment variable METROWKS_LICENSE_FILE pointing to your CodeWarrior license file

("C:\Program Files\Freescale\CodeWarrior_MPC65xx\license.dat" in our example).

 

I hope this helps.

 

CrasyCat

0 Kudos

495 Views
admin
Specialist II

Adding the path to the local license file allows CW to open normally.  However, the program still appears to access the network when compiling code.  When connected to the LAN, CW take over 6 min to finish a compile.  When not connected to the LAN, compile and load take approx 30 - 45 sec. 

 

 

0 Kudos

495 Views
stanish
NXP Employee
NXP Employee

Hello Spencer,

 

Could you perhaps try to:

1) rename or delete system variable LM_LICENSE_FILE (backup the varaible value first)

2) reboot the machine

3) run the CodeWarrior

 

does the compilation speed increase when there is no LM_LICENSE_FILE at all?

 

 

Stanish

0 Kudos

495 Views
admin
Specialist II

I seem the renaming the LM_LICENSE_FILE varialble fixed the problem.  Can you tell me why I need the LM_LICENSE_FILE & what are the entries I currently have for that variable?

 

thanks

 

0 Kudos

495 Views
CrasyCat
Specialist III

Hello

 

LM_LICENSE_FILE is the environment variable used by the licensing software to specify where to look for the license file.

We are using FLEXlm as licensing software.

 

Attached the enduser manual you get when you install the License manager located here.

Chapter 2 explains everything about LM_LICENSE_FILE.

 

The entries you currently have in there are servers used for licensing for other tools, which also use FLEXlm as licensing software. Here you have to find out what other FLEXlm licensed software you are using on your PC.

 

Finally the alternate environment variable I asked you to try out is really METROWKS_LICENSE_FILE and not METROWERKS_LICENSE_FILE.

 

CrasyCat

0 Kudos

495 Views
admin
Specialist II

thanks for your help. 

0 Kudos

495 Views
admin
Specialist II

I also tried adding the METROWERKS_LICENSE_FILE variable.  Response is the same

0 Kudos