Content of this repo demonstrates how to use LCD display on STM32F769I-DISCO board with LVGL embedded graphics library without OS (bare-metal). Example shows how to set up VS Code development environment, including build and OCD step debugging.
This repo uses submodules, to clone execute:
git clone --recursive https://github.com/tdjastrzebski/STM32F769I-DISCO-LVGL
- NodeJS + NPM
- Python + PIP
- Git
- VS Code
pip install pyocd --upgrade
On Windows install as admin, otherwise install is local and PATH setting is required.pyocd pack update
pyocd pack find stm32f769
pyocd pack install STM32F769NIHx
- Download the latest version from https://github.com/xpack-dev-tools/openocd-xpack/releases or build it yourself following this guide
- Unzip it to
OpenOCD
folder inC:\Program Files
- Set
OpenOCD
system variable to 'C:\Program Files\OpenOCD' - Add
%OpenOCD%\bin
to system PATH variable - Set
XDG_CACHE_HOME
env variable to%USERPROFILE%\AppData\Local\Temp
to prevent symbol cache path error
Note: xpm utility does not really support global installations (yet), hence I suggest the above approach.
Download from https://github.com/posborne/cmsis-svd/tree/master/data/STMicro and place in the root folder.
- Required version: arm-none-eabi (bare-metal target) 10.3-2021.07
- Do NOT use latest versions 11.x and 12.x. Newer versions currently have known bugs which may impact build and/or debug process.
- Set
MBED_GCC_ARM_PATH
env variable toC:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\10.3 2021.07\bin
- Add
MBED_GCC_ARM_PATH
env variable to WindowsPath
env variable (%MBED_GCC_ARM_PATH%
) - if not set by the installer.
npm install -g cppbuild
npm install -g shx
npm install -g @serialport/terminal
C/C++
(Microsoft)Cortex-Debug
(marcus25) See: https://github.com/Marus/cortex-debug/wiki
- Set the default VS Code terminal to
Git Bash
. Otherwise, VS Code may try to execute task NPM packages as (e.g.) PowerShell scripts.
LinkerScript
(Zixuan Wang)Arm Assembly
(dan-c-underwood)Code Spell Checker
(Street Side Software)Build++
(Tomasz Jastrzębski)
- ST-LINK Utility
- STSW-LINK009 ST-LINK USB Driver
- STSW-LINK007 ST-LINK boards firmware upgrade
- STM32F769NI MPU
- DS11532 Arm® Cortex®-M7 32b MCU+FPU, 462DMIPS, up to 2MB Flash/ 512+16+4KB RAM, USB OTG HS/FS, 28 com IF, LCD, DSI datasheet
- RM0410 STM32F76xxx and STM32F77xxx advanced Arm®-based 32-bit MCUs reference manual
- PM0253 STM32F7 Series and STM32H7 Series Cortex®-M7 processor programming manual
https://st.force.com/community/s/article/how-to-add-a-bsp-to-an-stm32cubeide-project