Skip to main content

LWUIT - Running on a microcontroller?

4 replies [Last post]
future56k
Offline
Joined: 2012-11-30
Points: 0

Hello everybody,

I am new to java but not new to C and microcontrollers.

I am seeking advice on how to proceed and resources to look for to get a simple java gui running.

What I have at the moment:

A jvm for the micro and LCD low level drawing primitives C functions callable from java. Said that, I can draw on the screen using java code.

The question is:

Is LWUIT enough/possible to get this project started?

On every gui toolkit I have seen I tried to find the code related to actually draw on the screen, but it seems to not be there. What am I missing?

Thank you for any tips from the more experienced developers.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
roey
Offline
Joined: 2006-05-05
Points: 0

it's doable. seen such apps running.

can you please share more information on the chip?
- which MCU? incl technical spec, vendor, java spec

roey
Offline
Joined: 2006-05-05
Points: 0

it's doable i.e., on CortexM3. for RAM considerations, note that LWUIT requires some heap allocation.

future56k
Offline
Joined: 2012-11-30
Points: 0

Can you point me to the right direction? What should I read?

future56k
Offline
Joined: 2012-11-30
Points: 0

As I said earlier.. I am new to java and most of its technical words.

Further research lead me to SWING which seems to be what is needed.

Early tests were done on a PIC32 (80mips/32bits/512k flash/128k ram).
It includes C drivers for sd card, 480x272 lcd with touch screen driver and drawing primitives.

The VM is from http://dmitry.co/index.php?p=./04.Thoughts/11.%20uJ%20-%20a%20micro%20JVM

The microcontroller family can be changed if more flash/ram is needed.

Thank you.