DEMO9S08DZ60 on CodeWarrior Development Studio, Eclipse IDE

cancel
Showing results for 
Search instead for 
Did you mean: 

DEMO9S08DZ60 on CodeWarrior Development Studio, Eclipse IDE

Jump to solution
473 Views
Johnny_x
Contributor I

I just received my DEMO9S08DZ60 demo board and want to start working with it.  I am running Windows XP Pro 64bit, so my option for IDEs seems to be the Eclipse version (Version: 1.0.0, Build Id: b15_2105-A22). I installed the IDE and the board was recognized when plugged in, drivers installed, good.  The problem I have now is trying to run the example programs which do not appear to have project environments tied to them.  I am new to the Eclipse IDE (did a little Java for Android), and I have done all my MCU work with Microchip and their IDE as well as the Netbeans IDE. Here is what I have done to try to create a new project:

New Project -> CodeWarrior -> Bareboard Project (since I'm not using Linux)
Project name: -Created-
Device: Selected MC9S08DZ60 device
Connections: Selected New System -> P&E Universal/USB Multilink
Add files: selected directory of examples \DEMO9S08DZ60 -> copy files into project

     I unchecked Create main.c/main.asm file
Lanquage: C
C/C++ Options: Defaults -> Ansi, small, none
Rapid Application Development: None
Finish

Nothing happens, no project is created.

I tried the Rapid Application Development: Device initialization and Processor Expert, same results - no project.

Any ideas on how I can get the example files into an Eclipse project?

Thank in advance,
John

Labels (1)
Tags (1)
0 Kudos
1 Solution
187 Views
Johnny_x
Contributor I

Hi Tom,

 

I think I found the problem. The demo program was in assembly language, and at the step of selecting the lanquage (in the New Project wizard) I had neglected to to select Assembly.  This resulted in nothing happening when I got through it all and hit Finish.  I has also tried to import an existing project but as you stated, there was no project metadata for the example folder so no dice on that.  To make the project I went thru the steps including the correct lanuage setting to end up with an empty project. I then copied the source from the exmple folder into the Sources folder. Thank you for the response!

View solution in original post

0 Kudos
2 Replies
187 Views
J2MEJediMaster
Specialist I

If the example programs are actual projects, you will want to import them. To verify that the example program is part of a project, first look in the example program folder for the presence of .cproject and .project files, which is where CW Eclipse stores a project's metadata. If that is the case, proceed as follows:

 

1) In the C/C++ perspective, choose File > Import.

    An Import Select window appears.

2) Expand the General list and select the Existing Projects into Workspace option.

    Click Next.

    An Import Projects window appears.

3) Choose the Select root directory option, then Click Browse.

   Navigate to the desired example folder and select it. Click OK.

4) In the Import Projects window, the name of the project and the folder should appear

    in the Projects pane. If the folder does not contain valid project metadata,

    you will get an error.

5) Check the Copy projects into workspace option. Since a lot of CodeWarrior's

    references to files and libraries are made relative to the workspace folder, this

    reduces any file path problems that might arise and you'll live longer. It's also

    making a copy of the original folder, so you have

    a backup in case things go horribly wrong with the copy (which will be the project).

6) Click Finish.

    The example program folder should appear in the CodeWarrior Projects view.

    You should be able to build and debug the example program.

 

Hope this helps,

 

---Tom

 

 

0 Kudos
188 Views
Johnny_x
Contributor I

Hi Tom,

 

I think I found the problem. The demo program was in assembly language, and at the step of selecting the lanquage (in the New Project wizard) I had neglected to to select Assembly.  This resulted in nothing happening when I got through it all and hit Finish.  I has also tried to import an existing project but as you stated, there was no project metadata for the example folder so no dice on that.  To make the project I went thru the steps including the correct lanuage setting to end up with an empty project. I then copied the source from the exmple folder into the Sources folder. Thank you for the response!

0 Kudos