Browsing All Posts filed under »Embedded«

Linking a binary blob with GCC

February 19, 2012

20

There’s a simple way to include binary data inside an executable, when using a GCC toolchain. The trick relies on using objcopy to transform the binary blob of data into an object file that can be linked. In this example I am creating a binary blob of 16 bytes of random data in file “blob.bin“: […]

2012 Embedded Linux Conference Schedule

January 23, 2012

0

For anyone interested, the schedule for the next Embedded Linux Conference, held in San Francisco bay on the 15-16-17 of February, is out: 2012 Embedded Linux Conference | Schedule | Linux Foundation Events.

ELCE 2011 videos are out

November 8, 2011

1

As usual, FreeElectrons hosts the videos of the Embedded Linux Conference Europe, together with the presented material: Embedded Linux Conference Europe 2011 videos Here is a personal selection of videos that I find most interesting: Linus Torvalds, Alan Cox, Thomas Gleixner, Paul McKenney moderated by Lennart Poettering Kernel Developer Panel Video (55 minutes): full HD […]

Codesourcery toolchains have new site at Mentor Graphics

October 8, 2011

10

This completely slipped under my radar: Mentor Graphics acquired CodeSourcery’s toolchain products some time ago. I found out when I got to their site and it redirected me to Mentor. In my tutorials I often make use of the Lite editions of the Codesourcery toolchains, so this is the new site for reference: Sourcery CodeBench […]

Using CodeSourcery bare metal toolchain for Cortex-M3

September 3, 2011

61

Using the CodeSourcery arm-none-eabi toolchain to compile a minimal "Hello World" example for Stellaris lm3s6965 microcontroller. The microcontroller is emulated through QEMU and the output is written to a serial port.

Compiling Linux kernel 3.0 with Emdebian ARM toolchain

July 24, 2011

16

The Emdebian project works to bring Debian on embedded platforms, with repositories of custom distributions and toolchains to cross-compile software. I wanted to try their ARM toolchains, and coincidentally the Linux kernel 3.0 has been released in these days, so I tried to cross-compile it and emulate it on QEMU. These tests have been done […]

Inline assembly instructions in GCC

May 17, 2011

1

In embedded software programming there’s often the need to use assembly-level instructions to reach all the functionalities of the processing core. But when the developing is done almost exclusively in C, it is sometimes a burden, often an added complexity and possibly a nuisance to code separate assembly files containing the needed functions. Other than […]

Programming Arduino Uno in pure C

March 29, 2011

140

We look under the hood of Arduino IDE, and use the avr-gcc compiler directly to build a program in C. We then use avrdude to upload it on Arduino Uno board.

Capturing an analog signal with Arduino and python

March 26, 2011

9

Last week I salvaged a magnetic sensor from a stationary bike and connected it to my Arduino Uno in order to analyze the sensor’s behavior with the ADC converters.   I wanted to capture a good enough signal, so I searched about the Arduino capabilities: From analogRead() reference description: It takes about 100 microseconds (0.0001 […]

Videos of last Embedded Linux Conference are out

March 21, 2011

0

Last October the Embedded Linux Conference Europe (ELCE) 2010 was held in Cambridge¬† (UK). Today the videos of that conference are available on Free Electrons site. My Top-5 of the most interesting videos is as follows: Panda board demonstration, Rekha Kumar and Nipuna Gunasekera (Texas Instruments): Video Software Considerations When Using High-Performance Memory Systems, Leif […]