embedded

Where can I start with programmable Hardware?

I've had a desire to learn at least a tiny bit about programming hardware for quite some time now and thought I'd ask here to get some starting points. I am a reasonably accomplished programmer with Delphi and Objective-c experience but have never even listened to a device port / interupt (I dont even know the terminology) let alone pro...

How to capture from webcam in Linux using Mono?

How can I capture a frame from a video-4-linux device (e.g.: /dev/video0) using Mono and C#? OS is Angstrom Linux running on BeagleBoard. ...

Initialise pointer to a char pointer globally

I'm doing C programming and need help with this problem.. char str[] = "Hello"; char * ptr = str; char ** ptr2 = (char**)ptr; I have these three lines in a header file. The first two lines are fine but an error will occur in the third line. Explicitly the error is "initializer element is not constant". Is there any other way of assig...

Nano-X (Microwindow) Programming guide ?

Hello All, I want to know some basic programming guide for Nano-X (Microwindow, Embedded GUI). I know it's windows based programming but i want some of the tutorials where i can learn it something better. I also want to display icon or images on LCD, so how it is possible in Nano-X or Microwindow ? I also want User API manual for Micro...

Looking to write electrical engineering related open software

I apologize if this question is a little broad. Hopefully your answers will help me narrow it down to more meaningful questions. I'm experienced in software engineering and had a recent conversation with a friend who suggested that electrical engineering is very software driven these days. I'm trying to improve my understanding of th...

how to enable and configure USB OTG for device mode on iMX31 Litekit ?

I need to configure USB OTG on iMX31 for device mode. We need a raw channel between the host and target and usb seems to be the best suited. However I haven't been able to correctly configure the OTG controller. I dont know what I am missing. I have performed the steps mentioned in section 32.14.1 of iMX31 Reference Manual. I have also c...

Learning Embedded Systems Programming Using ARM Microcontrollers

I have just joined a project which require working on ARM based micro-controllers.. i have been a web developer for sometime and i am in need of some materials and resources to startup with embedded systems on ARM Micro-controllers. I am absolute newbie in this field so please provide me some online resources / tutorials / ebooks to brus...

What exactly is an "alarm subsystem"?

It appears that some electronics have programmed within them what's called an "alarm subsystem". What exactly is this subsystem? what does it tie to? what does it do? Is it known by any other name? If I were to program one, in general what would be the pseudo logic of it? Please don't mind going heavy on the details as I'm really new to ...

Is there a compatible way to serve videos to mobile devices?

I was wondering how to embed a video on a webpage to have it compatible with mobile devices. I am kinda new to the whole mobileweb. So I set up some testing pages and tried them out with some devices of my friends. Flash is obviously not the way to go. Embed tag neither. html5 video tag neither. I also tried to nest them for fallback com...

Custom RS485 Protocols

I am writing a simple multi-drop RS485 protocol for serial communications within a distributed system. I am using an addressable model where slave devices are given a window of 20ms to respond. The master uC polls the connected devices for updates and they respond accordingly. I've employed checksums and take the necessary overrun pre...

Why would I consider using an RTOS for my embedded project?

First the background, specifics of my question will follow: At the company that I work at the platform we work on is currently the Microchip PIC32 family using the MPLAB IDE as our development environment. Previously we've also written firmware for the Microchip dsPIC and TI MSP families for this same application. The firmware is prett...

Any tips for dealing with a very small stack?

I was wondering if any developers in the embedded space know of any interesting tricks to help lessen the pain of developing for microcontrollers with very limited stack space. I've recently been writing some firmware for 8-bit uCs (Microchip PIC18F family, 31 byte stack) and as a consequence I have had to flatten my programs and reduce...

Coding Dojo for embedded

I'm looking for informations about how to make a coding dojo for embedded. More especific with C Ansi and also with Assembly, if possible. ...

"CPU is not halted" and "No APB-AP found" error

When I use JTAG to load my C code to evaluation board, it loads successfully. However, when I executed my code from main(), I immediately got "CPU is not halted" error, followed by "No APB-AP found" error. I was able to load and executed the USB-related code before I got this error. I googled for it and use JTAG command "rx 0" to rese...

What is a good embedded database to use with C#?

Hello, With the demise of VistaDB (vistadb.net), I am on the look out for a good embedded database to use for my C# programming. Does anyone have any suggestions for something to use that it is simple to install along with my application? VistaDB was simple because I only had to copy 1 DLL file along with my app to get it to work. I ...

Embedded C code review

Hi, I am required to write a function that uses a look up table for ADC values for temperature sensor analog input, and it finds out the temperature given an ADC value by "interpolating" - linear approximation. I have created a function and written some test cases for it, I want to know if there is something which you guys can suggest to...

How important is it to learn linux?

I am coming from the embedded background and mainly working in the testing domain. I am just planning to shift my career to linux (embedded linux mainly). My doubt is how far can this help me in my career upliftment? Is this a right decision to go on since I have been working in the embedded testing domain for more than 4 years. ...

How to demo examples of embeded systems?

It seems that a lot of small business people have a need for some customized embedded systems, but don't really know too much about the possibilities and cannot quite envisage them. I had the same problem when trying to explain what Android could do; I was generally met with glazed eyes - and then I made a few demos. Somehow, being able...

Is there an easy way to convert a number to hexidecimal ASCII chars in C?

I am working a C firmware program for an embedded device. I want to send an array of hex char values over the serial port. Is there a simple way to convert a value to ASCII hex? For example if the array contains 0xFF, I want to send out the ASCII string "FF", or for a hex value of 0x3B I want to send out "3B". How is this typically do...

ARM LPC1768 UART0 configuration problem, wrong baud rate.

My baud rate should be 115200, but it is 892.9 void UART0_Init(int pclk, int baudrate) { unsigned long int DLest; //unsigned long int pclk; unsigned int temp; // Turn on power to UART0 SC->PCONP |= PCUART0_POWERON; // Set PINSEL0 so that P0.2 = TXD0, P0.3 = RXD0 PINCON->PINSEL0 = (PINCON->PINSEL0 & ~...