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 [2016/02/25 13:33] – external edit 127.0.0.1first_example [2018/03/09 15:46] – [Example on mpc5200] ursgraf
Line 36: Line 36:
 </code> </code>
   - Open deep project file //HelloWorld.deep//. This file can be found in the root of the project.   - Open deep project file //HelloWorld.deep//. This file can be found in the root of the project.
-  - Add the newly created class to //rootclasses//. It should then look like this:<code>project { +  - Add the newly created class to //rootclasses//. It should then look like this:<code> 
- #deep-1+#deep-1
  
- meta { +meta { 
- version = "Mon Jan 05 12:40:12 CET 2015"; + version = "Mon Jan 05 12:40:12 CET 2015"; 
- description = "deep project file for HelloWorld"; + description = "deep project file for HelloWorld"; 
- }+}
  
- project HelloWorld { +project HelloWorld { 
- libpath = "I:\deep\lib"; + libpath = "I:\deep\lib"; 
- boardtype = ntbMpc555HB; + boardtype = ntbMpc555HB; 
- ostype = ntbSTS; + ostype = ntbSTS; 
- programmertype = ntbMpc555UsbBdi;+ programmertype = ntbMpc555UsbBdi;
  
- # enter names of rootclasses, e.g. +# enter names of rootclasses, e.g. 
- # rootclasses = "test.MyFirstTestClass","other.MySecondTestClass"; +# rootclasses = "test.MyFirstTestClass","other.MySecondTestClass"; 
- rootclasses = "test.HelloWorld";+ rootclasses = "test.HelloWorld";
  
- # imgfile = "M:\Workspace\HelloWorld\HelloWorld.bin"; +# imgfile = "M:\Workspace\HelloWorld\HelloWorld.bin"; 
- # imgformat = BIN; +# imgformat = BIN; 
-+
-}</code>+</code>
   - Connect the hardware to your host PC by an USB cable and apply power to the target.   - Connect the hardware to your host PC by an USB cable and apply power to the target.
   - Open a terminal program such as ''putty'' or ''realterm''. Alternatively open a terminal program as an eclipse view. Select the appropriate serial port number. Check your host operating settings for this number.   - Open a terminal program such as ''putty'' or ''realterm''. Alternatively open a terminal program as an eclipse view. Select the appropriate serial port number. Check your host operating settings for this number.
Line 93: Line 93:
 </code> </code>
  
-12. The project file will look like <code>project { +12. The project file will look like <code> 
- #deep-1+#deep-1
  
- meta { +meta { 
- version = "Mon Jan 05 12:40:12 CET 2015"; + version = "Mon Jan 05 12:40:12 CET 2015"; 
- description = "deep project file for HelloWorld"; + description = "deep project file for HelloWorld"; 
- }+}
  
- project HelloWorld { +project HelloWorld { 
- libpath = "I:\deep\lib"; + libpath = "I:\deep\lib"; 
- boardtype = phyCoreMpc5200io; + boardtype = phyCoreMpc5200io; 
- ostype = ntbSTS; + ostype = ntbSTS; 
- # programmertype = ;+# programmertype = ;
  
- # enter names of rootclasses, e.g. +# enter names of rootclasses, e.g. 
- # rootclasses = "test.MyFirstTestClass","other.MySecondTestClass"; +# rootclasses = "test.MyFirstTestClass","other.MySecondTestClass"; 
- rootclasses = "test.HelloWorld";+ rootclasses = "test.HelloWorld";
  
- imgfile = "M:\Workspace\HelloWorld\HelloWorld.bin"; + imgfile = "M:\Workspace\HelloWorld\HelloWorld.bin"; 
- imgformat = BIN; + imgformat = BIN; 
-+
-}</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 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.