STM32CubeF4
STM32CubeF4 copied to clipboard
Touchscreen presses not detected on versions D/E of STM32F429-Discovery board
Describe the set-up
- The board (either ST RPN reference or your custom board): is one of these the number you're referring to? STM32F429I-DISC1 / MB1075-F429I-E01
- Atollic TrueSTUDIO for STM32 v9.1.0 (Build-id: 20181011-1241)
Describe the bug Touchscreen does not respond to any touches.
How To Reproduce
Prerequisite (I think): a revision D or E board of STM32F429I-DISC1.
Optional: First build and run the older version yourself, to see that it works on this newer board
- Obtain STSW-STM32138 (STM32F429 discovery firmware package (UM1662) v1.0.3). Unpack the zip.
- Open the project from
Projects\Demonstration\TrueSTUDIO\STM32F429I-Discovery_Demo\in the Atollic TrueSTUDIO IDE. (Similarly to step 3 in the next subsection -File→Open Projects from File System..., etc.) - In Project Properties,
C/C++ Build→Settings→Tool Settingstab →C Compiler→Symbols, changeUSE_STM32F429I_DISCO_REVCtoUSE_STM32F429I_DISCO_REVD. (Perstm32f429i_discovery.h,USE_STM32F429I_DISCO_REVD : for RevD or RevE boards.) - Build, load, run. (Find it at
Projects\Demonstration\TrueSTUDIO\STM32F429I-Discovery_Demo\Debug\STM32F429I-Discovery_Demo.elf.) It appears to be the same firmware that was loaded out-of-the-box. Touchscreen works as expected.
Build demo firmware from this repo to produce the problem
- Clone this repo
- As hinted by this readme, obtain STemWIN-MW version 5.44.40. (Note, the later 5.44.70 does not include the library files for STM32F4.) Extract the STemWin zip, and copy the contents to the
Middlewares/ST/STemWin/subdir in your working copy of this repo. - Import the project as follows. In Atollic TrueSTUDIO IDE, do
File→Open Projects from File System.... ClickDirectory...; navigate to theProjects\STM32F429I-Discovery\Demonstrations\STemWin\SW4STM32\STM32F429I-Discovery\subdir of your working copy of this repo. ClickFinish, andOKthe conversion.

- Build the
STM32F429I-Discoveryproject. - Use e.g. STM32CubeProgrammer to flash the resulting
STM32F429I-Discovery.elfonto the micro. (Find it in the working copy underProjects/STM32F429I-Discovery/Demonstrations/STemWin/SW4STM32/STM32F429I-Discovery/Debug/.) - If prompted, use a pointy object to calibrate the touchscreen.
- Observe the application at the homescreen. Try and get the touchscreen to respond to any presses; it doesn't.
Suspected problem
As pictured below, the BSP in the old demo firmware has been updated to account for later board revisions (D/E). The firmware in this repo has not.

Additional context I believe this STM32CubeF4 repo utilizes an old version of the STM32 BSP, namely v4.0.1.
The old demo firmware (STSW-STM32138) appears to be based on something even older.
This repo has many demo and applications; the old demo firmware has less, and is based on older code. An update here would be useful.
Screenshots (None to add)
When I apply the board-rev-specific changes from the old demo firmware to this repo, it responds as expected for a minute or so, then the app seems to hang.
EDIT: I added USE_STM32F429I_DISCO_REVD to the project symbols, as with the old project.

ST Internal Reference: 116598
Hi @bmcdonnell-fb,
The issue has been fixed in the frame of this commit. Please allow me thus to close this thread.
With regards,