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

Revision as of 23:24, 17 October 2023 by Registered User

This article describes how to run FP-AI-VISION1 projects on STM32H747I-DISCO kits which use the MB1166-A09 LCD daughterboard by showing how to incorporate the updated LCD driver into existing projects. Further, if you only get static on the LCD as shown below, this article may be helpful.

1. Prerequisites

1.1. Hardware

File:AI:lcd model.png
STM32H747I-DISCO with MB1166-A09
Info white.png Information
This guide is not suitable for MB1166-A08 and MB1166-A10 LCD revisions. FP-AI-VISION1 examples will run without additional changes on kits with older LCD daughterboards. To learn more about FP-AI-VISION1, refer to UM2611: Artificial Intelligence (AI) and computer vision function pack for STM32H7 microcontrollers

1.2. Software


2. Steps:

  1. Download and extract 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, add a #define for NT35510, and change the OTM8009A #define to 0, as shown below:
/* 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