from CW 3.1 to CW 5.1

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

from CW 3.1 to CW 5.1

3,452 Views
mohammed
Contributor III
Hi all
 
i have a project already made by CW 3.1 and when i open it by CW v5.1 it gives me a message that i have to convert the project, and there is a DOC. that might help,,
i read the pdf file but iam still beginner, so i tried to do what written there, but the problem i don't have the CW V3.1 i mean i don't have any XML files with the project,,,,,,
it tells me the problem in the prm file,,,,
 
iam sure there some one face that problem before, so can you help me, please give me steps
 
 
1- from edit open ............
2-..........
3- .........
 
thnks in advance
Labels (1)
Tags (1)
0 Kudos
15 Replies

825 Views
Alban
Senior Contributor II
Hello,

You can click Upgrade and not worry about what it is doing.
I have done this on about 10-30 projects and never had any problem.
I upgraded from 3.1 to 5.0.

Alban.
0 Kudos

825 Views
mohammed
Contributor III
Dear Alban
 
thanks alot for quick response,  but there is two problems,
1- where is the upgrade button, to click
2- there is an error said that it doesn't find the prm file and fail to link
0 Kudos

825 Views
CompilerGuru
NXP Employee
NXP Employee
V5.1 should just use the same prm as V3.1 did. Is there a prm file?
Also what kind of project do you convert, C, Assembly? With Processor Expert? How is it setup?
For the missing prm file, I think the simplest is really to check where the V3.1 version did take it from. To my
understanding there has nothing be changed in this respect.

Daniel
0 Kudos

825 Views
mohammed
Contributor III

Daniel, really appreciated your explanation;

It's not a secret,  this is the file i try to open, it's free on the website here;

it's an energy meter project;;;;;;; i attached the file, so i really appreciated  if you open it and see my problem

i have another big problem, i made a small program that write to the LCD and the program works gr8 on the    ICS08LJZ in circuit simulator but at the debugger it gives me a something far from my project; it light segments i don't light it in my program,

on the real world, I feel the lcd turn off and turn on simultaneously, so, i think the problem in the initialization, but what initialization should i make

BTW am displaying a clock

 
 
 
0 Kudos

825 Views
Alban
Senior Contributor II
No Attachment in your post.
Alban.
0 Kudos

825 Views
mohammed
Contributor III
Dear Alban
i don't know how to thank you for your caring
 
i make browse at the attachment but i don't know why it didn't attached
but i attached again, also to be sure this is the link
this file RDHC08DPMSW
at this link
 
 
 
0 Kudos

825 Views
CrasyCat
Specialist III
Hello
 
I took a look at the project you sent over.
In fact the project is referring to the .prm file using an absolute path. As you did not install the project in the same location, you get an error message.
 
In order to be able to link the application:
  - Open the project in the IDE
  - Open the target settings dialog (press ALT + F7)
  - Change to "Linker for HC08" panel
  - Change "Custom PRM file" to "prms\lj212main_flash.prm"
  - Close the target settings dialog pressing on OK
 
You should be able to build the project now.
 
CrasyCat
0 Kudos

825 Views
mohammed
Contributor III
Thanks a lotCrasyCat, that was gr8, ,
 
i have a worry,
 
1- i have PE Cyclone Pro, i need to change the connection to it,
but it appears    MainApplication_C
 
and when i try to change the connection, a pop up window tell me i have to read the conversion document
 
2- and a warning said ((((Ignoring the prm file))))
 
3- last thing there is no .S19 file generated    (BTW i have the evaluation version)
 
how can i debug it, either by PE or by simulation
 
 
 
thanks again
0 Kudos

825 Views
CrasyCat
Specialist III
Hello
 
What exactly are you trying to do?
 
If you wish to be able to switch to another connection the project needs to be set up in a certain way.
For example you cannot use a custom prm file if you want to be able to change the connection through the menu.
 
If you get an older project and want to change to another connection it might be easier to just change the connection manually.
So the big question is which connection are you planning to use?
 
CrasyCat
0 Kudos

825 Views
mohammed
Contributor III
Hi
 
thanks CrasyCat; for you rresponse,
 
i wanna use P&E Cyclon Pro;;;;
 
best regards
Hasan
 
0 Kudos

825 Views
CrasyCat
Specialist III
Hello
 
In that case I would just try the following:
   - Open your project in CodeWarrior
   - Open file flash.ini in an edit window
   - Change the line 9:
            Target=PEdebug)
      to
            Target=HC08ICDCYCLMULT
  - Save the changes
  - Close the flash .ini file
  - Try to start the debugger again
 
That should use the appropriate connection for a USB Mon08 Multilink or a Cyclone Pro.
First time you will have to configure the connection (tell which USBPort is used and so on).
Just follow the instructions on the screen.
 
I hope this helps
 
CrasyCat
0 Kudos

825 Views
mohammed
Contributor III
Hi CrasyCat
 
thank you for your guidness, but unfortunately a message say failed to Initialize P&E
0 Kudos

825 Views
CrasyCat
Specialist III
Hello
 
  Do you have a cyclone Pro or USB MON08 cable connected from your PC to the hardware board?
 
  Last thing we can try on this forum is the following.
  - Make sure the debugger is closed
  - Duplicate the file flash.ini in your project directory (just to keep a backup)
  - Replace the file flash.ini by the .ini file in the attached zip file
  - Restart the debugger.
  - What is happening? Do you still have the issue?
 
If this is not working, you will need to submit a service request to get one of our support engineer looking into that.
To submit a service request click here.
 
CrasyCat
0 Kudos

825 Views
mohammed
Contributor III
Hi
that was great, thank you very much,
 
it works great,
 
thank you again, realy appretiated, 
0 Kudos

825 Views
Alban
Senior Contributor II
Yo,

I agree with Daniel fully.

The Upgrade button is displayed when you open an OLD project. It will ask you to upgrade.
If the .prm file is missing after the conversion it is because it was missing before the conversion.

Cheers,
Alban.
0 Kudos