embedded

Mono on embedded ARM experience?

I'm evaluating components for a new embedded platform. CPU is an ARM9 and OS is Linux. Because the platform will be in use at least for 10 years I think the language should be chosen carefully as well. I'm already running Mono on possible target platform. Beside that I'm to dumb to compile Mono with my Compiler (according to Google more ...

Safe "task switching" on ATmega chips

I started implementing something similar to task switching in my app on atmega8. The main idea is that there's a pointer to a "current screen" structure. The "current screen" contains handlers for refreshing the screen, handling buttons and interrupts. Unfortunately I discovered that changing a function pointer is done in done in 2 oper...

A simple, uniform and portable way of including tracing and backtracing into a C program.

GNU libc's backtrace and In-circuit emulators/debuggers are not always available when porting code to a new platform, especially when the target is a micro C compiler such as for the Z80. (Typically a program bug would "just hang" somewhere, or crash the gadget.) Is there an alternative to the classic "wolf fencing" method of manually i...

Name for a bitmask with 1-bit set

In C and embedded, one frequently uses enumerated constants where every value is a bit mask with exactly 1-bit set. (e.g. 0x0001, 0x0002, 0x0004, etc.) Is there a standard name for this type of bitmask? I've seen them referred to as flags, but more in passing than as a standard definition. I know it sounds snobbish, but "flags" doesn't r...

Is object orientation bad for embedded systems, and why?

Many embedded engineers use c++, but some argue it's bad because it's "object oriented"? Is it true that being object oriented makes it bad for embedded systems, and if so, why is that really the case? Edit: Here's a quick reference for those who asked: so we prefer people not to use divide ..., malloc ..., or other object ori...

Why does the chip control the language to choose

I've asked the question before what language should I learn for embedded development. Most embedded engineers said c and c++ are a must, but also pointed out that it depends on the chip. Can someone clarify? Is it a compiler issue or what? Do chips come with their own specific compilers (like a c compiler or c++ compiler) and that's wh...

What c++ features should be avoided for embedded development

I'm interested in compiling a list of c++ features that are not advisable for use in embedded systems (and which may cause people to recommend c over c++). Please try to add why if you know, or add your why to others' answers. Here's one for a start (the only one I know) Dynamic polymorphism, don't know why, but someone said it's "co...

An example of an embedded project for a single person

I've been trying to wrap my head around embedded. Since I will be self-taught in this specific niche, I realize it will be harder to get a job in the field, so I'm hoping to add a completed project to my resume to prove to potential employers that I've done it and can do it again for them. Can someone suggest a project that I can undert...

Audio detection in an embedded system

I'm getting started with embedded, and was thinking to start learning by implementing some sort of a clapper project where I detect audio and respond to it. I have some specific questions, but since I'm new to this field, please add any additional advice What audio libraries exist that could help with this type of project What hardwa...

Are there specialities within the embedded fields

I've started learning embedded and its 2 main languages (c and c++). But I'm starting to realize that despite the simple learning requirements, embedded is a whole world in and of itself. And once you deal with real projects, you start to realize that you need to learn more "stuff" specific to the hardware used in the device you're worki...

What OSes can I use if I want to use Intel Atom based board as an embedded system?

Hey guys Im planning to use Intel atom on a board for an embedded system. The embedded system will be running programs written in C for image processing. Since its an embedded system footprint is obviously a concern. I was thinking about using a modified version of the linux kernel. Any other options?? ...

What are the differences between 8, 16 and 32 bit microcontroller programming?

I believe that the greatest difference is in speed and optimizations of math functions, and of course, the size of internal buses, but can you post more differences between these platforms? ...

Profiling embedded application

I have an application that runs on an embedded processor (ARM), and I'd like to profile the application to get an idea of where it's using system resources, like CPU, memory, IO, etc. The application is running on top of Linux, so I'm assuming there's a number of profiling applications available. Does anyone have any suggestions? Than...

What does the C compiler do with bitfields?

I'm working on an embedded project (PowerPC target, Freescale Metrowerks Codewarrior compiler) where the registers are memory-mapped and defined in nice bitfields to make twiddling the individual bit flags easy. At the moment, we are using this feature to clear interrupt flags and control data transfer. Although I haven't noticed any bu...

Create Facebook wall post from embedded application

Hi, I'm working on a project where I want to post a wall message to the users Facebook page but the problem is that the program will run on a very limited system and the only way I have to talk with Facebook is via sockets in C/C++. Anyone have any code examples of how to do this? Asking for the username/password is no problem so I will...

How can I use SD card for data logging 16bit data at 48ksps

Background My board incorporated an STM32 microcontroller with an SD/MMC card on SPI and samples analogue data at 48ksps. I am using the Keil Real-time Library RTX kernel, and ELM FatFs I have a high priority task that captures analogue data via DMA in blocks of 40 samples (40 x 16bit); the data is passed via a queue of length 128 (wh...

Is there any C standard for microcontrollers?

Hi, I just want to ask, is there any special C standard for MCU? I ask because so far when I programmed something under Windows OS, it doesn´t matter which compiler I used. If I had compiler for C99 I knew what I can do with it. But recently I started to program in C microcontrollers, and I was shocked, that even its still C in its bas...

What systems officially support OpenGL?

I know OpenGL is cross-platform and runs across Windows and Mac, but what other marketable products support it along with OpenGL ES? I'm just curious of its current market. Thanks! ...

Custom Heap Size in Android Platform?

The software team in our graduation project asked for increasing the heap size per process in Android. They said that the default is "16MB" which isn't sufficient for them. How could I custom the size? I found a commented line in the file: /acme/my_board/BoardConfig.mk in my android source code: # USE_CUSTOM_RUNTIME_HEAP_MAX := "64M" ...

Is it possible to use default Windows 7 themes in Windows Embedded Standard 7 ?

Hello folks, Is it possible to use Windows 7 default themes (such as Windows 7 Basic) on Windows Embedded Standard 7 ? If so, how ? I believe themes include common controls styling i.e. they give an "Aero" look to your progress bar instead of the classic Windows 95-ish one. The context of my question is a migration of a WPF applicatio...