How to perform people counting using FP-AI-VISION1 and STM32H747XI

Revision as of 00:54, 17 October 2023 by Registered User

Some recent STM32H747I-DISCO kits are shipping with MB1166-A09 LCD daughterboards. This daughterboard uses an updated LCD controller, NT35510. This article describes how to run FP-AI-VISION1 projects with the updated LCD daughterboard, by showing how to incorporate the updated LCD driver into existing projects.

1. Prerequisites:

  • STM32H747I-DISCO with LCD daughterboard "MB1166-A09"
Info white.png Information
This guide is not suitable for MB1166-A08 and MB1166-A10 LCD revisions. Follow the instructions given in FP-AI-VISION1 / TODO for these revisions.
  • Computer with STM32CubeIDE installed (v1.13.1 or higher)


2. Steps:

  1. Download and unzip NT35510 drivers from this zip file. Alternatively, up-to-date drivers can be downloaded directly from the STM32CubeH7 GitHub repo.
  2. Copy nt35510 directory to ..\FP-AI-VISION1_V3.1.0\Drivers\BSP\Components\
  3. Copy stm32h747i_discovery_lcd.c and stm32h747i_discovery_lcd.h, and paste them into ..\FP-AI-VISION1_V3.1.0\Drivers\BSP\STM32H747I-Discovery\
  4. Use a text editor to open ..\FP-AI-VISION1_V3.1.0\Projects\STM32H747I-DISCO\Applications\Common\CM7\Inc\stm32h747i_discovery_conf.h. On line 34, make the following changes:
/* LCD controllers defines */ 
#define USE_LCD_CTRL_NT35510                1U 
#define USE_LCD_CTRL_OTM8009A               0U 
#define USE_LCD_CTRL_ADV7533                0U
  1. From the FP-AI-VISION1_V3.1.0\Drivers\BSP\Components\nt35510 directory, select the four source files as show in the image below. Then drag and drop the selected files under the to components directory in CubeIDE.
    1. Then in the pop-up window, keep “Link to files” and click OK.
    1. Drivers should now be indexed into the project
  1. Right click the project, then Clean and Build the project. The project should build without errors. Now you can click the Bug icon to flash and debug the project.

Clean, Build, Flash project