embedded

Tool for simple modification of elf file?

My embedded projects have a post-process step that replaces a value in the executable with the CRC of (some sections of) the flash. This step can only be done after linking since that is the first opportunity to CRC the image. In the past the file format was COFF, and I have created a custom tool to do the patching. The development too...

Hardware FPU error from ld when linking with .a archive

I have a strange problem that I can't seem to solve. I'm developing in C/assembly on an embedded ARM board with no FPU, and using GCC's soft floats. Everything is compiled with -msoft-float as a CFLAG I'm trying to make an .a library in one directory and link with my kernel. When I do so, I get an error from ld: ERROR: lib/libfoo.a(s...

STL in embedded enviornment

I am a C++ programmer and over the years have been subjected to hearing the notion that STL is not good for use in embedded enviornments and hence usually prohibited in usage for embedded enviornment based projects.I believe STL libraries like Boost are far more powerful and provide a much more faster & less error prone means of developm...

PHP as embedded scripting language

I have gotten Lua scripting in C# working via LuaInterface, and javascript scripting working via JInt. The goal is to support a wide variety of scripting language options. Is there any similar method to run embedded PHP scripts in a similar way? I.E., have a PHP script in a string, pass it to either the PHP command line or an interprete...

Can sizeof(int) ever be 1 on a hosted implementation?

My view is that a C implementation cannot satisfy the specification of certain stdio functions (particularly fputc/fgetc) if sizeof(int)==1, since the int needs to be able to hold any possible value of unsigned char or EOF (-1). Is this reasoning correct? (Obviously sizeof(int) cannot be 1 if CHAR_BIT is 8, due to the minimum required r...

Building Multilingual Windows CE 6.0 OS

Hello, I have buid a multilingual Windows CE 6.0 OS for differents roman european languages and several east asian: chinese, japanese and Korean. To do this, I have followed the informations described par MS in the article "How to create a multilingual OS Design" (see http://msdn.microsoft.com/en-us/library/ee491398.aspx). On the ta...

Embedded Linux Read and Write Video from a USB port

I've got an embedded Linux project where I need to read video in through a USB port, make some modifications to that video (such as compression), and then send it back to the host via preferably the same USB port. It would also be a preferred feature if we could send commands to change things such as the video compression level from the ...

Version Control soft that will keep ALL files and their metadata from POSIX FS (ext3/ext4)

Hi, all. THE SCENARIO I'm developing a Root FS for some embedded Linux device. It is sitting on the host, exported via NFS and my development board mounts is under "/". The workflows that I need are: - to share my FS to other developers(they have with their own dev. boards) - to backup my Root FS onto some "server" - to deploy my Root ...

PIC board with a webserver

Can anyone please suggest a small PIC board which has a web server built into it and can be programmed to handle ftp connections? ...

How to cross-compile Qt X11?

I have been trying to get Qt X11 cross compiled for PowerPC for a while now and kept having various problems. From the information given my Qt support, all one needs to do is: Create a new mkspec Copy an existing directory in mkspec/ I used linux-g++ and modified it. Modify qmake.conf to use your toolchain, libraries and includes R...

linux embedded bash script stucks on reboot

Hello, I have a simple script that at machine boot checks for a USB device, when found mounts, copies some files to the flash memory, unmounts and requires a reboot. what happens when I write to the flash is rm -rf folder_to_remove tar -zxvf from the usb key archive to the new location I found that if I comment those lines, so I do n...

Upstart init is leaking memory, how do you debug it?

I've got a memory leak in Upstart init process (pid 1), what options I have on debugging it? EDIT: Suggest me some real tools for this, manually putting printfs or calculating memory allocations by hand isn't gonna cut it. Also dumping init core and poking around that is not really an option. UPD1: valgrind doesn't work. Replacing /sbi...

zigbee and embedded system

hi guys, I'm new with zigbee i need you to help me learn about it and know how to implement an embedded system using it thanks in advance ...

Simplifying compilation with each of a list of options

I've got a list of definitions: MASTER, SLAVE0, SLAVE1, ... SLAVE9 to control which array of audio data is programmed into a microcontroller. The micro can hold no more than one sound file, so I have included the following definitions at the top of my main.c file: #define MASTER #define SLAVE0 #define SLAVE1 .... #define SLAVE9 Then...

PID controller integral term causing extreme instability

I have a PID controller running on a robot that is designed to make the robot steer onto a compass heading. The PID correction is recalculated/applied at a rate of 20Hz. Although the PID controller works well in PD mode (IE, with the integral term zero'd out) even the slightest amount of integral will force the output unstable in such a...

Embedded C function macro problem

Hello, I came across this in embedded hardware using C. #define EnterPWDN(clkcon) ( (void (*)(int))0xc0080e0 ) (clkcon) I have no idea how is this function macro working. I understand clkcon is the function parameter to EnterPWDN, but what is happening after that? ...

Custom Linux GUI

Hi, I'm interested in creating a GUI for a Linux operating system. What I'm trying to do, is, a program will be the GUI -- the program will have be quite basic. I think this question will go into Embedded Linux development, but I'm not sure where to start neither the amount of tutorials or help available. Thank you for any help. ...

Logic for 9 key keyboard to print qwerty keys

I have a device which has got 9 keys just like an ordinary mobile phone. I want to print normal alphabets like ABCD using these 9 keys exactly the way mobile phones let you do it. This is an embedded system programming project. I am unable to figure out the logic to implement this functionality. I am detecting keys by polling and not...

What would be a good open source lightweight c library with basic utility functionality to use in an embedded system

I'm thinking of something like glib, but possibly a slim version with a minimal foot print. It would need basic utilities such as linked lists, vectors and hash tables. It should also have a minimal runtime footprint. ...

Using the check test unit framework in an embedded device?

Has anyone used check as the unit test framework in an embedded device which also requires cross-compilation? Is it even a good idea, or should I just use something else (e.g. embunit or similar)? If so, how should I write the Makefile.ams and configure.ac? I haven't used autotools to begin with so all this cross-compilation stuff cert...