embedded

slightly weird (imo) C++ code

Sorry if this is simple, my C++ is rusty. What is this doing? There is no assignment or function call as far as I can see. This code pattern is repeated many times in some code I inherited. If it matters it's embedded code. *(volatile UINT16 *)&someVar->something; edit: continuing from there, does the following additional code conf...

high speed tracing

I have an embedded board with a 32 Micro-controller, and an custom built OS, Unfortunately, as of now, connection to the PC is only through serial port, Internal memory is limited to 512KB. There are at-least 10 tasks in the system Question, I want to capture the sequence in which task switch happens, And when I try to write in...

Best practices for reusable embedded C?

I'm writing C code for an embedded system (dsPIC33 platform), and I'm considering building up a reusable code library to use among multiple projects. What are the best practices for tying the library to each project? Obviously the library will have some hardware-specific (and thus project-specific) dependencies, so it's reasonable to a...

Handling power-off of an embedded board

Hi, I'm working with an embedded board (a BeagleBoard), running a Linux distribution (Angstrom Linux). I would like to gently halt the operating system when a given button is pushed on the board. What I plan to do is : At the init, launch a "power-off" daemon as root user "power-off" run the magic code to check if a given button is pr...

About Watch Dog Timer

Can Anyone tell me whether we should enable or disable watch dog during the startup/boot code executes?My friend told me that we usually disable watch dog in the boot code. Can anyone one tell me what is the advantage or disadvantage of doing so?? ...

Thermometer using DS1620 IC and arm microcontroller

I am working on a project in which I have to use DS1620 IC to display temperature using ARM LPC23xx micro controller. I want to write code in C. I am a newbie in embedded systems and I have to finish this in 24 Hrs. Please help in any way possible. ...

What is the easiest way to debug embedded jython in eclipse?

I know I can debug embedded (launched from a Java program) Jython with a remote Pydev debugger. Is there a simpler way to do it? ...

How to get value from 15th pin of 32bit port in ARM?

I am using an IC, DS1620 to read 1 bit serial data coming on a single line. I need to read this data using one of the ports of ARM microcontroller (LPC2378). ARM ports are 32 bit. How do I get this value into a 1 bit variable? Edit: In other words I need direct reference to a port pin. ...

How to read value from GPIO port of an ARM microcontroller?

How do get ARM microcontroller port value into a 32 bit variable. I am using LPC2378 microcontroller. ...

Displaying single digit on a LCD using ARM microcontroller?

I am writing an embedded application in which I need to display a digit on LCD. There must be some pre-existing libraries available doing the same. Or is there some reference code in C-language that could be referred? Microcontroller is ARM based LPC2378. ...

Steps to read data from ARM microcontroller port

I am having trouble reading serial data from ARM LPC2378 microcontroller. Will I have to use UART or any GPIO port can be used?? is ayone having c code for it?? ...

Tips for designing a minimalist data store suitable for an embedded device.

I am trying to design a data store implementation like SQLite, BerkeleyDB or CouchDB suitable for a small embedded computer platform. The main criteria is minimal bloat and simple API. I could not find any products that fit my needs. SQLite is a tad too large and mimics relational databases. CouchDB has a good RESTful API but is bloated...

Can anybody suggest me a book on embedded system design?

Please suggest me a book on embedded system design which covers advance design of embedded sofware design of hardware to build efficient system I know, its difficult to learn all the things from books still do suggest me some books. ...

Tuturials for problems with Xilinx's microblaze IP Stack

Hello, My team is using the microblaze and we're having some trouble with the ip stack. I am usually not an embedded programmer but I would like to learn how to help. Are there any tutorials about IP stacks? What are they? How are they programmed? How can I troubleshoot problems in the IP stack? Basically any info would help me. Thank...

expect replacement

I want to work with a modem interfaced on a serial port on an embedded platform. Here are some solutions I have rejected so far : Expect plus a terminal program : My (cross)build system does not have any package rules for expect, and according to the installation instructions from the expect sources, the configure script needs to be i...

Embedded app and wearing out flash disks

I have an embedded app that needs to do a lot of writing to a flash disk (or other). We cannot use a hard disk due to the environment. This is an industrial system subject to vibration and explosive fuel vapour. The trouble is, flash has a lifecycle of around 100000 write cycles. Ample for your digital camera. Wears out after a year...

References for implementing calendar functionality in an embedded system?

I have an embedded system that currently keeps track of seconds until an event is supposed to occur using a real-time clock driven by a watch crystal. Now it needs to keep track of the actual date and time. So, I need to be able to calculate the day, month, year, hour, minute and second from a start date/time and offset in seconds. C...

Lightweight debugging on embedded Linux

I'm developing an application that runs on a small Linux-based SBC (~32MB RAM). Sadly, my app recently became too large to run under GDB anymore. Does anyone know of any good, lightweight debugging methods that I can use in embedded Linux? Even being able to view a thread's stack trace would be extremely helpful. I should mention tha...

Lua certified for use on an airframe or road vehicle?

Does anyone know if Lua has been certified to run on an airframe or road vehicle? Certification processes such as DO178B (RTCA) or standardization such as ISO 26262 (Road vehicles). Certification is like case law and I would feel more confident evaluating the language knowing that another company has successfully made it through a proce...

C++ frontend only compiler (convert C++ to C).

I'm currently managing some C++ code that runs on multiple platforms from a single source tree (Win32, Linux, Verifone CC terminals, MBED and even the Nintendo GBA/DS). However I need to build an app targetted at an embedded platform for which there is no C++ compiler (C only). I remmber that many of the early C++ compilers were only fro...