by admin

Ebay HY-MiniSTM32V LCD initialization and Adafruit GFX Library port to STM32F103

October 27, 2017 in ARM, C, C++, Code Snippets, DIY, Hardware, Microcontroller, Programming, STM32, Tutorial by admin

A while ago I’ve bought a HY-MiniSTM32V board from Ebay. There are two boards – a main board with the STM32F103VCT6 microcontroller and a 240×320 pixel LCD board with resistive touch screen. The LCD itself is connected to the FSMC (Flexible Static Memory Controller) and can be mapped as a memory device.

The FSMC is an embedded external memory controller that allows the STM32F10xxx microcontroller to interface with a wide range of memories, including SRAM, NOR Flash, NAND Flash and LCD modules. The suitable connection to LCD is as a NOR Flash / SRAM device.

From AN2790 – TFT LCD interfacing with the high-density STM32F10xxx FSMC:

To control a NOR Flash/SRAM memory, the FSMC provides the following features:

  • Select the bank to be used to map the NOR Flash/SRAM memory: there are four independent banks that can be used to interface with NOR Flash/SRAM/PSRAM memories, and each bank is selected using a separate Chip Select pin.
  • Enable or disable the address/data multiplexing feature.
  • Select the memory type to be used: NOR Flash/SRAM/PSRAM.
  • Define the external memory databus width: 8/16 bits.
  • Enable or disable the burst access mode for NOR Flash synchronous memories.
  • Configure the use of the wait signal: enable/disable, polarity setting and timing configuration.
  • Enable or disable the extended mode: this mode is used to access the memory with different timing configurations for read and write operations.

Read the rest of this entry →

by admin

Small and cheap STM32F103 boards from aliexpress

May 3, 2016 in ARM, Hardware, Microcontroller, STM32, Tips & Tricks by admin

arm_cortex_logoRecently I was looking for some cheap boards which would allow me to play with the STM32F103 microcontroller and I’ve found that Aliexpress has couple of versions of them sold quite cheap by various sellers, with a very affordable price tag. There are various incarnations of these boards, and with difference in the price range, so I went with these two in the end:

Read the rest of this entry →

by admin

Using cheap STM32 eval board with TFT LCD module from ebay

October 29, 2013 in Hardware, Microcontroller, STM32, Tips & Tricks, Tutorial by admin

stm32_board2There are a lot of sellers on ebay selling cheaply 320×240 LCDs with touch screen together with a microcontroller board. Usually the development board contains a  STM32F103 microcontroller (sometimes different) with or without some additional hardware. As an exemplification one of such sold configuration is:

  • 3.2″ TFT LCD Module, 320 * 240 pixels resolution, 26m colors.
  • Resistive touch screen, with XPT2046 Controller.
  • 4-6 leds
  • Twobuttons connected to GPIO lines
  • Serial communication interface
  • 2 mini-type USB socket, USB to RS232 and USB Device
  • 1 Micro SD card connector
  • A JTAG / SWD debug interface (20pin)
  • RTC battery
  • USB Power Supply

This web page not only has some information about how these boards could be used, but also provide some sample code using the LCD and a downloadable virtual image, containing:

  • Ubuntu desktop
  • ARM toolchain (gcc + newlib)
  • Eclipse C++ IDE
  • stm32loader.py – for loading code into the board
  • openocd – for loading code and debugging
  • Example FreeRTOS project with all source code, include LCD+touch drivers and a simple menuing system to get you started quickly

Isn’t that awesome?

For the original article and the link for downloading the virtual image, follow this link.

 
Skip to toolbar