Electronics For भारत

Electronics, Code and some insights for भारत (India)

STM8 Precise Cycle Delay

This started a quest to design the perfect cycle delay for one of my favorite MCUs the STM8. In the process I learned a lot about custom pipeline and execution of in proprietary MCU such as STM8S.

STM8 board Image
Fig: STM8S Board

Setting Up Msys2;MinGW64 for Windows

Many of us Windows users try to have Visual Studio environment.
But that’s not always great option. Unless you are ready to download 8GB on your internet bandwidth.

I personally like Visual Studio and its fast upcoming cousin VS Code. But hate the large download part.

Hence an opensource alternative is a need of the hour.
Also if you like to compile linuxy style code with Makefile in all its glory.

MinGW64 at your service friend!

ESP8266 Unofficial Windows Development Environment

It has been long time since I worked on ESP8266 and that too native SDK from Esperssif. With the rusty know-how and lack on info online, I had a mixed start again. Hope that the experience shared here might be helpful for many users, who wish to do ESP8266 native SDK development on Windows Platform. But are afraid that most of the working tools for ESP8266 are linux friendly.

Not to worry you are in good company.

Convert Raw disk Image file into Virtual Box `.vdi`

Working with DietPi, we found going back and forth between the Raspberry Pi and PC very time consuming. Fortunately DietPi provides a PC distribution with x86_x64 configuration. Though they had both VM Ware and Virtual Box files but they did not work for us. So we decided to download the Native PC for BIOS/CSM (BETA) option.

We later found out this is just a .img file, we could not directly use it with Virtual Box

WiFi Problem with Lenovo Laptop

This problem specifically occurs with Lenovo laptops and more pounced in *Ubuntu 17.x” onwards.

The problem happens when the laptop goes to any type of standby , sleep or hybrid-sleep.

It causes the WiFi the not function again after wakeup.

Security Hardening : SSH on Ubuntu

Some of us like myself do our primary hardware development on Windows PCs. However when it come to writing a Go server or a Rust program we head over to Linux PC. Most of the development work on a Linux PC is via the terminal. Hence having a good remote terminal is essential. As you can’t always have a VM instances running your Linux. It become difficult over time.