This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
first_example_mpc5200 [2020/09/11 10:32] – ursgraf | first_example_mpc5200 [2020/09/11 17:18] – ursgraf | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using System.out on a Phytec phiCore mpc5200 Board ====== | ====== Using System.out on a Phytec phiCore mpc5200 Board ====== | ||
- | This example will demonstrate how to use the deep compiler to translate a simple Java program and run it on a mpc5200 | + | This example will demonstrate how to use the deep compiler to translate a simple Java program and run it on a [[https:// |
- Start eclipse, choose a new workspace and open the deep perspective with //Window -> Open Perspective -> Other -> Deep//. | - Start eclipse, choose a new workspace and open the deep perspective with //Window -> Open Perspective -> Other -> Deep//. | ||
Line 8: | Line 8: | ||
- Target Configuration: | - Target Configuration: | ||
- Select a board: //Phytec PhiCORE-MPC5200io//, | - Select a board: //Phytec PhiCORE-MPC5200io//, | ||
+ | - Select a operating System: //Simple Tasking System for PPC// | ||
- Select a programmer: //Abatron BDI2000/ | - Select a programmer: //Abatron BDI2000/ | ||
- | - Select | + | - Select |
- Select the checkbox //Create image file// and choose the location to save the image file and the desired image file format, preferably //BIN//. Default save location is the project folder. \\ {{targetconfiguration5200.png? | - Select the checkbox //Create image file// and choose the location to save the image file and the desired image file format, preferably //BIN//. Default save location is the project folder. \\ {{targetconfiguration5200.png? | ||
- Project name: | - Project name: | ||
Line 46: | Line 47: | ||
project HelloWorld { | project HelloWorld { | ||
libpath = " | libpath = " | ||
- | boardtype = phyCoreMpc5200io; | + | boardtype = MicroZed; |
- | ostype = ntbSTS_ppc; | + | ostype = sts_arm; |
- | programmertype = ntbMpc555UsbBdi; | + | programmertype = openOCD; |
+ | programmeropts = bdi3000inf01; | ||
+ | imgfile = " | ||
+ | imgformat = BIN; | ||
+ | # pl_file = none; | ||
# enter names of rootclasses, | # enter names of rootclasses, | ||
Line 54: | Line 59: | ||
rootclasses = " | rootclasses = " | ||
- | imgfile = " | ||
- | imgformat = BIN; | ||
} | } | ||
</ | </ | ||
- | - Connect the hardware to your host PC by an USB cable and apply power to the target. | + | - Connect the target through |
+ | - Install | ||
- Open a terminal program such as '' | - Open a terminal program such as '' | ||
- Create a new run configuration by marking the project file // | - Create a new run configuration by marking the project file // | ||
Line 64: | Line 68: | ||
- The terminal window will show //Hello, World//. | - The terminal window will show //Hello, World//. | ||
- With {{run.jpg}} you can recompile and rerun the programm. | - With {{run.jpg}} you can recompile and rerun the programm. | ||
- | - See [[eclipse: | + | - |
+ | - //Run// will compile, link and create the image file. . | ||
+ | |||
+ | If the boot loader //uBoot// is present on the board, it will start up and configure the memory and clocks. Now, it's possible | ||
+ | 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: < | ||
+ | Please make sure that your image file resides in the right directory on your TFTP server. Finally start your program with < | ||
+ | |||
+ | |||