Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| software:deep:ide:first_project_mpc5200 [2013-12-03 17:32] – zueger1 | software:deep:ide:first_project_mpc5200 [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Create deep projekt (Hello World for MPC5200) ====== | ||
| - | |||
| - | - Start eclipse, choose a workspace and switch to the deep perspective as described [[software: | ||
| - | - Start the new project wizard by clicking //File// -> //New// -> // | ||
| - | - Open now the //Deep// category and select //Deep Project//. Click //Next//. \\{{: | ||
| - | - On the //Target Library// wizard page you have to choose where the deep target runtime library is located. If you're working on a NTB-PC, you can simply leave the box //Use default library path// checked and click //Next//. If you're working on your private PC or notebook, you have to browse to the location where you've installed the library. \\ {{: | ||
| - | - Target Configuration: | ||
| - | - Select a board: Phytec phyCORE-MPC5200B-tiny | ||
| - | - Select a programmer: < | ||
| - | - Select a operating System: NTB Simple tasking system\\ {{: | ||
| - | - Project name: | ||
| - | - Choose any project name (no spaces, no " | ||
| - | - ✔ use default location\\ {{{{: | ||
| - | - //Finish// creates the project | ||
| - | - The empty project will show on the left side in the package explorer.\\ {{software: | ||
| - | - By right-clicking on the source folder (src) in the package explorer choose //New// -> //Package// and add package name // | ||
| - | - By right-clicking on the newly created package choose //New// -> //Class// and enter class name // | ||
| - | - Open class and enter source code:< | ||
| - | package ch.ntb.stud.yourName.helloworld; | ||
| - | |||
| - | import java.io.PrintStream; | ||
| - | import ch.ntb.inf.deep.runtime.mpc5200.driver.UART3; | ||
| - | |||
| - | public class HelloWorld { | ||
| - | static { | ||
| - | // Initialize UART (9600 8N1) | ||
| - | UART3.start(9600, | ||
| - | |||
| - | // Use the UART3 for stdout | ||
| - | System.out = new PrintStream(UART3.out); | ||
| - | |||
| - | // Print a string to the stdout | ||
| - | System.out.println(" | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | - Open project file: HelloWorld.deep | ||
| - | - Add the newly created class to rootclasses:< | ||
| - | libpath = " | ||
| - | rootclasses = " | ||
| - | }</ | ||
| - | - Connect the hardware to an [[:Embedded Systems: | ||
| - | - Open View Dialog under //Window -> Show View -> Other...//. \\ {{software: | ||
| - | - In the category // | ||
| - | - Under // | ||
| - | - Mark project file " | ||
| - | - TODO Download the generated file to the target and start your programm | ||
| - | - The //Serial Terminal// shows //Hello, World//. | ||