embedded

JVM for WEPOS

I'm looking into running a j2se(1.5) application on the WEPOS(Windows Embedded for Point of Service) platform. I noticed that Sun offeres a java runtime for Windows XP embedded (Java SE for Embedded 5.0). I'm wondering if Can I use the standard Sun Hotspot on the WEPOS platforms? Will Java SE for Embedded 5.0 also run on WEPOS? (If ...

Binary data over serial terminal

My only way of communication with my embedded device is a serial port. By default, embedded Linux uses this port as a terminal. How do I disable this terminal and use the serial link to transfer binary data? I heard of commands like rx and tx but i cannot find them. I think I can just read() from and write() stuff to /dev/tty but I want...

Printing from an embedded system

We are making a lab instrument using an ARM9/RTOS system. The client has asked about printing simple reports from the ARM9 system. In this case, we have USB Host support in the RTOS. I'm thinking about printing bitmaps in generic PCL, hoping that will cover the widest range of printers. Is there a better way to approach this? I'm assumi...

Choosing embedded EJB 3.x container to run JEE 5 app on Tomcat

I am sorry in advance if my question sounds too generic - I am doing all preliminary research myself but nothing substitutes real experience... My goal is to port a legacy JEE application (pre-EJB 3.x) to Tomcat with embedded EJB container. My choices currently stand as follows: JBoss Embeddable EJB Apache OpenEJB OW2 Consortium EasyB...

USB for embedded devices - designing a device driver/protocol stack

Hello, I have been tasked to write a device driver for an embedded device which will communicate with the micro controller via the SPI interface. Eventually, the USB interface will be used to download updated code externally and used during the verification phase. My question is, does anyone know of a good reference design or documenta...

C/C++ linker CALL16 reloc at xxxxx not against global symbol

I'm getting these errors while linking, both messages have to do with the same object file. CALL16 reloc at 0x5f8 not against global symbol and could not read symbols: Bad value The 2nd message seems to be the reason I'm getting the CALL16 error, but the file compiles just fine. Any tips on fixing this? FYI, I'm cross compiling f...

How can I increase the size of a memory block in MPLAB?

The Microchip PIC MPLAB (MCC18) compiler segments its memory into 256 chunks ( 0x100 ). How can I create an array larger than 256 bytes? char buffer[256]; Just to get to 256 I needed to make a seperate segment with a #pragma #pragma udata segment_name char buffer[256]; #pragma udata So I can either force MCC18 to let allocate a la...

Alternative to Lattice's GAL and ispGAL chips

Hi guys, I took a class last semester about programming with embedded hardware, mainly using GAl chips from Lattice and ABEL to program them. I'd like to continue this for fun outside of the class, but I find things to be cost prohibitive due to the high costs of buying a programmer. Are there any free or low-cost ways that I can progr...

Mindset difference between workstation and embedded programmers

What do you think are the difference in mindset between a programmer doing work for a desktop environment (windows, linux, whatever...) and someone doing work on an embedded system? A simple example I can think of is that in an embedded environment, I always check that a malloc is not NULL. Most code I have seen that target desktops is...

MPSOC : Which OS do you use and why?

I'm working on MPSOC, specially STM ST40 (SH4 base) and ST231 and I'm wondering which OS i can use on these to port a parallel application, I already had a look at STLinux which is the STM distribution of a Linux platform for their MPSOC (which unfortunately doesn't work well for ST231 coprocessors) and I also had a look at OS21 which is...

Are embedded developers more conservative than their desktop brethrens?

I've been in the embedded space for a while now, and it seems that most programmers I talk to seem to be doing things pretty much the same way it was done 15 years or more ago: Waterfall(ish) Development, command line tools and a small group uses lint. Contrast this with the server/desktop environment, where there seems to be lots of ac...

How do I convert from a 32-bit int representing time in usec to a 32-bit int representing time as a binary fraction in secs?

POSIX uses struct timeval to represent time intervals. struct timeval { time_t tv_sec; unsigned tv_usec; }; GHS Integrity represents Time in the following manner, struct Time { time_t Seconds; unsigned Fraction; }; For example, 0.5 sec is represented as 0x80000000 and 0.25sec is represented as 0x40000000. What is...

Simple USB host stack

I am trying to connect to a single USB device using the USB host port on an Atmel processor. I have an embedded system with limited memory and no OS. I want to implement a simple dedicated host to interface to a single USB slave device. Can anyone guide me to a simple USB host implementation? The processor is the Atmel AT91SAM9261S. ...

Why does SQLite provide amalgamations of their code?

Every time I download SQLite, I come across the fact that they provide several different versions of their source code, which is something I've actually never seen any other project do. And more so they provide Amalgamations of Source, that kind of merge all their files into just 3 files. What's the reason for this? Is it just compilatio...

Suggested resources for newbie ARM programmer?

I'm starting develop an application in embedded arm board from http://www.embeddedarm.com. I'm a newbie in developing embedded applications. I would like resources like books, online guides that will get me started in to develop applications in embedded arm. I was planing to use Linux as the OS. ...

Scripting Language in a Sandbox for a C#/.NET Application

[This question is similar to this one, but I am also interested in the possibility of a sandbox.] I am considering embedding a scripting language in my C#/.NET application and then exposing some of my application's API to the scripts. There seem to be multiple good options for this (Lua, Boo, IronPython, etc.), but are there easy optio...

STM32 Compiler/Debugger Chain?

I'm starting a project with a STMicro STM32. I've done the Google searches, looking for solid compiler/debugger chains but would prefer answers with success stories. Open Source Compilers/Linkers would be ideal, I just don't know if their STM32 toolchains are stable yet. (Both C, C++ compilers are acceptable). -- So commercial options...

C# for embedded systems?

"C# is intended to be suitable for writing applications for both hosted and embedded systems, ranging from the very large that use sophisticated operating systems, down to the very small having dedicated functions." -- design goals (wikipedia) Although it greatly depends on how embedded is "emebedded", How well do you think C# ha...

Transition between processors.

I'm writing mostly embedded code at work. We have a big long-term project that's been developed, and has several generations, and now the processor for which it was written is being discontinued and it might be impossible even to continue using processors from the same manufacturer. (The transition will be probably from TI to Renesas FPU...

When is it good to use embedded script language like Lua

Hi, I'm playing WoW for about 2 years and I was quite curious about Lua which is used to write addons. Since what I've read so far about Lua was "fast", "light" and "this is great", I was wondering how and when to use it. What is the typical situation where you will need to embed a script language like Lua in a system ? ...