Home
STM32Java: Build Your First Java Platform On STM32429I
Contents
1. Link and Deploy Java Application The aim of the final step is to e Compile the BSP project such as drivers e Link the BSP and the others libraries MicroJvm Virtual Machine native stacks Java application e Deploy the full application on the STM32429I EVAL board E Note i This final step uses Keil u Vision e In STM32Java expand the project example bsp and the folder Project MicroEJ MDK ARM A Keil uVision project file Project uvproj is available MyPlatform bsp E5 htmrest CS Libraries gt Project MicroE gt 2 INC CS IncludeAPF s 8 lib MDK ARM Project uvopt Project uvproj PP src E STM32F StdPeriph Templates Utilities X project MCD ST Liberty SW License Agreement V2 pdf Release Notes htmi C5 MyHMIP latform fp MyHMIP latform intern C5 MyHMIPlatform jpf Les MyHMIPlatform microuiGeneratorExtension Figure 6 1 Keil uVision Project File e Double click on this file to open Keil uVision The remaining steps are performed within Keil uVision 13 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started EJ Wisiond Aram File Edit View Project Flash Debug Peripherals Tools SVCS Window Help TAS al p b layer address ya Qle e EF a e 8 stvs2nei EvAL EENE Project a main c vx 2 43 STM324x0i EVAL 1E a i CMSIS 2 ec f g MDK ARM 3 5 83 Mi
2. STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started YJ life augmented Reference TLT 0691 MAN PlatformGettingStarted STM32429I EVAL Revision B Architecture STM32JavaF4 Compiler Keil uVision Board STM32429I EVAL STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started Confidentiality amp Intellectual Property All right reserved Information technical data and tutorials contained in this document are confidential secret and 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 IS2T MicroJvm MicroEJ S3 SNI SOAR Drag Emb Drop IceOSQ 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
3. TM32Java Build Your First Java Platform On STM32429I EVAL Getting Started 3 Overview 3 1 Platforms Several Java platforms JPF are pre installed in STM32Java e Open STM32Java e Open the welcome page Help gt Welcome e Press the Manage Platforms button E Preferences CO Available Platforms ba Teng General z Add or remove platforms Ant C C Platforms and Packs Cache Name Version License Select All Help Fi Platform X X X TT Install Update Java 7 Import MicroEJ 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 STM32Java Each platform has its own characteristics and specific behavior RY Note e The Available Platforms page is automatically populated by the work in progress JPFs e The Available Platforms page is also accessible from the menu Window gt Preferences gt STM32Java gt Available Platforms 3 2 STM32JavaF4 ARMCCv4 This Java platform architecture has been designed to be extended to run on any board with a COR TEX M4 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 uVision C compiler to create the final binary file for a Java applicat
4. a ranne r GANA A AEA 9 Java Platform Configuration page 2 2 2 QQQQ aa 10 Plafon Configura om FI saa 10 New STM32Java Example Project page 1 0 2 2 a 11 New STM32Java Example Project page 2 a 12 MVE Example on fe SAO rase ee 12 Kal vision Project vvs GS 13 EIDE 14 DEINE DE AA a es pie Vateie calsctoueus dia na cine shales abe ANG 15 Bod conan areata AEE ceatanas san swaauiausenn tune ens mens con O S 16 gt ULINK Probe Corsa ss 17 List of Tables 7 1 STM32429EEVAT Technical Specifications AGARAN KANA KG 15 STM32Java Build Your First Java Platform On STM32429I EVAL 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 STM32Java Notes e This document is for STM32429I EVAL board e This document is not a user guide for the C development environment used for the final application link Please consult the supplier of the C development environment for more information e Please visit the website http www stm32java com for more information about STM32Java products platforms videos examples application notes etc 1 2 Scope This document describes step by step how to start your development with STM32Java e Register your product e Understand the package e Create your own platform e Runa Java application on the simulation platform S
5. all Java based marks 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 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started Table of Contents t AA T 5 LE AG a Ad sara 5 ES RS D ED PENT D LA FN NG D AA aa OMS 1 ALOU ai otatas dene atic sta caratyeRepnattel a Ratan agen ation sca gis ano ene ag Batastenetstin 7 JENIN PN 8 Dili NN 8 32S M32Java FA AR MOCCA janne eden 8 Create and Use Your First Java Platform rrorrnnnornerrnnnonnnrnnnnennnrrnenennnennesnnnnennesnnnnennesnnnnennee 9 Run an Example on the Simulated Java Platform SimJPF oorronrronrnnnornnnrnnnernnnrnnnennnnrnnnennn 11 SEE MEN 11 Bee REPR acs cere cars cclee adie owt qu antienea E T Souayuesd 12 Run the Example on the STM32429I EVAL Board EmbJPF 11 2 7 7 2 2 a 13 O Compile Java AGN Je 13 6 2 Link and Deploy Java App Calon srona o NGA AN 13 paa DEO SE AA Aa NA AA 15 7 1 STM324291 EVAL Technical Specifications aa 15 Lido BOAT SEP ass ANNA AA TA AA 15 AN vr 16 74 Demos Msalato vvs 17 s Document FIS svarer AA 18 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started List of Figures POT POW NG 6 STM 2 J va Welcome Page svak ea en 7 Available Plat Orm S rasens ATEN NANANA GEN E A 8 sJava Platform Configuration page L sak
6. arget your target e Open the tab Utilities e Select the item ULINK2 ME Cortex Debugger in the combo box of the menu Use Target Driver for Flash Programming 16 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started Options for Target Device Target Output Listing User C C Asm Linker Debug Utilities 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 3 ULINK Probe Configuration Click on OK 7 4 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 stm32java com portal q resources demos Download zip files containing one or more demos Open STM32Java Open the wizard Import File gt Import Select the item General gt Existing Projects into Workspace Click on Next Select the downloaded zip file 17 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started 8 Document History Revision Description May 22th 2014 B MicroEJ 3 0 compatibility 18
7. ava application in a development environment STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started Java Kickstart Platform Tool Flow pasaya MicroEJ SDK Application software Java Virtual Machine Embedded Libraries BSP Library Executable Binary elf hex out Hardware Figure 1 1 Java Platform Tool Flow MicroEJ SDK Application software Java Virtual Machine amp Embedded Libraries CIC IDE BSP Source Executable Binary elf hex out Hardware Platforms Flow STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started 2 Product Registration The development version of STM32Java uses hardware activation keys e Open STM32Java e Open welcome page Help gt Welcome Ej MicroEJ STM32Java oa File Edit Navigate Search Project Run Window Hel Welcome to STM32Java v Getting Started G Fik Manage Licenses s eo A BO Try out Java Examples T View Documentation ED Manage Platforms Pi Create New Project Figure 2 1 STM32Java Welcome Page e Insert your USB dongle e Press the Manage Licenses button Hardware dongles are automatically detected when the STM32Java preferences main page is shown e Click on Refresh when a new hardware dongle is plugged in RY Note The STM32Java preferences page is also accessible from the menu Window gt Preferences gt STM32Java S
8. croE 4 Copyright 2013 IS2T All rights reserved D ME 1521 PROPRIFTARY CONFIDENTIAL Use s subject to license t E LLDISPLAY STM3248IEVAL c Bl mc a ee 2 LUNPUT c 8 L LLLEDS c DUN Includes eee 8 LLMJVM RTX c 10 LLSP RTX c 11 include lt stdio h gt E RTX_Conf_CM c 12 include sni F buttons c 13 include LLM h A buttons listener c 14 include lt RTL h gt 7 15 include sram driver h 8 ecom_comm c 16 interrupts c BE Defines _ _ a ioel6 c 18 ioe8 c 19 define MICROJVM STACK SIZE 2048 ioe_task c 20 7 joystick c 21 Global 3 led type c 22 Aa eng 23 static U64 javaTaskStack MICROJVM STACK SIZE 8 ir 24 static void vm E microui bsp c 25 8 os support c 26 Private API 2 putchar c 27 2 sram driver c 28 static void enter java world void E stm32fba it c 2901 2 timer_hardware c 30 int32_t err F touch c 31 int32_t exitcode 2 touch MBI046 c 5 printf VM START n 2 touch_MB1063 c 34 err SNI startVM vm 0 NULL touch listener c 35 if err lt 0 H libs 36 Error occurred Og STM3240i EVAL 370 if err LLMJVM E EVAL LIMIT H STM32F4xx StdPeriph Driver 38 printf Evaluation limits reached n 39 fF 40 3 elset 41 printf VM execution error err d n err 42 43 3 44 elset 45 VM execution ends normally 46 exitcode SNI getExi
9. er manual STM32429I EVAL evaluation board 7 2 2 Power Supply Select your power supply mode please refer to the STM32429I EV AL documentation STMicroelec tronics documentation UM1668 User manual STM32429I EV AL evaluation board 7 2 3 PC Board Connection Plug a serial cable between the PC and the board USART 1 connector CN8 Note the PC s COM port it will be used later in the application launcher This allows all traces to be received from the board and printed on the console Use a simple serial cable with only data lines crossed and signal ground See the illustration below DB 9 female ajea g AO Figure 7 1 Serial Cable 15 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started 7 2 4 Summary Power Supply Mode lt gt o a o xt o Y ST LINK V2 connector Figure 7 2 Board configuration 7 3 Keil uVision 7 3 1 Project Compatibility The uVision projects available as Java platform examples are compatible Keil Vision 4 60 5 0 Several options have to be updated manually to be compatible with Keil u Vision 5 x such as the choice of the microprocessor 7 3 2 Probe Configuration This chapter explains how to use a ULINK probe instead of using the ST LINK V2 This step is useful if you use Keil uVision 4 5 x as older versions of Keil u Vision do not manage the ST LINK V2 probe well e Open a Keil yp Vision project e Open the menu Project gt Options for T
10. imJPF and on the embedded platform EmbJPF 1 3 Prerequisites e PC with Windows XP or later e The STM32Java environment must be installed e STM32429I EVAL board e The ST LINK utility normally installed as part of the STM32Java installation e Keil uVision 4 60 or higher The Keil Vision evaluation version is 32Kb code size limited To get a Keil p Vision evaluation license for STM32Java please visit the website https is2t microej com Keil Vision 4 5x is sufficient except for deploying your application on the board using a ST LINK V2 Refer to the appendix to use a ULINK probe instead of using the integrated ST LINK V2 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 Depending 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 J
11. ion STM32Java Build Your First Java Platform On STM32429I EVAL 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 STM32Java 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 STM32429I EVAL e Open STM32Java e Open the Java Platform Example wizard File gt New gt Java Platform e Select the Java platform architectue STM32JavaF4 ARMCCv4 from the combo box A list of examples is available Create a Java Platform Configuration o ES Create a Java Platform lt gt Create a new Java Platform configuration Target Extensible JPF Platform y v Create a platform from an example or a template Platform 4 BA Board L Basic C3 Basic SNI and SP C3 Basic Ul C3 Full 4 m Template i gt Java Platform Template Includes MicroEJ 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 lt Back Next 5 Finish Cancel Figure 4 1 Java Platform Configuration page 1 e Select the example configuration Full in menu STM32429I EVAL e Click on Next Give a name which be used as prefix fo
12. r all platform projects For instance MyPlat form STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started Q Create a Java Platform me Ea Create a Java Platform lt gt 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 MicroEJ Min Version 1 7 0 lt Back Next Cancel Figure 4 2 Java Platform Configuration page 2 e Click on Finish The selected example is imported as several projects prefixed by the given name e example bsp contains a ready to use package for Keil uVision on STM32429I EVAL board e example configuration contains some files to configure the platform automatically e example microuiGeneratorExtension contains some files to extend the MicroUI Image Gen erator 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 e From the platform configuration file click on the link Build Platform P Overview Java Platform Properties Platform Content General information about
13. rm On STM32429I EVAL 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 STM32429I EVAL board using the EmbJPF 5 1 Create Example e Open STM32Java e Open the welcome page Help gt Welcome e Press the Try out Java Examples button to open the New Java Example Project wizard e Select the Java platform STM32429IEVAL MyPlatform CM4 ARMCC from the combo box e Select the example Examples gt MicroUI gt MVC New MicroEJ Example Project 5 pas Select an Example y A Target JPF Platform a Samples BON ECOM COMM mi EDC mi Getting Started mi MWT 4 BA MicroUl i Check Input Events gt Filters LS Fonts LS Hello World iS Images t LCD LEDs i gt Layers This example shows how to create and use a MVC design pattern c Baci Next gt Finis Cancel Figure 5 1 New STM32Java Example Project page 1 e Click on Next The next page suggests a name for the new project 11 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started New MicroEJ Example Project 0 Create a MicroEJ Project Enter a project name Project Name MyMVCSample D GG lt Back Net g
14. t Cancel Figure 5 2 New STM32Java Example Project page 2 e 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 N 7 Note The New Java Example Project wizard is also accessible from the menu File gt New gt Java Example 5 2 Run Example e Open the run dialog Run gt Run configurations and select the STM32Java launcher MyMVCSample SimJPF e Click on Run the application starts It is executed on the simulator SimJPF of the selected JPF STM32429IEVAL 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 STM32429IEVAL lt gt o i aml t p KO MELEE itis O tgi Figure 5 3 MVC Example on the Simulator 12 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started 6 Run the Example on the STM32429I EVAL Board EmbJPF 6 1 Compile Java Application e Open the run dialog Run gt Run configurations and select the MicroEJ launcher MyMVCSample EmbJPF e 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 uVision BSP project will look for it there when it performs the final link 6 2
15. tCode 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 Ft 55 enter java world pe E Project G8 Fundio Og Te 4 m 7 ST Link Debugger L1 C1 CAP NUM SCRL OVR R W Figure 6 2 C IDE e Build the Keil uVision project by clicking on the menu Project gt Build target The project is compiled and linked e Deploy the link result on the STM32429I EVAL 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 14 STM32Java Build Your First Java Platform On STM32429I EVAL Getting Started 7 Appendix 7 1 STM32429I EVAL 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 STM32F429NIH6 MCU Clock speed 180MHz 225 DMIPS Internal Flash 2 MBytes Internal RAM 128 KBytes External RAM 8 MBytes SDRAM Table 7 1 STM32429I EVAL Technical Specifications 7 2 Board Setup This section explains how to configure and connect the STM32429I EVAL board 7 2 1 Jumpers and Switches Set all jumpers and switches to their default settings please refer to the STM32429I EV AL documen tation STMicroelectronics documentation Us
16. this Java platform The content of the platform is composed of two parts Device MyBoard Fi Environment select the Java platform environment architecture and version o N Platf 4 A H ame MyPlatform Q 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 Each module can be configured creating a folder with its name along the platform file It could contain MicroEJ Min Version 1 7 0 an optional module properties file e optional module specific files and folders Modifying one these files requires to build the platform again ao uild enerate and test the Java platform P 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 progress 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 STM32429I EVAL board and is ready to be linked into the Keil uVision project The name of this platform is STM32429IEV AL MyPlat form CM4 ARMCC The platform is now ready for use and available in the Platforms list of your STM32Java repository windows gt Preferences gt STM32Java 10 STM32Java Build Your First Java Platfo
Download Pdf Manuals
Related Search
Related Contents
TESI Comfo Trac (duo) 46-411型 取扱説明書 浴室暖房乾燥機(2室換気機能付) EPAS Desktop Pro Software User Manual HERMA Coloured Labels A4 210x297 mm green paper matt 20 pcs. enquête de satisfaction MPC Fly - Quickstart Guide - RevB Wireless-G JSNDI 2011 年春期 UT レベル 1,レベル 2 実技試験対策講習会のご案内 Wireless-G MANUAL for PDF Copyright © All rights reserved.
Failed to retrieve file