Home

"user manual"

image

Contents

1. ioel6 c 18 ioe8 c 19 define MICROJVM STACK SIZE 2048 amp ioe task c 20 2 joystick c EEE Global lcd type c 22 7i gt 23 static U64 javaTaskStack MICROJVM STACK SIZE 8 I 24 static void vm E microui bsp c 25 2 os support c 26 Private API amp putchar c 27 2 sram_driver c 28 static void enter_java_world void E stm32f4xx it c 2901 timer hardware c 30 int32 t err touch c 31 int32 t exitcode 2 touch_MBIDA6 c E printf VM START n VM Tin touch MB1063 c 34 err SNI startVM vm 0 NULL touch listener c 35H if err lt Di H libs 36 Error occurred H A STM324 9i EVAL 37 Fl if err LLMJVM E EVAL LIMIT H STM32F4xx StdPeriph Driver 38 printf Evaluation limits reached Wn 39 r 40 elset 41 printf VM execution error err d n err 42 43 F 44 elset 45 NM execution ends normally 46 exitcode SNI getExitCode vm 47 printf VM END exit code d n exitcode 48 49 50 SNI destroyVM vm 51 52 53 static _ task void javaTask void 54 t 55 enter java world d E Project ax 0 0 Te 4 m ST Link Debugger Figure 6 2 C IDE Li Ci CAP NUM SCRL OVR R W Build the Keil pVision project by click
2. Several options have to be updated manually to be compatible with Keil pn Vision 5 x such as the choice of the microprocessor 7 4 2 Probe Configuration This chapter explains how to use a custom probe instead of using the default configured probe This step is useful if you use Keil p Vision 4 5 x as older versions of Keil Vision do not manage the configured probe well e Open a Keil Vision project e Open the menu Project gt Options for Target your target Open the tab Utilities Select the item corresponding to the probe to use in the combo box of the menu Use Target Driver for Flash Programming 18 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started Options for Target Device Target Output Listing User C C Asm Linker Debug Utities Configure Flash Menu Command Use Target Driver for Flash Programming Settings I Update Target before Debugging C Use Extemal Tool for Flash Programming Figure 7 2 ULINK Probe Configuration Click on OK 7 5 Demos Installation This chapter explains how to install extra demos and application notes They have to be imported as a standard Eclipse project archive file Go to the website http www is2t com download Download zip files containing one or more demos Open MicroEJ Open the wizard Import File Import Select the item General Existing Projects into Workspace Click on Next Select the download
3. ARM Ej Project uvopt Praject uvproj gt src LS STM32F4xx StdPeriph Templates Utilities X project a MCD ST Liberty SW License Agreement V2 pdf Release Notes html 55 MyHMIPlatform fp MyHMIPlatform intern MyHMIPlatform jpt ES MyHMIPlatform microuiGeneratorExtension Figure 6 1 Keil uVision Project File e Double click on this file to open Keil p Vision The remaining steps are performed within Keil p Vision 15 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started EI Wisiond tela es File Edit View Project Flash Debug Peripherals Tools SVCS Window Help C i d a p A layer address ya Qle Sara seca 3 sruszaoi Eva EENE A Project n f main c E STM324 9i EVAL BEz i CMSIS 2 c H MDK ARM a i amp g MicroE 4 Copyright 2013 IS2T All rights reserved speed 1521 PROPRIFIARY CONFIDENTIAL Use is subject to license c LLDISPLAY STM324GIEVAL c Hi s dio dcc COM ee ee 8 LLINPUT c 8 L LLLEDS c 9 Includes 23 LLMIVM RTX c 10 LLSP_RTX c 11 include lt stdio h gt ET RTX Conf CM c 12 include sni buttons c 13 include LLM h A buttons listener c 14 Pionie lt RTL h gt 15 include sram driver h ecom comm c 16 x interrupts c BE Defines
4. accessible from the menu Window Preferences MicroEJ Available Platforms 3 2 ARM Cortex M4 ARMCC This Java platform architecture has been designed to be extended to run on any board with a COR TEX MA based CPU The Section 4 Create and Use Your First Java Platform uses this platform to run your first Java application on your first extended platform This platform requires the Keil n Vision C compiler to create the final binary file for a Java application MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 4 Create and Use Your First Java Platform The aim of this chapter is to create a platform from a Java platform architecture The platform will then be used to run a Java application in subsequent chapters Although it is possible to use MicroEJ to create every aspect of a platform in accordance with specific requirements in this chapter we will use a pre packaged example of a platform that is already configured for the STM32F429I DISCO Open MicroEJ Open the Java Platform Example wizard File New Java Platform Select the Java platform architectue ARM Cortex M4 ARMCC from the combo box A list of examples is available Create a Java Platform Configuration O En Create a Java Platform lt gt Create a new Java Platform configuration Target Extensible JPF Platform v v Create a platform from an example or a template 4 gt Platform 4 BA Boar
5. and all related logos are trademarks or registered trademarks of Sun Microsystems Inc in the United States and other Countries Other trademarks are proprietary of their authors MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started Table of Contents T tod 6 aioli OOOO OPE PE en eet rr Tere we mer Mere m unti II trem en ari mene rrr 5 LA Entended Andien E aaa TAE a E 5 1 2 5359 CODE AAN 5 iS MELIUS CCUM SIG Gets tse tte E T LI UU NEN 5 LA LerminoloBy oaee qure t e ae A TN 5 Be ROGUE GR SISE ALOU S daos ipee da idR Ede a Ratan agen ation aede RUE dU RURSUS Edd 7 MO Ju e EE 8 Blo PATAS sioe teu AE A A T aun Diag sU UR UE M PURURUR 8 3 2 ARM Cortex M4 ARMGG rta tias 8 Create and Use Your First Java Platform cccccccesccesecceccenscceccensecsscceuscessccausceusesseeeenss 9 Run an Example on the Simulated Java Platform SimJPF sees 12 AR ro T TT TUM EENS 12 2 RUN EID ecc p T 13 Run the Example on the STM32F429I DISCO Board EmbJPF eese 15 o L Gompile Java Apphcatiom iaa 15 6 2 Link and Deploy Java Application oce EO e ho RON OE UD FEE TE ovens 15 O e rrr rm 17 7 1 STM32F429I DISCO Technical Specifications ooccoocncoccnononnnonnoncnnnnnnononnnnononononannns 17 7 2 Platform ConDIg rdtlOl a AAA AAA ENERO EE NE UMEN ER C Veg inus 17 7 9 IOGEG Sepia atibus tatu n ases M tUa teta c omite Tete yer nner te Unt E Ma een Tree 17
6. ES Manage Licenses ES Try out Java Examples View Documentation Manage Platforms 2 Create New Project MICR EJ Figure 2 1 MicroEJ Welcome Page Insert your USB dongle Press the Manage Licenses button Hardware dongles are automatically detected when the MicroEJ preferences main page is shown Click on Refresh when a new hardware dongle is plugged in Y M The MicroEJ preferences page is also accessible from the menu Window Preferences gt MicroEJ MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 3 Overview 3 1 Platforms Several Java platforms JPF are pre installed in MicroEJ Open MicroEJ Open the welcome page Help gt Welcome Press the Manage Platforms button E Preferences ET Available Platforms i DES General z Add or remove platforms Ant C C Platforms and Packs Cache Name Version License Select All Help Fi Platform X X X Install Update Y Java Tl Import MicroE Available Platforms Naming Convention Plug in Development Run Debug Team Restore Defaults Malidatian Uninstall lo Figure 3 1 Available Platforms This Available Platforms page shows all platforms installed in MicroEJ Each platform has its own characteristics and specific behavior qj Note The Available Platforms page is automatically populated by the work in progress JPFs The Available Platforms page is also
7. Generator tool A README file and a platform configuration file are automatically opened The README file explains the aim of the projects and how to launch an example We recommend you follow the steps described in this document and refer to the README file for more detail and latest changes The platform needs to be built with several additional modules Java and natives libraries scripts etc From the platform configuration file click on the link Build Platform P Overview Java Platform Properties Platform Content General information about this Java platform The content of the platform is composed of two parts Device MyBoard PX Environment select the Java platform environment architecture and version C Modules select modules to import in the Java platform Version 1 0 0 Provider MyCompany Platform Configuration Once the content of the platform is chosen it can be configured 2 Configuration Sere EHE Each module can be configured creating a folder with its name along the platform file It could contain an optional module properties file optional module specific files and folders Modifying one these files requires to build the platform again Build Generate and test the Java platform BP Build Platform The new platform is now available and visible in Available Platforms Figure 4 3 Platform Configuration File The build starts This step can take several minutes You can see the pr
8. MicroEJ STM32F429I DISCO Build a Java Platform RTX Kell Getting Started S27 Reference TLT 0724 MAN PlatformGettingStarted STM32F429I DISCO Revision A Architecture ARM Cortex M4 Compiler Keil uVision Board STM32F429I DISCO MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started Confidentiality amp Intellectual Property All right reserved Information technical data and tutorials contained in this document are IS2T S A Proprietary under Copyright Law Without any written permission from IS2T S A copying or sending parts of the document or the entire document by any means to third parties is not permitted including but not limited to electronic communication photocopies mechanical reproduction systems Granted authorizations for using parts of the document or the entire document do not mean they give public full access rights IceTea amp IS2T amp MicroJvm MicroEJ amp S3 SNI SOAR Drag Emb Drop IceOS Shielded Plug and all associated logos are trademarks or registered trademarks of IS2T S A in France Europe United States or others Countries Java is Sun Microsystems trademark for a technology for developing application software and deploying it in crossplatform networked environments When it is used in this documentation without adding the symbol it includes implementations of the technology by companies other than Sun Java all Java based marks
9. TA UI VASTO em 18 754 DEM S sta id eei adeb V ated im rats 19 AOC UMC IG UASD cm or 20 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started List of Figures Nimm rr UE 6 Micro EJ Welcome Pa ES vx UR dU Sli teen eh Asus dul abo tuia Fate uu e tau or daa 7 Available Plat orm S AS 8 Java Plattorm Configuration page T sii dia 9 Java Platform Configuration page 2 oocoocccnocnnocnncncnoncnnonononcnnnnnnononnnnnnonononcnnoncnoncnnnncnononnnos 10 Platform Configuration Pile A Pb t sues tee tv qune ae EFE etel n Pau 10 New MicroEJ Example Project page 1 ocooccoocccocnncnnncnnncnnncnoncnoncnonnnonnnnncnnnnoncnonnnonnnnnnnnoss 12 New MicroEJ Example Project page 2 oocoocccoccconcnonenononccnonononononenononcnnnncnonononononenanenccnanos 13 MVE Example on the SimiuldtOE ini iii 14 Keil TEVAIGTON Project ler ds 15 ADE e 16 Board COMMU UT AUT OM ES m LUE 18 UEEINI Probe Gomis uration to E UR REN ET eb E ERA Re er ON A A 19 List of Tables Zl STM32F429I DISCO Technical Specifications ooocooocncocnnoonnoncnnnnononononnnnonononcnnonononcnonnnnns 17 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 1 Introduction 1 1 Intended Audience The intended audience for this document are developers who wish to develop their first Java application with MicroEJ Notes e This document is for STM32F429I DISCO board This document is not a use
10. d E gt Basic l Basic SNI and SP t Basic Ul i Full 4 B Template i gt Java Platform Template Includes MicroE Java Virtual Machine CLDC EDC B ON SNI SP NLS ECOM COMM and embedded Ul extension MicroUl MWT Comes with a BSP example for the board 2 Back Next gt Finish Cancel Figure 4 1 Java Platform Configuration page 1 e Select the example configuration Full in menu STM32F429I DISCO Click on Next Give a name which be used as prefix for all platform projects For instance MyPlat form MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started a Create a Java Platform e EE Create a Java Platform mmm Create a new Java Platform Project name MyPlatform v Use default location C Users JPF Properties Device Name MyPlatform Version 1 0 0 Provider MyCompany Vendor URL MicroE Min Version 1 7 0 Back Next Cancel Figure 4 2 Java Platform Configuration page 2 Click on Finish The selected example is imported as several projects prefixed by the given name e STM32F429IDISCO MyPlatform CM4_ARMCC bsp contains a ready to use package for Keil p Vision on STM32F429I DISCO board e STM32F429IDISCO MyPlatform CM4_ARMCC configuration contains some files to configure the platform automatically e STM32F429IDISCO MyPlatform CM4 ARMCC microuiGeneratorExtension contains some files to extend the MicroUI Image
11. d m MWT 4 BA MicroUl i Check Input Events gt Filters LS Fonts LS Hello World iS Images i LCD iz LEDs i gt Layers This example shows how to create and use a MVC design pattern 2 Back Next Finis Cancel Figure 5 1 New MicroEJ Example Project page 1 Click on Next The next page suggests a name for the new project 12 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started New MicroEJ Example Project EM Create a MicroEJ Project 5 Enter a project name Y Project Name MyMVCSample Figure 5 2 New MicroEJ Example Project page 2 Click on Finish The selected example is imported into a project with the given name The main class the Java class which contains the main method here MVCDemo java is automatically opened qj Note Note The New Java Example Project wizard is also accessible from the menu File New gt Java Example 5 2 Run Example e Open the run dialog Run gt Run configurations and select the MicroEJ launcher MyMVCSam ple SimJPF Click on Run the application starts It is executed on the simulator SimJPF of the selected JPF STM32F429IDISCO MyPlatform CM4_ARMCC A picture of the board appears The result of the execution is shown on the display of the board The touchscreen can be used to adjust the division of the screen areas 13 MicroEJ amp STM32F429l DISCO Build a Java Platform RTX Keil G
12. ed zip file 19 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 8 Document History 20
13. ending on these libraries some specific tools are provided too Every embedded JPF EmbJPF has a sibling platform that simulates it on a PC called the SimJPF The SimJPF exactly mimics the semantics of the JPF The SimJPF can be extended with Mocks to simulate the native C Ada asm code of the JPF such as drivers or to connect hardware to the workstation Mocks can feed the SimJPF with real external stimuli so that the Java application can behave as if it was running on the EmbJPF SimJPF allows the design and functional testing of an embedded Java application in a development environment MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started Java Kickstart Platform Java Platform Tool Tool Flow Flow v MicroEJ SDK T MicroEJ SDK Application software Application software Java Virtual Machine Embedded Libraries BSP Library Java Virtual Machine 8 Embedded Libraries C C IDE BSP Source Executable Binary Executable Binary elf hex out elf hex out Hardware Hardware Figure 1 1 Platforms Flow MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 2 Product Registration The development version of MicroEJ uses hardware activation keys Open MicroEJ Open welcome page Help Welcome e MicroEJ amp j x File Edit Navigate Search Project Run Window Help QQ Welcome eS ti Welcome to MicroEJ Getting Started
14. etting Started B STM32423I DISCO O LEEBEEEEEIT e AMA E gts LJ E ii a p MB1075B WWY V st fomfstmsats discovery rn A Me MEY o B 888 2a EM STM32F4291 Disco r EIU 66000000000 aco ir 2232252337 Figure 5 3 MVC Example on the Simulator 14 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 6 Run the Example on the STM32F429I DISCO Board Emb JPF 6 1 Compile Java Application Open the run dialog Run gt Run configurations and select the MicroEJ launcher MyMvCSample EmbJPF Click Run the application is compiled and the compilation result an ELF file is copied into a well known location in the workspace The Keil p Vision BSP project will look for it there when it performs the final link 6 2 Link and Deploy Java Application The aim of the final step is to Compile the BSP project such as drivers Link the BSP and the others libraries MicroJvm Virtual Machine native stacks Java application Deploy the full application on the STM32F429I DISCO board qj Note This final step uses Keil p Vision 4 74 n MicroEJ expand the project STM32F429IDISCO MyPlatform CM4_ARMCC bsp and the folder Project MicroEJ MDK ARM A Keil p Vision project file Project uvproj is available 4 MyPlatform bsp E htmresc gt 2 Libraries 4 Project a 2 Microb gt E inc 29 includeAPIs gt lib 4 2 MDK
15. ing on the menu Project gt Build target The project is compiled and linked Deploy the link result on the STM32F429I DISCO board by clicking on the menu Flash gt Download The application starts The result of the execution is shown on the display of the board Congratulations you have built the Java application on your own platform 16 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 7 Appendix 7 1 STM32F429l DISCO Technical Specifications The following table illustrates some board features used by the Java platform It doesn t list all board features such as all available memories on the board MCU architecture Cortex M4 STM32F429ZIT6 MCU Clock speed 180MHz 225 DMIPS Internal Flash 2 MBytes Internal RAM 128 KBytes External RAM 8 MBytes SDRAM Table 7 1 STM32F429I DISCO Technical Specifications 7 2 Platform Configuration 7 2 1 Trace Port All traces System out print and debug traces Java exceptions out on USART 2 The TX RX is useless of this USART is available on the P1 connector PD5 On the computer connect a serial sniffer 115200 bauds 8 bits of data 1 stop bit no parity 7 2 2 ECOM Comm Ports The ECOM Comm implementation manages one Comm port The RX and TX pins are available on the P1 connector respectively PA10 and PAS 7 2 3 MicroUl Input Events The hardware switch USER sends the event Command Esc to MicroUI library 7 2 4 MicroUl LEDs MicroUI use
16. ogress of the build steps in the Eclipse console Please wait for the final message BUILD SUCCESSFUL At the end of the execution the platform is fully built for the STM32F429I DISCO board and is ready to be linked into the Keil p Vision project The name of this platform is SIM32F429IDISCO MyPlat form CM4_ARMCC 10 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started The platform is now ready for use and available in the Platforms list of your MicroEJ repository windows Preferences MicroEJ 11 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 5 Run an Example on the Simulated Java Platform SimJPF The aim of this chapter is to create a simple Java application from a built in example This example will initially be run on the simulator SimJPF of the platform created in the previous chapter Then in the next chapter this application will be compiled and deployed on the STM32F429I DISCO board using the EmbJPF 5 1 Create Example Open MicroEJ Open the welcome page Help welcome Press the Try out Java Examples button to open the New Java Example Project wizard e Select the Java platform STM32F429IDISCO MyPlatform CM4 ARMCC from the combo box e Select the example Examples gt MicroUI gt MVC New MicroEJ Example Project O E Select an Example v Target JPF Platform a Samples m BON m ECOM COMM m EDC m Getting Starte
17. r guide for the C development environment used for the final application link Please consult the supplier of the C development environment for more information Please visit the website http www is2t com get started for more information about MicroEJ prod ucts platforms videos examples application notes etc 1 2 Scope This document describes step by step how to start your development with MicroEJ Register your product Understand the package Create your own platform e Runa Java application on the simulation platform SimJPF and on the embedded platform EmbJPF 1 3 Prerequisites PC with Windows XP or later The MicroEJ environment must be installed e STM32F429I DISCO board The ST LINK utility normally installed as part of the MicroEJ installation e Keil pn Vision 4 60 or higher The Keil pn Vision evaluation version is 32Kb code size limited To get a Keil p Vision evaluation license for MicroEJ please visit the website https is2t microej com Keil p Vision 4 5x is sufficient except for deploying your application on the board using a probe For Keil p Vision 5 x the legacy pack MD5 Version 5 Legacy Support must be installed 1 4 Terminology A Java platform JPF is a library that at a minimum embeds a JVM the MicroJvm virtual machine from IS2T some native libraries also called firmware or drivers or BSP and some Java libraries that characterize an application domain Dep
18. s the IDs 0 and 1 to target the LEDs respectively the green and red LEDs 7 3 Board Setup This section explains how to configure and connect the STM32F429I DISCO board 7 3 1 Jumpers and Switches Set all jumpers and switches to their default settings please refer to the STM32F429I DISCO docu mentation STMicroelectronics documentation User manual STM32F429I DISCO kit board 7 3 2 Power Supply Select your power supply mode please refer to the STM32F429I DISCO documentation STMicroelec tronics documentation UM1662 User manual STM32F429I DISCO kit board 17 MicroEJO STM32F429I DISCO Build a Java Platform RTX Keil Getting Started 7 3 3 Summary Power supply ST LINK V2 CN1 E WE k a LE RS 223 BE ier Kec igi kid loft EN 5 n Ll 48 MB10758 www st com stm32f4 discoksi 9 y igs e e x m uy 28 s ag i 3 o a Y E vt Or eS SSCCCECOGCE fu ml cd oe m STM32F4291 Disco e ua Vr 989 rum 600 00M 222332 gt ZA a 28282223352 337 E 0 0 0 r gt 945133 666 3 33 0 3 USART2 TX 0000000000000 9000 00060 v a X w v amp Jon 9090909000009090000000060020000 ee RRR RR RR OO Re eee 2832223233333 9 9 Pox LET LI CIL Figure 7 1 Board configuration 7 4 Keil uVision 7 4 1 Project Compatibility The p Vision projects available as Java platform examples are compatible Keil p Vision 4 60 5 0

Download Pdf Manuals

image

Related Search

Related Contents

Freek Bosgraaf    Spectracide HG-95963-2 Instructions / Assembly      Benutzerhandbuch  Fujifilm X-A2 Owner's Manual  HotShot DM-1 - Radial Engineering    ADC Campus RS Destop Unit User's Manual  

Copyright © All rights reserved.
Failed to retrieve file