deep

a Cross Development Platform for Java

User Tools

Site Tools


first_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
first_example [2019/11/06 14:20] – [Example on mpc5200] ursgraffirst_example [2020/09/06 14:27] ursgraf
Line 1: Line 1:
 ====== First Example ====== ====== First Example ======
-===== Using System.out on a mpc555 Board ===== +===== Using System.out on a target board =====
- +
-This example will demonstrate how to use the deep compiler to translate a simple Java program and run it on a mpc555 target platform. For other platforms see at the bottom of this page.+
  
 +This example will demonstrate how to use the deep compiler to translate a simple Java program and run it on a target platform. 
   - 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//.
   - Create a new deep project with //File// -> //New// -> select //Project..., Deep -> //select// Deep Project//. \\ {{:newdeepproject.png?300|}}   - Create a new deep project with //File// -> //New// -> select //Project..., Deep -> //select// Deep Project//. \\ {{:newdeepproject.png?300|}}
Line 120: Line 119:
 </code> </code>
  
-16. //Run// will compile, link and create the image file. Use an external debugging device such as an [[http://wiki.ntb.ch/infoportal/embedded_systems/abatron_bdi/start|Abatron BDI]] to download the program. +16. //Run// will compile, link and download the image file. For downloading and debugging [[openocd:start|OpenOCD]] will be usedMake sure to have it installed
- +
-If the boot loader //uBoot// is present on the board, it will start up and configure the memory and clocksNow, 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: <code>tftp 0x400000 myDir/test.bin bin</code> +
-Please make sure that your image file resides in the right directory on your TFTP server. Finally start your program with <code>go 0x400100</code> +
 ===== Example on mpc5200 ===== ===== Example on mpc5200 =====
 If you use a mpc5200 platform the following steps have to be altered: If you use a mpc5200 platform the following steps have to be altered: