This is an old revision of the document!
If you use a mpc5200 platform the following steps have to be altered:
4. Target Configuration
10. The source code changes to :
import java.io.PrintStream; import ch.ntb.inf.deep.runtime.mpc5200.driver.UART3; public class HelloWorld { static { // Initialize UART (9600 8N1) UART3.start(9600, UART3.NO_PARITY, (short)8); // Use the UART3 for stdout System.out = new PrintStream(UART3.out); // Print a string to the stdout System.out.println("Hello world"); } }
12. The project file will look like
#deep-1 meta { version = "Mon Jan 05 12:40:12 CET 2015"; description = "deep project file for HelloWorld"; } project HelloWorld { libpath = "I:\deep\lib"; boardtype = phyCoreMpc5200io; ostype = ntbSTS_ppc; # programmertype = ; # enter names of rootclasses, e.g. # rootclasses = "test.MyFirstTestClass","other.MySecondTestClass"; rootclasses = "test.HelloWorld"; imgfile = "M:\Workspace\HelloWorld\HelloWorld.bin"; imgformat = BIN; }
16. Run will compile, link and create the image file. Use an external debugging device such as an Abatron BDI to download the program.
If the boot loader uBoot is present on the board, it will start up and configure the memory and clocks. Now, it's possible to download a program without using an Abatron device. For this, you have to choose in step 4 the target configuration Phytec PhiCORE-MPC5200uBoot. This configuration is valid for the tiny and the io board. Connect a terminal program on PSC3 with 115200, no parity, 8 bit. Also connect the Ethernet of the board to your local server, which must have a TFTP server running. Run the following command:
tftp 0x400000 myDir/test.bin bin
Please make sure that your image file resides in the right directory on your TFTP server. Finally start your program with
go 0x400100