H753_CPP_SPI_BT817_EVE_01 1.0
STM32H753 drives a Bridgetek BT817 (ME817EV + DP-0701-01A) over SPI: a chip-ID start-up check, then Bridgetek's simple demo through the STM32_Bridgetek_EVE_API library
Loading...
Searching...
No Matches
H753_CPP_SPI_BT817_EVE_01 Documentation

This documentation covers a STM32 NUCLEO-H753ZI tutorial project that drives a Bridgetek BT817 EVE graphics controller (ME817EV board with the DP-0701-01A 7-inch 800 x 480 touch panel) over plain SPI. At start-up it checks that the BT817 answers and reads its chip ID, then it runs Bridgetek's "simple" demo unchanged through the STM32_Bridgetek_EVE_API library: touch calibration, the Bridgetek logo and a counter that counts up while it is touched.

Project Overview

The firmware demonstrates:

Project-Level Documentation

  • main.c – the start-up check, the calibration-storage functions and the demo call

Bridgetek's library (STM32_Bridgetek_EVE_API) and demo (EVE_Example) are third-party code used as supplied and are not part of this documentation.

Hardware

The ME817EV host connector CN8 goes to the NUCLEO-H753ZI: SCK to PA5, MISO to PA6, MOSI to PB5 (SPI1), CS# to PB6, PD# to PD15, INT# to PF3, and both CN8 GND pins to GND. The ME817EV is powered from its own USB-C supply; never connect its 5V_HOST pin to the Nucleo. The terminal is USART1 at 19200 baud.

The two boards have separate supplies, so connect their grounds with a short, heavy connection as well, not only through the GND pins of the signal wiring. Without it the BT817 can see false chip-select edges: a chip ID of 0B FF FF FF, "co-processor exception" messages, or random vertical lines on the panel.

Settings

  • SPI1 speed is set in STM32CubeMX (prescaler 16, 12 Mbit/s) and the library keeps it; above 12 Mbit/s the demo fails on long or loose wiring.
  • The chip and panel are selected in the project's compiler settings: FT8XX_TYPE=BT817, PANEL_TYPE=DP_0701_01A, PLATFORM_STM32_CUBE=1 (SPI) and PLATFORM_STM32_CUBE_CHANNEL=1 (SPI1).
  • The start-up check can be switched off with runChipIdTest.

The BT817 register addresses, host commands and time limits are macros at the top of main.c, each documented with its value in the file reference.