Bitbake – reusing work

To manage complexity Bitbake supports various constructs for writing generic reusable components and using these components in user scripts. This constructs are the core of the Yocto build system and we need to become more familiar with them. Basic building... Read more

Yocto Bitbake variable syntax

One of the main things that one must do when working with Yocto is to became comfortable with Bitbake variable syntax. Here we will go through all most commonly used syntax concepts. Assigning variable Basic Variable Setting This assignment occurs... Read more

Enable i2c tracing on Linux

To inspect traffic between Linux and I2C devices, perform the following steps: Output sample: Read more

Writing custom bootloader for STMF303RE ARM Cortex M4 microcontroller

In this post we will go through the process of writing a custom STM32303RE bootloader. We will use the reference manual to find out all relevant details and use STM32CubeIDE for development. The actual board used during the development is... Read more

Finding out Python stack trace via GDB

When working as a system admin I often had a problem where the python application got stuck but was unsure where. To handle this case I created a GDB script that retrieved that backtrace. These scripts refere to older versions... Read more

Search all tables for specific ID value

I had a case where I got an table id but was not sure what table was it refering to. I known that table contained string ‘test’. I knew that PostgreSQL has support for for selects and also supports execute... Read more

Avro Schema tips/tricks

When writing Avro schema I often forget the how to construct certain constructs which are provided by Avro Schema itself. For my own sake I decided to keep a list of often used features. Union types and null Union types... Read more

CMake add element to a list

Things I often forget Define and/or add elements to a list Read more

Listing all variables in CMake build

To list all CMake variables in a build job, enter the following: Read more

Effect of ENTRY directive in Linker Script on Cortex-M4 binary

My initial understanding of ARM Cortex-M4 bootstraping sequence was that when MCU was started, it loaded pointer from Reset_Handler IVT and then jumped to that address to start configuring the processor.Later on when I started doing some stuff on Linker... Read more