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

Step by step debugging firmware on the Aliexpress / EBay STM32 boards

May 9, 2016 in ARM, C, C++, Hardware, Linux, Microcontroller, Programming, STM32, Tips & Tricks, Tutorial by admin

arm_cortex_logoIn some previous topics (here and here) I wrote about some cheap development boards which can be acquired from EBay or Aliexpress. Since System Workbench for STM32 is freely available for a while now, let’s see how can we use it to generate a project, compile it, upload it to a board and debugging it step by step. We’ll use for this the board I got from EBay, but it works the same with the any STM32 other board I have and also with some self-made ones.

For being able to install firmware on the board and debug it, first we need to have a hardware part which will sit between the computer and the board. There are various models and versions of these jtag debugers and they can be ordered online or found pretty cheap on ebay (clones). Another way to get hold of one of these is to have a development board which comes equiped with JTAG adapters, like the STM32 discovery series of boards. Some of these JTAG debuggers allow even breaking apart the JTAG debugger from the development board itself (LPCXpresso series, the nucleo boards).
Regardless of which JTAG interface is used, it should be one which is known to work with OpenOCD, as we’ll use OpenOCD for debugging. In our case we’ll use the stm32f4 discovery board’s stlink2 side. However, Before using it as a JTAG debugger, we need to disconnect the STLink part from the discovery board, by removing two jumpers. Once that is done, the STLink itself won’t be connected to the discovery board and it’s SWD header can be connected to any other board. 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

STMicroelectronics Attracts Linux Users to Free Embedded Development on STM32 Microcontrollers

February 11, 2016 in ARM, Hardware, Linux, Microcontroller, News, Programming, STM32 by admin

armvia st.com press release:

STMicroelectronics, a global semiconductor leader serving customers across the spectrum of electronics applications, has extended opportunities to design free of charge with its popular STM32 microcontrollers for Linux system users including professional engineers, academics, and hobbyists.

Most Linux distributions are free, and open-source application software makes the Linux world attractive to technology enthusiasts. Until now, however, most development tools for embedded computing have been available only for Windows® PCs.

The STM32CubeMX configurator and initialization tool and the System Workbench® for STM32, an Integrated Development Environment (IDE) created by Ac6 Tools, supported by the openSTM32.org community, and available at www.st.com/sw4stm32, are now both available to run on Linux OS.

ST’s latest move means Linux users can now start their own embedded projects on STM32 devices, free of charge, without leaving their favorite desktop environment.

“The Linux community is known to attract creative free-thinkers who are adept at sharing ideas and solving challenges efficiently,” said Laurent Desseignes, Microcontroller Ecosystem Marketing Manager, Microcontroller Division, STMicroelectronics. “We are now making it ultra-easy for them to apply their skills to create imaginative new products, leveraging the features and performance of our STM32 family.”

ST’s commitment means users can now benefit from free software for configuring microcontrollers and developing and debugging code, together with manufacturer-supported low-cost evaluation boards, allowing greater focus on product development. Tools installation is very easy and fast, which contrasts with established practice in the Linux world, where users often have to create or adapt their own tools with minimal support.

“Since the launch of the System Workbench for STM32 in early 2015, its popularity has grown both on Windows and Linux platforms,” said Bernard Dautrevaux, Ac6 Tools Chief Technical Officer. “ST’s new tools for Linux both validate and complement our work and the openSTM32 initiative, and we plan to further support ST with major upgrades to System Workbench for STM32 in the future, including the support of OS/X as a development host.”

For the original article and more details, follow this link.

by admin

STM32F429 Discovery board

December 23, 2013 in Hardware, Microcontroller, STM32 by admin

 

stm32f429

The new STM32F429 discovery board key features are impressive:

  • STM32F429ZIT6 microcontroller featuring 2 MB of Flash memory, 256 KB of RAM in an LQFP144 package
  • On-board ST-LINK/V2 with selection mode switch to use the kit as a standalone
  • ST-LINK/V2 (with SWD connector for programming and debugging)
  • Board power supply: through the USB bus or from an external 3 V or 5 V supply voltage
  • 2.4″ QVGA TFT LCD
  • SDRAM 64 Mbits
  • L3GD20, ST MEMS motion sensor, 3-axis digital output gyroscope
  • Six LEDs:
    • LD1 (red/green) for USB communication
    • LD2 (red) for 3.3 V power-on
    • Two user LEDs:LD3 (green), LD4 (red)
    • Two USB OTG LEDs:LD5 (green) VBUS and LD6 (red) OC (over-current)
  • Two pushbuttons (user and reset)
  • USB OTG with micro-AB connector
  • Extension header for LQFP144 I/Os for a quick connection to the prototyping board and an easy probing.

Like every Discovery board, it come with a huge amount of samples. It also has the Standard Peripheral Library available to start development with ease and it featuring  an embedded ST-Link/V2 . 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