Dies ist eine alte Version des Dokuments!
Create deep projekt (Hello World for MPC555)
As described in
Erste Schritte start eclipse, open workspace, open deep perspektive.
File →
New → select
deep project.

Target Configuration:
Processor: MPC555
Board: NTB MPC555 Headerboard
Runtime system: Simple tasking system
✔ use default library path

Project name:
Choose any project name (no spaces, no „umlauts“)
✔ use default location

Finish creates the project
The empty project will show on the left side in the package explorer.

By right-clicking on the source folder (src) in the package explorer choose
New →
Package and add package name
ch.ntb.stud.yourName.helloworld.

By right-clicking on the newly created package choose New → Class and enter class name HelloWorld.
Open class and enter source code:
package ch.ntb.stud.yourName.helloworld;
import java.io.PrintStream;
import ch.ntb.inf.deep.runtime.mpc555.driver.SCI1;
public class HelloWorld {
static {
// 1) Initialize SCI1 (9600 8N1)
SCI1.start(9600, SCI1.NO_PARITY, (short)8);
// 2) Use SCI1 for stdout
System.out = new PrintStream(SCI1.out);
// 3) Say hello to the world
System.out.println("Hello, world");
}
}
Open project file: HelloWorld.deep
Add the newly created class to rootclasses:
project {
libpath = "I:/deep/lib";
rootclasses = "ch/ntb/stud/yourName/helloworld/HelloWorld";
}
Connect hardware to PC and power on.
Open View Dialog under
Window → Show View → Other….

In the category
Deep Logs mark
USB Log and confirm with
OK.

Das Projekt-Datei „HelloWorld.deep“ markieren und entweder mit Rechtsklick
Run As → Deep Application
oder mit dem Pulldown-Menu des Run-Knopfes
Run As → Deep Application
das Programm kompilieren.
Im USB Log erscheint Hello, World.
Mit

kann das zuletzt verwendete Program erneut kompiliert und auf das Target geladen werden.