Friday, April 24, 2015

Modify the initial ramfs (initramfs) archive

1 Introduction

Just a tiny note about modifying the initrd image on Debian, Unbuntu, or other Linux distributions. For glossaries about initial RAM disk, initial RAM filesystem, Root filesystem, etc, please reference the links listed in the end of the article.

Thursday, July 3, 2014

STM32F401 Disco sensor demo with Bluetooth Low Energy

1 Introduction

stm32f4-bluenrg is a sensor demo project for STM32F401 Discovery board in conjunction with a BlueNRG module.

The BlueNRG app allows you to access the sensor data directly from the mobile device over Bluetooth Low Energy.

Sunday, May 4, 2014

uGFX Notepad on STM32F429I Discovery FreeRTOS

1 Introduction

FreeRTOS 8.0.0 on 32F429IDISCOVERY board that demostrates uGFX notepad.

Tuesday, April 22, 2014

FreeRTOS 8.0.0 porting on STM32F429I Discovery Board on Linux

1 Introduction

FreeRTOS 8.0.0 porting on 32F429IDISCOVERY board using GCC on linux.

Saturday, April 12, 2014

Remotely GDB USART1 Project with STM32F429I Discovery Board

1 Introduction

In this article we are going to GDB remotely debug an USART1 project on STM32F429 Discovery board. System clock configuration and USART fractional buad rate calculation will also be introduced.

Friday, March 14, 2014

STM32F429I Discovery SMS Emulator on Linux

1 Introduction

Alessandro Rocchegiani released some interesting projects on STM32 series MCUs. This article introduces the adding support to be built and burned under Linux, with the project STM32F429 Discovery Sega Master System Emulator as an example.

Friday, February 28, 2014

USB HID Report Descriptor Parser in Python

1 Introduction

This is a similar tool as HID Descriptor Tool that is avaliable in USB-IF. Not intended to re-create the wheel, my purpose is to quickly create an utility that can parse the following USB HID Report Descriptors:
  1. descriptors which are binaries
  2. descriptors for an USB Sensor HUB
A script language (python) is chosen because of the need of writing it in a quick way.

Tuesday, August 6, 2013

Kernel menuconfig to move in VIM ways

Specially for VIM fans. The following is a patch to current (GIT) linux kernel lxdialog that allows you to move with h,j,k,l keys in menuconfig. Please click HERE to download the whole patch file.

Sunday, July 7, 2013

Python Print String Descriptors for the USB HID Devices

1 Inctroduction

In this tutorial, we are going to write two small python programs that prints the String Descriptors for all the USB HID devices in the system. To do this, there are many choices of libraries for assistence. I will introduce two of them - PyUSB and PyWin32. PyUSB supports both Linux and Windows, and PyWin32 supports Windows only.