Initialization of ILI9341 LCD and STMPE811 TS for STM32F4

Initialization of ILI9341 LCD and STMPE811 TS for STM32F4

STM32F429I-DISCO comes with the Thin-film-transistor liquid-crystal display (TFT LCD) which is 2.41″ display of 262 K colours with 240×320 resolution. It includes the ILI9341 LCD controller which supports full colour, 8-color display mode for precise power control and a STMPE811 is a 4-wire resistive touch screen controller with a GPIO port expander. In this tutorial it will be explained how to create project from scratch using STM32CubeMX with LCD and touch screen. For this tutorial STM32CubeF4 libraries are mandatory which are obtainable from ST official page. However if you don’t want to download 310Mb you can use the link below to…

Intro in STM32F4CubeMX

Intro in STM32F4CubeMX

STM32CubeMX is a graphical tool for 32-bit ARM® Cortex® STM32 microcontrollers. It is part of STM32Cube initiative which provides two main components: STM32F4CubeMX: A graphical software configuration tool that generates the initialization code for STM32 peripherals. STM32F4Cube HAL: A software abstraction layer for STM32 peripherals.   In this tutorial it will be explained how to create basic project for STM32F429DISCOVERY development kit in STM32CubeMX development tool. If you don’t have Keil MDK-ARM µVision5 installed go back and check out last post. Download CubeMX from ST official page. Once downloaded navigate to Help->Install New Libraries->STM32CubeF4 Releases->Select latest version.    After…

Serial (UART) communication on Raspberry Pi 2

Serial (UART) communication on Raspberry Pi 2

UART – Universal Asynchronous Receiver/Transmitter is one of the earliest mode of communication applied to computers. Asynchronous means that data is transferred without support from an external clock signal and universal because it’s parameters: speed, frame size and number of parity and stop bits are not fixed and can be configured to meet the needs of a given communication requirement. The asynchronous serial protocol has four built-in-rules, mechanisms, which must be the same on both sides: Baud rate, Data bits, Parity bits and Stop bits.   UART parameters are set as: 9600 8N1 which means: BaudRate…

Keil MDK-ARM uVision Installation

Keil MDK-ARM uVision Installation

Keil MDK-ARM µVision5 will be used as development environment in all projects that will be made on this site. Keil can be obtained for free on https://www.keil.com/download/product/ where we will select MDK-ARM (Development environment for Cortex and ARM devices). Version that will be downloaded is free one. Although it has some limits it won’t affect you in creating/running examples which will be provided.     Installing Device Family Pack(DFP) through Pack Installer On the first start-up after the installation of Keil MDK-ARM µVision, the Pack Installer will automatically be executed. The…