Author Topic: Need Hex file to test touch screen on STM32F429 Discovery board  (Read 2806 times)

0 Members and 1 Guest are viewing this topic.

Offline rcbuckTopic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Need Hex file to test touch screen on STM32F429 Discovery board
« on: January 28, 2022, 08:57:18 pm »
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
« Last Edit: January 28, 2022, 11:35:22 pm by rcbuck »
 

Offline rcbuckTopic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #1 on: January 29, 2022, 02:19:17 am »
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.
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #2 on: January 29, 2022, 03:33:36 am »
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 :)
 

Offline wek

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: sk
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #3 on: January 29, 2022, 08:54:48 am »
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 :)
In 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
 

Offline rcbuckTopic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #4 on: January 29, 2022, 03:29:49 pm »
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.
 
The following users thanked this post: dmendesf

Offline wek

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: sk
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #5 on: January 29, 2022, 06:21:55 pm »
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
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #6 on: January 29, 2022, 06:39:01 pm »
Many thanks. I'm away from my computer but will use it tomorrow to test my board.
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #7 on: January 30, 2022, 03:44:27 am »
Just tested it and I can confirm it works. My board is the older version (STM32F429I-DISCO).
 

Offline wek

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: sk
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #8 on: January 30, 2022, 10:03:57 am »
My board is the older version (STM32F429I-DISCO).
Which 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
 

Offline rcbuckTopic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #9 on: January 30, 2022, 05:17:19 pm »
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.

« Last Edit: January 30, 2022, 05:47:47 pm by rcbuck »
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #10 on: January 30, 2022, 10:35:42 pm »
Mine is exactly the same version as you: MB1075B / MB1075 B-01
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #11 on: January 31, 2022, 01:26:20 am »
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?
 

Offline rcbuckTopic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #12 on: January 31, 2022, 02:33:20 am »
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.
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 320
  • Country: br
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #13 on: January 31, 2022, 02:58:26 am »
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.
 

Offline rcbuckTopic starter

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #14 on: January 31, 2022, 06:25:56 am »
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.
 

Offline darkspr1te

  • Frequent Contributor
  • **
  • Posts: 290
  • Country: zm
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #15 on: January 31, 2022, 11:23:12 am »
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.
I 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
 

Offline danielwlewis

  • Newbie
  • Posts: 1
  • Country: us
    • ARM Assembly for Embedded Applications, 5th ed.
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #16 on: December 09, 2022, 04:06:18 pm »
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 at https://www.engr.scu.edu/~dlewis/book3/.

Best,
Dan Lewis
« Last Edit: December 09, 2022, 04:40:57 pm by danielwlewis »
 

Offline wek

  • Frequent Contributor
  • **
  • Posts: 495
  • Country: sk
Re: Need Hex file to test touch screen on STM32F429 Discovery board
« Reply #17 on: April 25, 2023, 01:32:38 pm »
In the Cube examples, ST addressed the problem by this fix - apparently depends on having defined USE_STM32F429I_DISCOVERY_REVD .

JW
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf