Home

MicroEJ®: STM32F429I-DISCO: Develop a Java Application

image

Contents

1. 5 2 1 Prerequisites e Install STLink Utility software on your machine 5 2 2 Launch STLink MicroEJ Programming Tool Click on Run Run Configurations Then open sub menu of MicroEJ Tool and select the MicroEJ Tool launcher MyMVCSample Program STM32F429I DISCO E Run Configurations E Create manage and run configurations Q re ga n a R B Name Deploy pe hiter qon a Execution oi Configuration A JRE E Common Ej MicroEJ Application Target 4 E MicroE Tool Dem E r Ei Deploy atform Platform Execution Settings STLink Deployment z Deploy a binary file on STM32xxGEVAL boards using the STLink probe Options Output folder S workspace loc MyExample Browse v Clean intermediate files Verbose Figure 5 1 STLink MicroEJ Tool window Click on Configuration tab and ajust the setting if necessary E Run Configurations e Create manage and run configurations Q STLink gt The entry out bin hex or srec file must be specified Ri jx E 3 vr Name Deploy type miter text ii Execution Mi Configuration JRE Common i E MicroE Application STLink Java Application Definition E E MicroE Tool i E Deploy out bin hex or srec file Browse m STLink Settings STLink Utility installation directory C Program Files x86 STMicroelectronics STN Browse i Apply Revert 3 Rur Close
2. Project wizard is also accessible from the menu File New gt Java Example 4 2 Run Example e Open the run dialog Run gt Run configurations andselect the MicroEJ launcher MyMVCSam ple SimJPF Click on Run the application starts It is executed on the simulator SimJPF of the selected JPF STM32F429I DISCO 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 10 MicroEJ STM32F429I DISCO Develop a Java Application Getting Started E STM32429I DISCO Ain yell AH a TOW gts KR E ii Ha MB1075B WW V st Genie discovery rn A Me MEY e B 888 o ch STM32FA29I Disco r EIU 66606630066 FrESs ER ERE Figure 4 3 MVC Example on the Simulator 11 MicroEJ STM32F429I DISCO Develop a Java Application Getting Started 5 Run the Example on the STM32F429I DISCO Board Emb JPF 5 1 Compile Java Application e 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 project example The STLink Tool has to be used to load the program on the board 5 2 STLink MicroEJ Programming Tool The aim of this section is to program a binary on the STM32F429I DISCO board
3. stm32f4 discovery OE 21 STM32F4291 DISCO je 2 1 vs H or SE SKS KK KK KKK mom e EB K R n CSS E AL e Sg p i ure L ACAD ee e e IE t Ch cr LE ez 9 Te PGI3 4 1 KC GG oO Ou e Ooooh 0 Oe PF4 PF2 PFO PC14 PEG PE4 PI if AN C MEME TEREE CC bi n O TY TEE IEFKZSSEEREERERE R m T USART2 TX Figure 6 1 Board configuration 6 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 e 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 e Select the downloaded zip file 15 MicroEJ STM32F429I DISCO Develop a Java Application Getting Started 7 Document History Revision Description May 22th 2014 B MicroEJ 3 0 0 compatibility 16
4. Figure 5 2 STLink MicroEJ Tool configuration window Click on Run to program the binary The application downloads 12 MicroEJ STM32F429I DISCO Develop a Java Application Getting Started At the end of the execution the following message appeared Flash programming complete successfully 5 3 Launch Group To compile again the application and program it on STM32F429I DISCO there are two possibilities Launch again the steps described in previous chapters Compile and Program Or use a Launch Group launcher to perform the last two steps in one click A Launch Group launcher allows to call several launchers consequently 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 STM32F429I DISCO Click on Run to compile and program the binary 13 MicroEJ STM32F429I DISCO Develop a Java Application Getting Started 6 Appendix 6 1 STMS32F429I 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 Exte
5. MicroEJ STMS32F429I DISCO Develop a Java Application Reference Revision Architecture Board Product Version Getting Started Kat TLT 0713 MAN JavaGettingStarted S TM32F429l DISCO B ARM Cortex M4 STM32F429I DISCO 1 2 1 MicroEJ STM32F429I DISCO Develop a Java Application 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 SOARE 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 JavaTM 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 TM symbol it includes implementations of the technology by companies other than Sun JavaTM all Java based marks and all relate
6. ae e Ente quu p R y ET dud 7 A Vall ALG EECHER 8 New Macro EJ Example Project pase D A Xun es belayan Ada d ee cat Ee EE ie 9 New MicroEJ Example Project page EE 10 MVC Example on the SImuldtOE 22 xy aute das e w tpa tu vas aate re pm Ah wack 11 STLink MicroE Teel WIDGOW eec core o ran I ex AN nn aia al pal ai EE RSEN E E EVER b n WENA Wa E ge 12 STLink MicroEJ Tool configuration window EE sesse see ee eee ee nemen nennen 12 Board ee NEE Te EE 15 List of Tables 6 1 STM32F429I DISCO Technical Specifications esse sees keke keke kek Kek KK 14 MicroEJ STM32F429I DISCO Develop a Java Application 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 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 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 e Runa Java application on the simulation platform SimJPF and on th
7. d logos are trademarks or registered trademarks of Sun Microsystems Inc in the United States and other Countries Other trademarks are proprietary of their authors MicroEJ STM32F429I DISCO Develop a Java Application Getting Started Table of Contents T tod e e EE 5 1 1 Entended Andien C uoo Ra esc ta MU RE ANUS Ee 5 e EE 3 EE 3 LA Kee e AE 5 2 Produch ERE GU Sa LE AA OE OE N LIN EU ga n SA EE N atzi dt atit 7 Se Da mm 8 3 ta Pla OTTIS EE 8 3 2 S LM32E429I DISCO KickStart xx 4xa cx5xa aaa o se aa p it aia lt GO N a t 8 4 Run an Example on the Simulated Java Platform Gm 9 4 T Create Example OE RA ento d ll t a ee DE A e 9 42 ROME ene 10 5 Run the Example on the STM32F429I DISCO Board EmbJPF e 12 5 1 Compile Java ADDIICatiOH i i reus ia dna yan hut Eu Ru GE Re PEE EROR Pa ERN SUE NC uade VE a kiand 12 5 2 STLink Micro Programming Tool ss cu ta en steier 12 5 3 Einen GOU i EE ari a GE P 13 APP DN N rrr r tal d d i na ELLO d 14 6 1 STM32F429I DISCO Technical Specifications sees 14 6 2 Platform Configuratio dvo Ge dot e IER e Ee esa UN ST E ES at ee ANG Ay 14 5 3 Board EE 14 6 4 Demos InstalldtOlo SES ER EE te ten bae obducta te qur terat erates 15 Fs DoEmnent ui lec 16 MicroEJ STM32F429I DISCO Develop a Java Application Getting Started List of Figures Ning Gr e E p E 6 Micro Welcome Page itu aan tenta Ro uk alea pla ky ula taiat pl Reo RQ ean
8. e including display touchscreen LEDs buttons The kickstart JPF comes with documented Java samples which newcomers may start from MicroEJ STM32F429I DISCO Develop a Java Application Getting Started MicroEJ SDK Application software Java Virtual Machine Embedded Libraries BSP Library Executable Binary elf hex out Figure 1 1 Platform Flow MicroEJ STM32F429I DISCO Develop a Java Application Getting Started 2 Product Registration The development version of MicroEJ uses hardware activation keys Open MicroEJ Open welcome page Help Welcome 9 MicroEJ amp 2 KE File Edit Navigate Search Project Run Window Help Q Welcome x t Welcome to MicroEJ Getting Started B3 Manage Licenses EN Try out Java Examples View Documentation Manage Platforms 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 E M The MicroEJ preferences page is also accessible from the menu Window Preferences gt MicroEJ MicroEJ STM32F429I DISCO Develop a Java Application Getting Started 3 Overview 3 1 Platforms Several Java platforms JPF are pre installed in MicroEJ Open MicroEJ Open the welcome page Help Welcome Press t
9. e 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 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 MicroEJ provides a kickstart Java Platform Guide that ease starting with Java on a dedicated microcon troller 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 STM32F429I DISCO board from which most peripherals are accessibl
10. he Manage Platforms button E Preferences type filter text General Ant C C Help Install Update Java 4 MicroE Available Platforms Front Panel Designer Naming Convention Plug in Development Run Debug Team KA This Available Platforms page shows all platforms installed in MicroEJ Each platform has its own o boks Available Platforms Pe Add or remove platforms Platforms and Packs Name Version License Select All P Platform XXX Deselect ai Import Cancel _ Figure 3 1 Available Platforms characteristics and specific behavior Note E The Available Platforms page is automatically populated by the work in progress JPFs The Available Platforms page is also accessible from the menu Window Preferences MicroEJ Available Platforms 3 2 STM32F429I DISCO KickStart This Java platform has been designed to run on a specific microcontroller architecture and on a specific board Here the ARM Cortex MA architecture and the STM32F429I DISCO board The Section 5 Run the Example on the STM32F429I DISCO Board EmbJPF uses this platform to run your first Java application MicroEJ STM32F429I DISCO Develop a Java Application 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 This example will initially be run on the simulator SimJPF of t
11. he 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 4 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 Select the Java platform STM32F429I DISCO KickStart from the combo box e Select the example Examples gt MicroUI gt MVC New MicroEJ Example Project 2 Select an Example v Target JPF Platform 4 Samples m BON m ECOM COMM m EDC m Getting Started m MWT 4 BA Microul Iz Check Input Events gt Filters LS Fonts LS Hello World iS Images Iz LCD Iz LEDs Iz Layers This example shows how to create and use a MVC design pattern 2 lt Back Next gt Finis Cancel Figure 4 1 New MicroEJ Example Project page 1 Click on Next The next page suggests a name for the new project MicroEJ STM32F429I DISCO Develop a Java Application Getting Started New MicroEJ Example Project EM Create a MicroEJ Project Enter a project name 4 Project Name MyMVCSample Figure 4 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 KE Note Note The New Java Example
12. rnal RAM 8 MBytes SDRAM Table 6 1 STM32F429I DISCO Technical Specifications 6 2 Platform Configuration 6 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 6 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 PAY 6 2 3 MicroUl Input Events The hardware switch USER sends the event Command Esc to MicroUI library 6 2 4 MicroUl LEDs MicroUI uses the IDs 0 and 1 to target the LEDs respectively the green and red LEDs 6 3 Board Setup This section explains how to configure and connect the STM32F429I DISCO board 6 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 6 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 14 MicroEJ STM32F429I DISCO Develop a Java Application Getting Started 6 3 3 Summary Power supply ST LINK V2 CN1 B E d y dl K ker ti E KR tke TT o 5 n LI is D MB1075B WWW st corn

Download Pdf Manuals

image

Related Search

Related Contents

SE 1200 Easy Breeze™ - GE Healthcare Life Sciences  Avocent SwitchView SC 380  Manual español BROCO  290KB    NGS Black i-Shell  JET 714500 Use and Care Manual  Betriebsanleitung Kommunikationsmodul Protos PHU 3400    Rosewill RC-401 User's Manual  

Copyright © All rights reserved.
Failed to retrieve file