Skip to Main Content

Embedded Technologies

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

STM32f4 Discovery - Midlet is not installed

Michael KrollFeb 6 2014

Hello all,

I finally installed all necessary components to run a MIDlet on the StM32f4 Discovery board.

All installation steps were so far successful. I downloaded the latest netbeans version with the ME plugins installed and created the simple MIDlet as described in the documentation:

package me8embeddedapplication1;

import com.oracle.deviceaccess.PeripheralManager;

import com.oracle.deviceaccess.gpio.GPIOPin;

import java.io.IOException;

import java.util.logging.Level;

import java.util.logging.Logger;

import javax.microedition.midlet.MIDlet;

/**

* @author michaelkroll

*/

public class Midlet extends MIDlet {

    @Override

    public void startApp() {

        try {

            GPIOPin pin = (GPIOPin) PeripheralManager.open(1);

            for (int i = 0; i < 10; i++) {

                pin.setValue(true);

                Thread.sleep(1000);

                pin.setValue(false);

                Thread.sleep(1000);

            }

           

            pin.close();

        }

        catch (IOException ioe) {

            Logger.getLogger(Midlet.class.getName()).log(Level.SEVERE, null, ioe);

        } catch (InterruptedException ex) {

            Logger.getLogger(Midlet.class.getName()).log(Level.SEVERE, null, ex);

        }

    }

   

    @Override

    public void pauseApp() {

    }

   

    @Override

    public void destroyApp(boolean unconditional) {

    }

}

When I now try to install and run the MIDlet in the real board, I'm getting the following build failed message:

Copying 1 file to C:\Users\michaelkroll\Documents\NetBeansProjects\ME8EmbeddedApplication1\dist\nbrun4556380608097918760

Copying 1 file to C:\Users\michaelkroll\Documents\NetBeansProjects\ME8EmbeddedApplication1\dist\nbrun4556380608097918760

Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/Users/michaelkroll/Documents/NetBeansProjects/ME8EmbeddedApplication1/dist//ME8EmbeddedApplication1.jad

Starting emulator in execution mode

Feb 07, 2014 12:05:40 AM RMIConnector RMIClientCommunicatorAdmin-doStop

WARNING: Failed to call the method close():java.rmi.ConnectException: Connection refused to host: 192.168.125.2; nested exception is:

  java.net.ConnectException: Connection refused: connect

C:\Users\michaelkroll\Documents\NetBeansProjects\ME8EmbeddedApplication1\nbproject\build-impl.xml:791: Execution failed with error code 1.

BUILD FAILED (total time: 1 minute 11 seconds)

I'm running the proxy and established the dial in connection. The TCP logging seems not to work yet, but I can connect to the CLI and can execute ams commands.

When I call ams-list, I'm getting the following message:

ams-list,FAIL, device is not connected.

So it seems there there is one or more pieces in the puzzle not yet working.

Any hint which one ?

When will oracle provide another ea version or even a beta?

Thank you very much in advance for your help,

Michael.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 6 2014
Added on Feb 6 2014
0 comments
918 views