STM32F103 LL Tutorial 1 – Software Tools Installation

STM32 LL Library

STM32 Low Level (LL) library is a new library for programming the STM32 series. The LL library offering a fast light-weight expert-oriented layer which is closer to hardware than the Hardware Abstraction Layer (HAL) library. The LL and HAL are complementary and cover a wide range of applications requirements. You can mix LL code with HAL code. You can select how each peripheral will be handled, i.e. with LL or HAL. For example, you can use LL for light-weight peripherals such as GPIO or UART, and use HAL for peripherals that need heavy software configuration such as USB or Ethernet. The LL library can also be used in standalone mode (without HAL library). The LL library works by writing directly into the peripheral registers, therefore the code is more efficient and compact. The LL library replaces the Standard Peripheral (SPL) library, which has been discontinued by ST. On the other hand, the HAL library is less efficient than the LL library, but allows easy code migration between various STM32 series. Both of the LL and HAL can be generated by using STM32CubeMX.


Continue reading “STM32F103 LL Tutorial 1 – Software Tools Installation”

Share this:

ESP8266 Arduino Tutorial 2 – Create the First Program

Driver Installation

In the previous tutorial, the Arduino IDE has been installed. In this tutorial, we will create the first program. This program uses the on-board LED on ESP-12E module. The LED will blink every 1 s. Before we go to the programming, we must install the NodeMCU USB driver. The step-by-step how to install the NodeMCU driver is described as the following:

  • Download NodeMCU driver from this link.
  • Connect NodeMCU board to the USB port.
  • Run the driver installer file: CH341SER.EXE, and install the driver.

NodeMCU Driver

Continue reading “ESP8266 Arduino Tutorial 2 – Create the First Program”

Share this:

ESP8266 Arduino Tutorial 1 – IDE Installation


ESP8266 is a low-cost Wi-Fi System-on-Chip (SoC) produced by Espressif Systems, a Shanghai-based Chinese fabless semiconductor company. The ESP8266 chip is shown in the following figure. It consists of a Wi-Fi transceiver with full TCP/IP stack and a microcontroller. It uses IEEE 802.11 b/g/n Wi-Fi standard, which is generally used in our daily life. It has 32-bit Tensilica RISC processor that runs at 80 MHz. It has several peripherals such as GPIO, I2C, SPI, UART, ADC, etc.

ESP8266 chip

Continue reading “ESP8266 Arduino Tutorial 1 – IDE Installation”

Share this: