embedded

Converting to ASCII in C

Using a microcontroller (PIC18F4580), I need to collect data and send it to an SD card for later analysis. The data it collects will have values between 0 and 1023, or 0x0 and 0x3FF. So what I need to do is convert 1023 into a base 10 string of literal ASCII values (0x31, 0x30, 0x32, 0x33, ...). My problem is that the only way I can th...

XP Embedded attempts to start application as service

Hi, I'm having a lot of problems trying to start an application as administrator on an application I'm writing when running it on XP Embedded. The application runs as the shell for a limited user account and is touch-screen and keyboard-less with one user command being to run the touch screen vendor's calibration tool. This must be run...

Anyone using Scheme/LISP for embedded projects?

Hi to all, This question is maybe somehow inspired with Anyone using Python for embedded projects?; so anyone using some Scheme version or Common Lisp (like ECL) for free/oss/commercial projects? Personally, I used (and still using) TinyScheme for personal projects where some embedded language is needed, mostly due extremely easy embed...

How does an assembly instruction turn into voltage changes on the CPU?

I've been working in C and CPython for the past 3 - 5 years. Consider that my base of knowledge here. If I were to use an assembly instruction such as MOV AL, 61h to a processor that supported it, what exactly is inside the processor that interprets this code and dispatches it as voltage signals? How would such a simple instruction like...

How to acess COM port of remote system?

I Want to access the COM port present in the remote system from system. Any help would be appreciable. I am using windows XP in both remote as well as local system. ...

Typecasting an integer to a character pointer in C

I have a function uint8_t EE_Write(uint8_t addr, uint8_t len, uint8_t * buf) that takes a pointer to some data that it will write to memory, and a uint16_t myword that I want to give it. The basic EE_Write(0,sizeof(myword),&myword); gives me the compiler warning "Indirection to different types ('unsigned int *const ' instead of 'unsi...

video conferencing stack for embedded devices

I am looking for a video conferencing stack that I can run on an embedded device. Cam will be connected through USB, hw video acceleration and ethernet is available. We are running linux & directfb. Any suggestions? ...

c# (mono, dotgnu) for arm embedded questions

Has anyone experience with c# or .net based languages for arm based boards? Are there compilers that make my code ready for the arm board? Is it recommed to develop with linux or windows? Are there advantages having a Linux, or Windows OS on the target board? any help appreciated. Thx ...

most efficient way to find largest of three doubles in .NET Microframework?

I have three doubles: double[] accel = new double[3] { _Razor.Accel_X, _Razor.Accel_Y, _Razor.Accel_Z, }; What's the most efficient way to find the largest of these in NETMF? ...

Free implementation of March memory testing algorithm

Dear Community For board bringup, me and my team is in search for a memory testing algorithm that will help us verify the design and test during production (bad soldering, cross-connected address/data lines, mismatched impedances, mirroring etc.). I've read that e.g. March C or similar is the answer to our prayers, but I haven't yet f...

How to detect cold boot versus warm boot on an ARM processor?

I'm looking for a way to determine whether an ARM processor is booting from a cold boot (i.e. initial power-on) versus a warm boot (i.e. reset assertion without actual power loss). Specifically I'm using an ARM968 core, will be making the determination using C or assembly, and I will use the determination so certain operations only run ...

Why use FitNesse when the tests are highly technical?

It seems to me FitNesse has the following advantages: Let a non-technical person define sets of test data and expected results (how they define success). A non-technical person could be a user, a product manager, or possibly a software quality professional who does not have access to the source code and/or does not know how to program ...

When do I need to typecast in C?

I understand typecasting...but only in retrospect. My process to figure out what requires typecasting in expressions is usually retroactive because I can't predict when it will be required because I don't know how the compiler steps through them. A somewhat trite example: int8_t x = -50; uint16_t y = 50; int32_t z = x * y; On my 8-b...

Is there a good tiny XML parser for an embedded C project?

I'm after a very tiny XML parser for an embedded project. It needs to compile down to 10-15k, doesn't need to validate, and needs to be simple and portable. ...

What are the actions happening when we switch ON an embedded board?

Now , My doubt has changed to exact point after some long discussion in this thread with dwelch. "If you are wondering how the processor gets ready to execute the first instruction. its the way the logic is designed" HOW THE LOGIC IS DESIGNED? Can you give me more idea on this? Is there any document give me more details? Is the algorith...

ioctl and execution time

Hi, I have a program running two threads - they communicate using message queues. In one thread, I call ioctl() to access the hardware decryptor. The code goes like: void Decrypt { ... .. ... if(<condition 1>) {. ... ... retVal = ioctl(...); comesInHere1++; } if(<condition 2>) { ... ... retVal = ioctl(...); comesInHere2++; } come...

C shared memory

I am trying to implement shared memory on embedded device with uClinux. My C source #include <stdio.h> #include <sys/shm.h> #include <sys/stat.h> #include <sys/socket.h> #include <errno.h> //using namespace std; int main() { int segment_id; segment_id = shmget(04, getpagesize(), IPC_CREAT | 0666); printf("Page...

ARM Cortex M3 How do I determine the program counter value before a hard fault?

Hi all, I have an embedded project using a STM32F103 (ARM Cortex M3), it is getting a occasionally getting hard fault in release mode. As part of recovery, I would like to retrieve the PC value from before the hard fault and store it for later debugging in the battery backed region. How would I determine the value of the program counte...

sources of "uniqueness"/entropy on embedded systems

I have an embedded system. What I would like for it to do when it powers up or otherwise resets, is to generate a unique ID, so that on different restarts a different unique ID is generated with high probability. It does not have access to a real-time clock, but it does have access to an ADC and a UART. I am wondering if there is a dece...

Compact decompression library for embedded use

We're currently creating a device for a customer that will get a block of data (like, say, 5-10KB) from a PC application. This is a bit simplified, so assume that the data must be passed and uncompressed a lot, not just once a year. The communication channel is really, really slow, so we'd like to compress the data beforehand, pass to th...