Need Hex file to test touch screen on STM32F429 Discovery board - Page 1
Forum section: electronics / general

author: rcbuck
author_rank: Frequent Contributor
timestamp: January 28, 2022, 08:57:18 pm
content: I have a STM32F429I-DISC1, version MB1075E, Discovery board. This board is the latest version. The default application installed from the factory doesn't respond properly to screen touches. I downloaded the latest app from the ST site and that app also doesn't respond to screen touches.I have downloaded the TouchGFX software so I can learn to use it to create a simple application for the board as a test. Something like one button on the screen that you touch to toggle one of the LEDs on the board.I would like to confirm my touchscreen actually works before I proceed down the long graphics path. I want to run my screens in LTDC (R,G,B) mode on a custom board. I will use the Discovery board as a test bed before designing my board. If I create a program and it doesn't work, I won't know if it is a bad touch screen or if my code is wrong.Does someone happen to have a hex file that I can load into the board to confirm the touch screen works? If the board is bad I will order a new one and proceed from there.Edit: Added this link to show what step I have already taken:https://community.st.com/s/question/0D73W000001NTvz/detail?s1oid=00Db0000000YtG6&t=1643412206102&s1nid=0DB0X000000DYbd&emkind=chatterCommentNotification&s1uid=0050X000007vsKk&emtm=1643407322266&fromEmail=1&s1ext=0

author: rcbuck
author_rank: Frequent Contributor
timestamp: January 29, 2022, 02:19:17 am
content: I built an application with one button on the LCD using the TouchGFX program. I have confirmed the touch screen works. When I touch the button on the screen it changes color to indicate it has been touched. Case closed.

author: dmendesf
author_rank: Frequent Contributor
timestamp: January 29, 2022, 03:33:36 am
content: I have the same kit and I'm having some issues with the LCD. Would you kindly share your code? It's been in storage for some time so I'm not sure if it's a hardware problem or a (human) programmer program

author: wek
author_rank: Frequent Contributor
timestamp: January 29, 2022, 08:54:48 am
content: Quote from: dmendesf on January 29, 2022, 03:33:36 amIn the thread linked above I gave link to hex of a simple utility ("doodle") and there's some discussion on how it works. You can use it to test the basic LCD and touchscreen functionality, until rcbuck chimes in with his program.JW

author: rcbuck
author_rank: Frequent Contributor
timestamp: January 29, 2022, 03:29:49 pm
content: dmendesf, attached is a file you can load to test the board. It has two toggle buttons. They change color when clicked. The text on the buttons also changes color. You will need to change the file name extension from .zip to .bin since the forum doesn't allow a bin file to be attached.This is the video I watched to create the buttons:If you are going to use the video to create code for you board you will need to install TouchGFX. You will also need the latest version of STM32CubeMx.Today I will modify the code so that it toggles LEDs on the board. That explanation starts are around minute 14 in the video.

author: wek
author_rank: Frequent Contributor
timestamp: January 29, 2022, 06:21:55 pm
content: Hi rcbuck,On my rev B board it works exactly as expected: touch on one button toggles the other :-) (due to the mirroring we've discussed).JW

author: dmendesf
author_rank: Frequent Contributor
timestamp: January 29, 2022, 06:39:01 pm
content: Many thanks. I'm away from my computer but will use it tomorrow to test my board.

author: dmendesf
author_rank: Frequent Contributor
timestamp: January 30, 2022, 03:44:27 am
content: Just tested it and I can confirm it works. My board is the older version (STM32F429I-DISCO).

author: wek
author_rank: Frequent Contributor
timestamp: January 30, 2022, 10:03:57 am
content: Quote from: dmendesf on January 30, 2022, 03:44:27 amWhich exactly?There should be a small print, which says "MB1075B" in my case, on the front side; and also a sticker (which in my case says MB1075 B-01) on the back side of PCB. Can you please look theese up at your piece?And, do you have the "mirroring" or not, i.e. if touching a button, does that particular button toggle color, or the other?Thanks,JW

author: rcbuck
author_rank: Frequent Contributor
timestamp: January 30, 2022, 05:17:19 pm
content: dmendesf, I am glad it worked for you. I am attaching another file. When you click the buttons on the screen they will toggle the LEDs on the board. Again, you will have to change the file extension from zip to bin.I watched this video to get the buttons to work. There is no voice narration and the text is not in English but if you go slow you can figure out what he is doing.

author: dmendesf
author_rank: Frequent Contributor
timestamp: January 30, 2022, 10:35:42 pm
content: Mine is exactly the same version as you: MB1075B / MB1075 B-01

author: dmendesf
author_rank: Frequent Contributor
timestamp: January 31, 2022, 01:26:20 am
content: This one worked too, thank you. Both have the buttons flipped. I imagine that this is a problem with the XY orientation between LCD and touch contoller, right?

author: rcbuck
author_rank: Frequent Contributor
timestamp: January 31, 2022, 02:33:20 am
content: Not sure what you mean by flipped. I placed the buttons so they are in a horizontal orientation. Similar to what you would see on a TV screen.

author: dmendesf
author_rank: Frequent Contributor
timestamp: January 31, 2022, 02:58:26 am
content: I press one bytton and the other changes color. Is this the desired effect? It not maybe the X axis of the touch controller is inverted. But this is not a problem, just a remark.

author: rcbuck
author_rank: Frequent Contributor
timestamp: January 31, 2022, 06:25:56 am
content: No, that is not the desired effect. When you press each button it should change the color of that button. When you press the button labeled Green it should change from a green background to a red background. It should also toggle the green LED on the board between on and off with each button press. Pressing the button labeled Red should make the background color change from red to green and toggle the red LED.I don't know why you are seeing the behavior you are seeing. Maybe a difference between my board level revision and yours? Your board level revision is B and mine is E.

author: darkspr1te
author_rank: Frequent Contributor
timestamp: January 31, 2022, 11:23:12 am
content: Quote from: dmendesf on January 31, 2022, 02:58:26 amI see a few possibles here, there touch controller could be slightly different due to supply issues or source of manufacture so that could mean the x/y value could be inverted.I also have seen two different lcd's on the same board number both from same supplier but a few month apart, this also could be cause of inverted lcd x/y.I personally dont use the stm libs so cant really help you there but i there is a command you can send the lcd to rotate it (MADM command)i would also print the touch co-ords on screen to assist with that.darkspr1te

author: danielwlewis
author_rank: Newbie
timestamp: December 09, 2022, 04:06:18 pm
content: ST Microelectronics modified the touch screen circuitry in the MB1075E revision of the STM32F429-DISC1 board. According to Revision 5 (August 2020) of the UM1670 User Manual: "Old STMPE811QTR kept and SX8651 added for two footprints, and U9, C55, and R74 added for SX8651, and original STMPE811QTR circuit kept". The effect was to invert the Y (vertical) coordinate value returned by the touch screen controller. I modified the Cube software to create my own archive of the run-time library, which contains code to apply a correction. The library is in the file workspace.zip stored on my textbook support website athttps://www.engr.scu.edu/~dlewis/book3/.Best,Dan Lewis

author: wek
author_rank: Frequent Contributor
timestamp: April 25, 2023, 01:32:38 pm
content: In the Cube examples, ST addressed the problem bythis fix- apparently depends on having defined USE_STM32F429I_DISCOVERY_REVD .JW