Jeffrey's Log

Archives | Subscribe


Older posts

STM32F4Discovery examples for GCC on GNU/Linux

       

STM32F4DISCOVERY is an ARM Cortex M4 development kit.

I don’t plan to write again a toolchain setup instruction for this board. You can install toolchain and flash tool as per instructions provided in the below link
http://recursive-labs.com/blog/2012/05/07/stm32f4discovery-chibios-linux/ Read the section – Building the toolchain on Debian using “Summon Arm Toolchain”

While installing the toolchain I got an error zlib.h: No such file or directory. On a Debian system you can remove this error by issuing apt-get install zlib1g-dev

The ARM toolchain is build using summon-arm-toolchain script. This toolchain also installs a free GPL V3 based firmware library known as libopencm3.

As I mentioned above, the summon arm toolchain will also install libopencm3. libopencm3 generates some header files during installation. These header files needs python yaml support. The build might stop because of this. You can fix this issue by running apt-get install python-yaml

You can find examples for STM32F4DISCOVERY from https://github.com/libopencm3/libopencm3/tree/master/examples/stm32/f4/stm32f4-discovery

Additional link for reference
1) http://jeremyherbert.net/get/stm32f4_getting_started This link uses the examples from proprietary firmware library of ST.

Posted in: GNU/Linux, Hacking | Tagged under: | Leave a comment

LPC2148 (ARM 7) Test bench setup

       

This is my LPC2148 (ARM 7) test bench setup.

The LPC2148 header board was bought from Rhydo Labz. You cannot directly power up and start to use. It lacks communication interface. To flash the controller, you need a serial port or a JTAG port. Since this board doesn’t have these port connectors, you need to solder them. So it might be hard for a newbie.


Instead of this board, you can try the BlueBoard which has all the port connectors. I will recommend this for a newbie. I hope that board is worth for its price.

The next thing which you need is a power supply to power the board. You can build your own power supply (If someone needs to know how to build a power supply, I will write a tutorial. But please put a comment in this post saying that you need the tutorial.) ,or you can buy 5V DC power supply (adapters).

Once the board is powered up, it can start to execute your code in its memory. But a fresh controller wont be having any code in its memory to execute. You need a programmer to load the code into its memory. But the LPC series controllers have built-in serial boot-loaders. These boot-loaders can get the code from the serial port and write into its flash memory. So you don’t need a programmer.

To program the controller using the serial boot-loader, you just need to connect the controller to the host PC and the host PC needs to run a serial programmer software. You can get a lot of serial programmer software for LPC controllers. Some of them are

So thats all. Power up the board and connect the serial port to the controller. Run the serial programmer software in the PC. You controller will execute the code flashed into its memory.

But wait. From where you can get the hex file to flash into its memory? Its simple. You just need a cross-compiler. To the cross-compiler, you just need to feed your C source file. It will compile and give you *.out files, which later can be converted into *.hex files.

I will soon try to post a wiki page about how to compile and flash the code into the memory.

Posted in: Circuit, Electronics, Embedded Linux, GNU/Linux, Hacking, open hardware, Projects, tutorials | Tagged under: , , , , , | 4 Comments

GNUduino – Arduino made with gEDA

       

GNUduino is an Arduino board (Arduino Single-Sided Serial Board Version 3) redrawn using gEDA. GNUduino functions same as that of an Arduino board (It’s just a clone of Arduino ).

When I saw the existing Arduino boards, I felt there is still a freedom missing. The existing Arduino boards are designed using a proprietary CAD tool. But GNUduino is free from those. It is designed using a complete free Schematic and PCB CAD tool named gEDA. This is my first Open Hardware project.

I would like to say special thanks to Pramode Sir for suggesting this name for the board.

You can download the schematic and PCB layout files from the below link
http://github.com/jeffreyantony/GNUduino

Update: Cooking GNUduino

Posted in: Arduino, Electronics, Embedded Linux, GNU/Linux, GNUduino, Hacking, open hardware, Projects | Tagged under: , , , , | 3 Comments

Electronic Design and Fabrication with gEDA

       

“Electronic Design and Fabrication with gEDA” is my first article in LINUX For You Magazine.

This is the first time I am forgetting to blog about my article. Actually it was published in last month(NOVEMBER 2009) issue. Please read it if possible.

This article mainly gives a quick introduction about gEDA. I have also given some snaps of my designs.

http://jeffrey.co.in/articles_talks.html

Posted in: Circuit, Electronics, GNU/Linux, open hardware | Tagged under: , , , | 1 Comment

More Octave Example Programs

       

More example programs for Octave has been posted in my wiki page. Please vist

MoreĀ  Octave Examples

If you don’t know about Octave, I have been maintaining a wiki page for Octave. See the link below

http://jeffrey.co.in/wiki/doku.php/experiments_using_octave_for_b-tech_course

Posted in: Electronics, FOSS, GNU/Linux, Mathematics, Open Course, tutorials | Tagged under: , , , | Leave a comment

Older posts