Home
STM32Java: Build Your First Java Application On STM32429I
Contents
1. e Select the item General gt Existing Projects into Workspace e Click on Next e Select the downloaded zip file 14 STM32Java Build Your First Java Application On STM32429I EVAL Getting Started 7 Document History Revision Description May 22th 2014 B STM32Java3 0 0 compatibility 15
2. 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 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 Java application in a development environment STM32Java provides a kickstart Java Platform Guide that ease starting with Java on a dedicated micro controller Directly out of the box one can write Java code without needing to write any low level code such as code to port the JPF to specific hardware The supplied kickstart JPF uses the STM32429I EVAL board from which most peripherals are accessible including displ
3. Open the welcome page Help gt Welcome e Press the Manage Platforms button E Preferences type filter text Available Platforms bcd al adh ad e G nta Add or remove platforms Ant C C Platforms and Packs Help Name Version License Select All Install Update Platform XXX Y p Deselect All Java ma N maa 4 MicroEJ Import Available Platforms Front Panel Designer Naming Convention Plug in Development Run Debug i p Team v Jaan ESA Figure 3 1 Available Platforms This Available Platforms page shows all platforms installed in STM32Java Each platform has its own characteristics and specific behavior N 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 STM32429I EVAL KickStart This Java platform has been designed to run on a specific microcontroller architecture and on a specific board Here the ARM Cortex M4 architecture and the STM32429 EVAL board The Section 5 Run the Example on the STM32429I EVAL Board EmbJPF uses this platform to run your first Java ap plication STM32Java Build Your First Java Application On STM32429I EVAL Getting Started 4 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
4. 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 4 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 STM32429I EVAL KickStart from the combo box e Select the example Examples gt MicroUI gt MVC New MicroEJ Example Project 9 ES Select an Example y A Target JPF Platform a Samples mi BON mi ECOM COMM mi EDC mi Getting Started mi MWT 4 BA MicroUl Check Input Events Filters Fonts Hello World 3 Images i LCD IS LEDs i gt Layers N This example shows how to create and use a MVC design pattern lt Back Next gt Finis Cancel Figure 4 1 New STM32Java Example Project page 1 e Click on Next The next page suggests a name for the new project STM32Java Build Your First Java Application On STM32429I EVAL Getting Started New MicroEJ Example Project O Create a MicroEJ Project Enter a project name Project Name MyMVCSample n lt Back Next gt Cancel Figure 4 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
5. Compile Java Application umossssastossu s un osk sve eden Seite asks van doa kaks v en ace deeaadvas ines 11 5 2 STLink SIM32Java Programming Tool ssassu svaavsess ss au ss a K SSA Ka NAMI Ian Aika Kaanaassa be 11 135 BAUN Group sie A hauen STA EAS E Sosa As eter erate ow Artery emanates reer ere 12 O AD DELS career et tee Meer nt re Mee E KES nue S ai AES a EIKA ta me aaam eaa 13 6 1 STM32429I EVAL Technical Specifications ccccccessccseecensceseccenscesscseescensenseees 13 6 2 Board Setup erreen o a Tan TIT AKO a n ea On Op SSK RAA ON REEE KU K A Kaas O pa a maTa n 13 63 Demos TIS N ALTON vaasan nan ta mo s tian onkse osa Vaka aye ne olenkaan aamiaiset 14 A Document TIISTOIY msasaumsa autaa E U Kk aaeavelwmw se as St SSE V T SOPI AS NOO V T SSI TSSKA LP S 15 STM32Java Build Your First Java Application On STM32429I EVAL Getting Started List of Figures Ele PITO IO Wass sadas An ea san aa aa da wheune natane nan s ahtaan esni laen A 6 2 11 SIMS 2lav Welcome Paso vmaamsvakmatuseustvess vassaoa ehto a N ie NG aon nA a aka Stynen ea SKA Sad Jalot 7 Si 1 AValaDIe Platformi zerren vana N E ET OT E EE E OTENE eakAr 8 4 1 New STM32Java Example Project page 1 ccssccseccscccsccoseceeccusccasccasecsscnsecuseeuseeeeeneees 9 4 2 New STM32Java Example Project page 2 ccccssccosccssecneccescssscesecoseceeecaeesasensscnesceseees 10 43 MVC Example on 165 IMUTATOT yas suae eten
6. Reference Revision Architecture Board Product Version STM32Java Build Your First Java Application On STM32429I EVAL Getting Started YI life augmented TLT 0695 MAN JavaGettingStarted STM324291 EVAL B STM32JavaF4 STM324291 EVAL 1 52 STM32Java Build Your First Java Application On STM324291 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 amp IS2T amp MicroJvm MicroEJ 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 t
7. ay touchscreen LEDs but tons The kickstart JPF comes with documented Java samples which newcomers may start from STM32Java Build Your First Java Application On STM32429I EVAL Getting Started MicroEJ SDK Application software Java Virtual Machine Embedded Libraries BSP Library Executable Binary elf hex out Figure 1 1 Platform Flow STM32Java Build Your First Java Application 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 Ei MicroEJ STM32Java oa File Edit Navigate Search Project Run Window Hel Welcome to STM32Java v Getting Started a Fik Manage Licenses E ee A as Try out Java Examples N 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 N Note The STM32Java preferences page is also accessible from the menu Window gt Preferences gt STM32Java STM32Java Build Your First Java Application On STM32429I EVAL Getting Started 3 Overview 3 1 Platforms Several Java platforms JPF are pre installed in STM32Java e Open STM32Java e
8. d of the execution the following message appeared 11 STM32Java Build Your First Java Application On STM32429I EVAL Getting Started Flash programming complete successfully 5 3 Launch Group To compile again the application and program it on STM32429 EVAL there are two possibilities e Launch again the steps described in previous chapters Compile and Program e OruseaLaunch Group launcher to perform the last two steps in one click A Launch Group launcher allows to call several launchers conseguently The idea is to create a new Launch Group which will call the two last previous launchers The example already provides a Launch Group launcher which performs these calls Click on Run gt Run Configurations Then open sub menu of Launch Group and select the MicroEJ Tool launcher MyMVCSample Build and Program STM324291 EVAL Click on Run to compile and program the binary 12 STM32Java Build Your First Java Application On STM32429I EVAL Getting Started 6 Appendix 6 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 6 1 STM32429I EVAL Technical Specifications 6 2 Board Setup This section explains ho
9. han Sun Java 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 Application On STM32429I EVAL Getting Started Table of Contents t TTO CLO A sponte ehh rez esate tecia lense cone aate aa tales setae t matte ide ea K sien NINE pett j t ten tes 5 L1 mended SALEI CO 45 05 apwer ham S aka dhe e oS a nK maa Saa JI aasta aika sa arina IA E TN aamun Hasa eaa 5 12 35 C0D0 satamana N Aamun eN cen Dina ecrcantwaseiae tiaed nual T semi iyoene it T IKN 9 I PT J UI 16 Gets tse tte E sa ose tas eae ease emer neo aset a s tmsa uma ie D LA KETMIMOIOSN sa assa vesl stat asus des teen each ATE donates saas E 5 2 POA SIS TOO teys suo Kue alone nes A ves sitt ao Sunni S 7 VOL VI OW seine gece te tee cers atk Aare acs a a 8 Blind PINTO IS amis E AE E N iced T OTA A 8 3 2 5S TM32429 FEVAL KickStart errada reesen a RR ERE AER Eiai 8 4 Run an Example on the Simulated Java Platform SimJPF cccceeccsssccescceeeceeeceeeseeeeceeeeees 9 41 Create Example osaami mivses tima eine aii karen Ran ana ON eee kmsma sussa 9 22 RONTE KAIPIO ansaa sanassa a eee Aaa e noa TOAN M cade ASA VKOA SAN KO KNN aN lumens RSO nan aurea aa S Kaasaa e Maan 10 5 Run the Example on the STM32429I EVAL Board EmbJPF cccccccsecceeccecceeeeeeeeeeeaeees 11 5 14
10. kasvata vara ve n OT vaa A mannaa van 10 5 1 STLink STM32Java Tool Window secrecion a aa a a A an ana aa EEEE annan 11 5 2 STLink STM32Java Tool configuration Window ccccccsscccseccencceeecceecceeeeeeeceeeseeeeceaeeeees 11 0512 S Med SII pacha sas see ae Kanssa e ake geet SEN eau di este AU dete Geek T oleae sa etal dU ale SIS SMS EV NNS 13 6 2 Board COTE UKON qcedysxsqitencisatnoesorytiaiic ET eu We k one ein remade Kaas ao niaan 14 List of Tables 6 1 STM32429I EVAL Technical Specifications ccccsccessccesccessccsccensccseccenseesecsauseessensees 13 STM32Java Build Your First Java Application 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 Runa Java application on the simulation platform SimJPF and on the embedded platform
11. the main method here MVCDemo java is automatically opened N Note The New Java Example Project wizard is also accessible from the menu File gt New gt Java Example 4 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 STM32429I EVAL KickStart 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 m STM32429IEVAL O Figure 4 3 MVC Example on the Simulator 10 STM32Java Build Your First Java Application On STM32429I EVAL Getting Started 5 Run the Example on the STM32429I EVAL Board EmbJPF 5 1 Compile Java Application EmbJPF Open the run dialog Run gt Run configurations and select the MicroEJ launcher MyMvcSample Click Run the application is compiled and the compilation result an ELF file is copied into a well known location in the project example The STLink Tool has to be used to load the program on the board 5 2 STLInk STM32Java Programming Tool The aim of this section is to program a binary on the STM324291 EVAL board 5 2 1 Prereguisites e Install STLink Utility software on your machine 5 2 2 Launch STLink STM32Java Programming Tool Click on Run gt Run Configurations Then open s
12. ub menu of MicroEJ Tool and select the STM32Java Tool launcher MyMvcSample Program STM324291 EVAL E Run Configurations Create manage and run configurations 15 5 gt v 3 X s Name Deploy type filter text Execution Ej MicroEJ Application 4 E MicroE Tool E Deploy Target Platform Platform oat Configuration sh JRE E Common Execution Settings STLink Deployment Options Deploy a binary file on STM32xxGEVAL boards using the STLink probe Output folder v Clean intermediate files workspace_loc MyExample Browse Verbose Figure 5 1 STLink STM32Java Tool window Click on Configuration tab and ajust the setting if necessary E E Run Configurations Create manage and run configurations sex EP Name Deploy type filter text Ej MicroEJ Application 4 E MicroEJ Tool Ea Deploy STLink O O STLink gt The entry out bin hex or srec file must be specified ei Execution ii Configuration gt JRE Common W Java Application Definition out bin hex or srec file Browse STLink Settings STLink Utility installation directory C Program Files x86 STMicroelectronics STN Browse Apply Revert Close n Figure 5 2 STLink STM32Java Tool configuration window Click on Run to program the binary The application downloads At the en
13. w to configure and connect the STM32429I EVAL board 6 2 1 Jumpers and Switches Set all jumpers and switches to their default settings please refer to the STM32429I EVAL documen tation STMicroelectronics documentation User manual STM32429 EVAL evaluation board 6 2 2 Power Supply Select your power supply mode please refer to the STM32429I EVAL documentation STMicroelec tronics documentation UM1668 User manual STM324291I EVAL evaluation board 6 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 6 AJ Figure 6 1 Serial Cable 13 STM32Java Build Your First Java Application On STM32429I EVAL Getting Started 6 2 4 Summary Power Supply Mode lt gt v O lt g ST LINK V2 connector Figure 6 2 Board configuration 6 3 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 e Go to the website http www stm32java com portal g resources demos e Download zip files containing one or more demos e Open STM32Java e Open the wizard Import File gt Import
Download Pdf Manuals
Related Search
Related Contents
M163K Explorer LED LENSER®* Bedienungsanleitung PDF Philips AQ 5211 User's Manual consulter le code de vie de l`école Saint-Luc BLANCO SUBLINE 350/150-U Microdata User Guide SMART Board M600 series interactive whiteboard user's guide 3B SCIENTIFIC® PHYSICS U20600 Tubo di Kundt U20601 Sonda Official Strategy Guide Copyright © All rights reserved.
Failed to retrieve file