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...
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...
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...
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...
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...
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...
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 ...
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 ...
Can anyone please suggest a small PIC board which has a web server built into it and can be programmed to handle ftp connections?
...
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...
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...
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...
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
...
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...
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...
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?
...
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.
...
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...
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.
...
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...